--- title: "Retrieve a change set revision" canonical: "https://admiral.io/docs/api/projects/ChangeSetAPI_GetRevision" --- # Retrieve a change set revision `GET https://api.admiral.io/v1/projects/{project}/environments/{environment}/changesets/{changeset}/revisions/{revision}` - NOT_FOUND when the change set has no such revision. Scope: `changeset:read` ### Path parameters - `project` (string, required): The project id. - `environment` (string, required): The environment id. - `changeset` (string, required): The changeset id. - `revision` (string, required): The revision id. ### Response 200 Success - `revision` (Revision): Revision is one immutable cut of a change set. - `uid` (string): `rev-` and twelve base36 characters. Pattern `^rev-[0-9a-z]+$`. Read-only. - `resource_name` (string): (IDENTIFIER) The revision's resource name, ending in its number, such as `projects/payments-api/environments/prod/changesets/cs-01jg7m3k2x9q/revisions/2`. The `uid` in place of the number names the same revision. - `change_set_id` (string): The uid of the change set the revision belongs to. Read-only. - `number` (integer (int32)): The revision's ordinal within its change set, from 1. - `cause` (Cause): Cause is why a revision was cut: an edit, or a rebase onto the environment as it now is. One of `CAUSE_UNSPECIFIED`, `EDIT`, `REBASE`. - `base_generation` (string (int64)): The environment's generation when the base was taken. - `entries` (array of Entry): Empty in a listing. - `component` (string) - `action` (EntryAction): EntryAction is what a change set does to one component. One of `ENTRY_ACTION_UNSPECIFIED`, `CREATE`, `UPDATE`, `DESTROY`, `ORPHAN`. - `version` (VersionRef): The version the component runs after this change set: set on CREATE and when the version changes. - `component_id` (string): The registry component. Pattern `^cmp-[0-9a-z]+$`. - `version_id` (string): The registry version. Pattern `^ver-[0-9a-z]+$`. - `digest` (string): `sha256:` of the bundle. - `reference` (string): The tag or `sha256:` digest as given, such as `5.5.0` or `latest`. - `base_digest` (string): Empty on CREATE. - `result_digest` (string): Empty on DESTROY. - `ops` (array of ValueOp) - `path_segments` (array of PathSegment) - `key` (string, required): Length 1 to 256. - `op` (Kind): One of `KIND_UNSPECIFIED`, `SET`, `UNSET`. - `value_json` (string): JSON text; empty unless op is SET. - `from_present` (boolean): Whether the base had the key; a null there is present. - `from_value_json` (string): JSON text; empty when from_present is false. - `settings` (ComponentSettings): How Admiral deploys the component after this change set. Empty on DESTROY. - At most one of `kubernetes`, `terraform` is set. - `assignment_id` (string): The environment's agent assignment it runs on. Empty means the one assignment left after the agent's grants and allowed components rule the others out; required on a tie. A placement nothing covers is refused, naming an agent that would. Pattern `^asg-[0-9a-z]+$`. - `kubernetes` (KubernetesComponentSettings): KubernetesComponentSettings is where a Kubernetes component's objects go. - `namespace` (string): Empty means the environment's default namespace. Pattern `^([a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)?$`. Length at most 63. - `extra_namespaces` (array of string): Namespaces the component may also write to, such as `kube-system` for a chart's leader-election Role. The plan refuses an object in any other. Items at most 16. - `terraform` (TerraformComponentSettings): TerraformComponentSettings is where a Terraform component's state lives. The engine and version are the environment's, gated by the component's own `required_version`. - `backend` (InfraBackend): Replaces the environment's backend for this component, location included: for adopting state that already exists somewhere else. Empty uses the environment's, at a location Admiral derives. Fixed at the component's first apply. - `type` (string): The backend type as Terraform names it: `gcs`, `s3`, `azurerm`, `http`. Never `local`, which would leave state on the agent's disk. Not `local`. Pattern `^[a-z][a-z0-9_]*$`. Length at most 32. - `config` (map of string to Value): The backend's arguments, as the backend block takes them. On an environment, the bucket and its settings, without the key or prefix; Admiral derives the location per component. Admiral refuses credential arguments. - `dependencies` (array of string): Components this one applies after, after this change set. A component whose outputs this one's values reference is always among them. - `consumes` (array of string): Components whose outputs this one's values reference. An entry with no ops whose `consumes` names a changed component is planned because that component changes. Read-only. - `violations` (array of Violation) - `component` (string) - `path` (string): Display form: `image.tag`, `ingress."a.b"`. - `message` (string) - `created_by` (ActorRef): ActorRef is a lightweight reference to the user or agent that performed an action. Server-populated on all resource responses. Clients should never send this. - `id` (string): The actor's typed id: a `usr-` user id or an `sa-` service account id. - `display_name` (string): Human-readable name (e.g., "John Smith", "deploy-bot"). - `email` (string): Email address (empty for non-human actors). - `created_at` (Timestamp): A point in time in RFC 3339 format, with up to nanosecond precision. Output uses UTC (`Z`); input may use an offset from UTC.