Skip to content
Hexel StudioDocs

Get policy version

GET/titan/management/deployments/{id}/policy/versions/{source_revision}

Path parameters

idstring
source_revisionintegerint64

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).

Returns

200Organization-scoped result.PolicyVersion

created_atstringdate-time
created_byoptional string
currentboolean
noteoptional string
originstring
rollback_of_revisionoptional integer
suggestion_idoptional string

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).
  • 502The deployment's Configuration Authority refused or answered unexpectedly (closed code).
  • 503Local storage or the deployment's Configuration Authority unavailable.