--- title: "Diff a change set" canonical: "https://admiral.io/docs/api/projects/ChangeSetAPI_DiffChangeSet" --- # Diff a change set `GET https://api.admiral.io/v1/projects/{project}/environments/{environment}/changesets/{changeset}/diff` Scope: `changeset:read` ### Path parameters - `project` (string, required): The project id. - `environment` (string, required): The environment id. - `changeset` (string, required): The changeset id. ### Response 200 Success - `revision` (integer (int32)): The head revision diffed; 0 when there is none. - `components` (array of ComponentDiff) - `component` (string) - `action` (EntryAction): EntryAction is what a change set does to one component. One of `ENTRY_ACTION_UNSPECIFIED`, `CREATE`, `UPDATE`, `DESTROY`, `ORPHAN`. - `old_version` (VersionRef): Absent on CREATE. - `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`. - `new_version` (VersionRef): Absent on DESTROY. - `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`. - `paths` (array of PathDiff) - `path_segments` (array of PathSegment) - `key` (string, required): Length 1 to 256. - `display_path` (string) - `before_present` (boolean) - `before_json` (string) - `after_present` (boolean) - `after_json` (string) - `violations` (array of Violation) - `component` (string) - `path` (string): Display form: `image.tag`, `ingress."a.b"`. - `message` (string)