Projects
Revert a change set
A change set that holds its environment is reverted in place: a new
revision of the same change set, for the components named or every one it
touched, with trigger REVERT. When every component is back, it reads
REVERTED; when some are kept, it reads APPLIED with what it kept. A
change set that has closed is reverted by a new change set whose
original_id names it, for the components named or every one it
touched, which may apply only while the environment has not moved past
it.
Scope: changeset:write
Authorization
bearerAuth An API key, or an access token minted from one. Pass it in the Authorization header: Bearer admp_...
In: header
Path Parameters
The project id.
The environment id.
The changeset id.
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
curl -X POST "https://example.com/v1/projects/string/environments/string/changesets/string/revert" \ -H "Content-Type: application/json" \ -d '{}'{ "change_set": { "id": "string", "title": "string", "resource_name": "string", "description": "string", "environment_id": "string", "original_id": "string", "revert_id": "string", "latest_revision_id": "string", "latest_run_id": "string", "status": "STATUS_UNSPECIFIED", "behind": true, "etag": "string", "created_by": { "id": "string", "display_name": "string", "email": "string" }, "created_at": "2023-01-15T01:30:15.01Z", "updated_at": "2023-01-15T01:30:15.01Z" }, "revision": { "id": "string", "resource_name": "string", "change_set_id": "string", "number": 0, "trigger": "TRIGGER_UNSPECIFIED", "environment_generation": "string", "entries": [ { "component": "string", "action": "ENTRY_ACTION_UNSPECIFIED", "version": { "component_id": "string", "version_id": "string", "digest": "string", "requested": "string" }, "base_digest": "string", "result_digest": "string", "ops": [ { "path": { "segments": [ { "key": "string" } ], "display": "string" }, "op": "KIND_UNSPECIFIED", "value_json": "string", "from_present": true, "from_value_json": "string" } ], "settings": { "assignment_id": "string", "kind": "AGENT_KIND_UNSPECIFIED", "infra": { "backend": { "type": "string", "config": { "property1": null, "property2": null } }, "engine": { "engine": "ENGINE_UNSPECIFIED", "version": "string" } } }, "dependencies": [ "string" ], "consumes": [ "string" ] } ], "violations": [ { "component": "string", "path": { "segments": [ { "key": "string" } ], "display": "string" }, "message": "string" } ], "created_by": { "id": "string", "display_name": "string", "email": "string" }, "created_at": "2023-01-15T01:30:15.01Z" }}Rebase a change set POST
Every conflict needs a resolution, and resolving any dismisses every approval. Without one, an approval carries to the new revision's run when its plan does the same thing to every resource, as ApproveRun says. - FAILED_PRECONDITION when it is not behind, when `if_revision` is not the latest revision's number, when the change set is not open or its apply is running, and when a conflict has no resolution or a resolution matches no conflict (the message names each). Scope: `changeset:write`
Update a change set PATCH
- INVALID_ARGUMENT when the mask names a field that can't be updated. - FAILED_PRECONDITION when the change set is not open. - ABORTED when `etag` is set and the change set changed since it was read. Scope: `changeset:write`