Archives a specified Deployment. The operation is idempotent. An archived Deployment cannot be updated, paused, or unpaused.
Prerequisites
Endpoint and authentication configured. For details, see Overview and authentication.
Endpoint
POST /deployments/{deployment_id}/archive
Path parametersdeployment_idstring (必选)Deployment ID | Request example |
Response fieldsidstringDeployment IDtype stringFixed value deploymentname stringDeployment namedescription stringDeployment descriptionagent object—environment_id string—schedule objectSchedule trigger configurationinitial_events array<object>—resources array<object>—vault_ids array<string>—metadata object—status string—paused_reason string | null—archived_at string | null—created_at string | null—updated_at string | null—request_id stringUnique identifier of this request; include it when troubleshooting | Response |
Error codes
| HTTP status | Error code | Description |
|---|---|---|
| 400 | InvalidParameter | Required parameter missing or invalid |
| 401 | InvalidApiKey | Invalid API key provided |