Get Deployment Resource
Retrieves a deployment resource by resource id for the given deployment.
Method
GET /deployment/{id}/resources/{resourceId}
Parameters
Path Parameters
Name | Description |
---|---|
id | The id of the deployment. |
resourceId | The id of the deployment resource. |
Result
A JSON object corresponding to the Resource
interface in the engine.
Its properties are as follows:
Name | Type | Description |
---|---|---|
id | String | The id of the deployment resource. |
name | String | The name of the deployment resource. |
deploymentId | String | The id of the deployment. |
Response Codes
Code | Media type | Description |
---|---|---|
200 | application/json | Request successful. |
404 | application/json | Deployment Resource with given resource id or deployment id does not exist. See the Introduction for the error response format. |
Example
Request
GET /deployments/someDeploymentId/resources/someResourceId
Response
Status 200.
{
"id": "someResourceId",
"name": "someResourceName",
"deploymentId": "someDeploymentId"
}