Rollback policy
/titan/management/deployments/{id}/policy/versions/{source_revision}:rollbackRe-applies the version's source as a new revision (the revision in force plus one) through the same path as PUT .../policy: compiled, checked against Titan's terms, the organization's policy layers and the deployment's capabilities, and signed by the Configuration Authority. Records the audit events deployment.policy_updated (rollback_of_revision) and deployment.policy_rolled_back, and a version of origin rollback. The policy in force's authorization_not_before is kept when it is later than the version's (a rollback never lifts an authorization cutoff); authorization_not_before_kept says so.
Path parameters
A source_revision of the deployment's policy history.
Headers
Bearer <token>. A Hexel Studio access token for a member or a service user of your organization (or send a service user's API key as X-API-Key).
The source_digest of the policy in force the caller saw (GET .../policy), quoted or not (* is refused); an alternative to base_source_revision. The rollback is refused with 409 POLICY_REVISION_STALE when the policy in force has another digest.
Body parameters
Returns
200Organization-scoped result.PolicyRollbackResult
Errors
- 400Invalid request, path or query; on a rollback, INVALID_REQUEST when neither base_source_revision nor If-Match is given, If-Match is *, the body is not the closed rollback body or the note is not 1-500 characters without control characters; POLICY_INVALID, POLICY_TERM_UNSUPPORTED or OBLIGATION_PROFILE_UNKNOWN when the version's source is no longer valid for the deployment (the codes a PUT .../policy of it gets: for example a toolkit the capability selection no longer has, or a watch-only rule while watch-only rules is off).
- 401Missing or invalid authenticated context.
- 403Organization mismatch, or an IAM action is denied: to list, read and compare, both titan:enforcement_deployment:read (as GET .../policy) and titan:policy:read; to roll back, both titan:enforcement_deployment:create (as PUT .../policy) and titan:policy:publish.
- 404Unknown or foreign deployment; POLICY_VERSION_NOT_FOUND when the history does not hold the revision (never recorded, or pruned past the 1000 kept); NOT_FOUND for every history path while the caller's organization does not have policy history.
- 405HTTP method is not supported on this route.
- 409POLICY_REVISION_STALE when the base (base_source_revision or If-Match) is not the policy in force; POLICY_VERSION_CURRENT when the version's content is the policy in force; the deployment is not a provisioned Titan Cloud or Titan Dedicated deployment (DEPLOYMENT_NOT_PROVISIONED), is retired (DEPLOYMENT_RETIRED) or has an operation in progress (OPERATION_IN_PROGRESS).
- 413Request body exceeds its size limit.
- 415Unsupported request media type.
- 502The deployment's Configuration Authority refused or answered unexpectedly (closed code).
- 503Local storage or the deployment's Configuration Authority unavailable.