Resource Links
List resources linked to a base resource.
GET
link_type*stringThe link type of resources to be retrieved: child or parent.
resource_id*integerThe ID of the base resource
Range
1 <= valueresource_type*stringThe base resource type used from which linked resources will be retrieved.
page?integerNumber of the page to be retrieved
Range
1 <= valueper_page?integerNumber of items returned per page
Range
1 <= value <= 100linked_resource_type?stringFilter only linked resources of this resource type.
Accept*stringapplication/json
Content-Type*stringapplication/json
Ok
application/json- response
[index: integer]?|nullcurl -X GET 'https://api.devopness.com/resource-links/application/123/parent?page=1&per_page=25&linked_resource_type=ssh-key' \ -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" }]