Skip to Content
Resource Links

List linked resources of the given resource

GET
/resource-links/{resource_type}/{resource_id}

Path Parameters

resource_id*integer

The resource ID.

Range1 <= value
resource_type*string

The resource type to get linked resources.

Query Parameters

page?integer

Number of the page to be retrieved

Range1 <= value
per_page?integer

Number of items returned per page

Range1 <= value <= 100

Header Parameters

Accept*string

application/json

Authorization*string

Bearer {{access_token}}

Content-Type*string

application/json

Response Body

Ok

application/json
  1. response
[index: integer]?|null
Example Request
curl -X GET 'https://api.devopness.com/resource-links/application/123?page=1&per_page=25' \  -H 'Accept: application/json' \  -H 'Authorization: Bearer <your_api_token>' \  -H 'Content-Type: application/json'
Example Response200
[  {    "link_type": "parent",    "resource_type_human_readable": "Server",    "resource_type": "server",    "resource_id": 123,    "can_be_unlinked": true,    "linked_resource_data": {      "id": 1839123,      "name": "my-server",      "summary_fields": [        {          "field_name": "ip_address",          "field_name_human_readable": "IP address",          "value": "200.123.45.67"        }      ],      "environment_id": 12345,      "environment_name": "production",      "project_id": 12345,      "project_name": "my-project",      "created_at": "2019-09-25T15:50:48.000000Z",      "updated_at": "2019-09-25T13:52:04.000000Z"    },    "children": [      {        "link_type": "child",        "resource_id": 123,        "resource_type": "application",        "resource_type_human_readable": "Application",        "can_be_unlinked": true,        "linked_resource_data": {          "id": 1839123,          "name": "my-server",          "summary_fields": [            {              "field_name": "ip_address",              "field_name_human_readable": "IP address",              "value": "200.123.45.67"            }          ],          "environment_id": 12345,          "environment_name": "production",          "project_id": 12345,          "project_name": "my-project",          "created_at": "2019-09-25T15:50:48.000000Z",          "updated_at": "2019-09-25T13:52:04.000000Z"        },        "created_at": "2019-09-25T15:50:48.000000Z",        "updated_at": "2019-09-25T13:52:04.000000Z"      }    ],    "created_at": "2019-09-25T15:50:48.000000Z",    "updated_at": "2019-09-25T15:50:48.000000Z"  }]