Resource Links
List linked resources of the given resource
GET
resource_id*integerThe resource ID.
Range
1 <= valueresource_type*stringThe resource type to get linked resources.
page?integerNumber of the page to be retrieved
Range
1 <= valueper_page?integerNumber of items returned per page
Range
1 <= value <= 100Accept*stringapplication/json
Content-Type*stringapplication/json
Ok
application/json- response
[index: integer]?|nullcurl -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" }]