Description: Gets a master resources based on Id.
Security: Requires a valid user
Usage: GET api/v1/masterResources/{masterResourceId}
Consumes: application/json
URL Parameters:
Parameter | Type | Description | Required/Optional |
---|---|---|---|
| Integer | The numeric id of the masterResource. | Required |
Request Parameters: Ignored
Produces: application/json
Sample Response:
[{ "id": 1, "resourceType": "resource", "name": "foo", "description": "description", "name": "sample_node", "isInternal": false, "syntaxVersion": "latest", "retiredAt": null, "lastSyncLogs": null, "lastSyncEndedAt": null, "isSyncing": false, "lastSyncStartedAt": null, "lastSyncEndedAt": null, "latestSha": null, "namespace": "foo", "createdAt": "2019-04-15T05:39:36.104Z", "updatedAt": "2019-04-15T05:39:43.286Z" }]
Response Codes:
200: Success
400: If the id is not an integer
404: If the masterResource is not found for the given masterResourceId