Change priority REST API
Use this REST API to change the priority of deployments.
Deployment priority assignments
When patterns
are deployed, they are assigned a deployment priority value of Low,
Medium, or High. These values are interpreted based on the deployment
priority setting of Platinum, Gold, Silver, or Bronze in the environment
profile. The following deployment priorities define the deployment
priority values for a High, Medium, or Low priority deployment:
- Platinum - High(16) Medium(8) Low(4)
- Gold - High(12) Medium(6) Low(3)
- Silver - High(8) Medium(4) Low(2)
- Bronze - High(4) Medium(2) Low(1)
Classic virtual system patterns can be deployed without an environment profile. In this case, they use the Gold deployment priority.
Once the deployment is finished, the deployment priority can be changed based on the current value of the deployment priority setting in the environment profile.
Change deployment priority
PUT /resources/instances/{instance_id}/changePriority
| REST API information | Value | Description |
|---|---|---|
| Example URL | https://localhost/resources/instances/1/changePriority | |
| Response content-type | application/json | |
| Response example | Response body: |
|
| Response code | 200 | Priority successfully changed |
| 401 | User is not authorized to perform this action. | |
| 500 | Unexpected error |