getDeployments
This API operation and its parameters support the request to get all SAP Commerce Cloud deployments associated with a specific subscription.
Command
GET https://portalapi.commerce.ondemand.com/v2/subscriptions/{subscriptionCode}/deployments
Parameters
| Name | Required | Description |
|---|---|---|
|
subscriptionCode string (query) |
Yes | The code of the subscription associated to the builds that were deployed.
You can find the subscription code in the Cloud Portal URL. It appears after subscription/ in the URL. |
|
status string (query) |
No | The status of the deployment. Values are:
|
|
environmentCode string (query) |
No |
The code of the environment where the build was deployed. You can find the environment code in the Cloud Portal URL. It appears after environments/ in the URL. |
|
buildCode string (query) |
No | The code of a specific build.
You can find the build code in the Cloud Portal URL. It appears after builds/ in the URL. The code is also displayed on the Build page in the Cloud Portal, in the Basic Information panel. |
|
$top integer (query) |
No | The number of items to return. This parameter determines the page size. |
|
$skip integer (query) |
No | The number of items to skip (offset). |
|
$orderby string (query) |
No |
Comma-separated list of attribute names, followed by the direction of the sort: asc or desc. |
|
$count boolean (query) |
No | Identifies the total number of deployments that satisfy the query parameters. Results are paginated. In cases where there's a large result, you can advance through the result pages.
If $count=true, then the count is provided in the response. |
Responses
The response content type is application/json.
| Code | Description |
|---|---|
| 200 | OK
Example Value | Model {
"value": [
{
"code": "string",
"subscriptionCode": "string",
"createdBy": "string",
"createdTimestamp": "2020-01-31T16:33:51.873Z",
"buildCode": "string",
"environmentCode": "string",
"databaseUpdateMode": "NONE",
"strategy": "ROLLING_UPDATE",
"scheduledTimestamp": "2020-01-31T16:33:51.873Z",
"deployedTimestamp": "2020-01-31T16:33:51.873Z",
"failedTimestamp": "2020-01-31T16:33:51.873Z",
"undeployedTimestamp": "2020-01-31T16:33:51.873Z",
"status": "string",
"cancelation": {
"canceledBy": "string",
"startTimestamp": "2020-01-31T16:33:51.873Z",
"finishedTimestamp": "2020-01-31T16:33:51.873Z",
"failed": true,
"rollbackDatabase": true
}
}
],
"count": 0
} |
| 401 | Unauthorized |
| 403 | Forbidden |
| 404 | Not Found |