Components
Set a version's status
Revoking needs permission to revoke the component's versions, which the component's owner and organization admins hold by default. Plan and apply refuse a changeset that newly pins a revoked version, and check nothing else again. An environment already running it keeps running, and a revert to it is still allowed.
- PERMISSION_DENIED when the caller may not revoke the version.
Scope: component: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 component id.
The version id.
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
SetVersionStatusRequest names a version, its new status, and why.
Response Body
application/json
curl -X POST "https://example.com/v1/components/string/versions/string/set-status" \ -H "Content-Type: application/json" \ -d '{ "status": "STATUS_UNSPECIFIED", "reason": "string" }'{ "version": { "id": "string", "resource_name": "string", "component_id": "string", "digest": "string", "kind": "KIND_UNSPECIFIED", "size_bytes": "string", "contract": { "inputs": [ { "name": "string", "type": "string", "description": "string", "required": true, "default": null, "sensitive": true, "ephemeral": true, "nullable": true, "deprecated": "string", "validations": [ { "condition": "string", "error_message": "string" } ], "schema": { "property1": null, "property2": null } } ], "outputs": [ { "name": "string", "description": "string", "sensitive": true } ] }, "baseline_values_json": "string", "requirements": { "infra": { "required_version": "string", "providers": [ "string" ] } }, "provenance": { "kind": "KIND_UNSPECIFIED", "uri": "string", "ref": "string", "commit": "string", "path": "string", "dependencies": [ { "source": "string", "constraint": "string", "resolved": "string" } ], "credentials": [ { "credential_id": "string", "name": "string", "hosts": [ "string" ] } ], "commit_message": "string", "commit_author": "string", "source_id": "string" }, "findings": [ { "severity": "FINDING_SEVERITY_UNSPECIFIED", "source": "string", "code": "string", "message": "string", "path": "string" } ], "tags": [ "string" ], "status": "STATUS_UNSPECIFIED", "status_reason": "string", "status_changed_at": "2023-01-15T01:30:15.01Z", "created_by": { "id": "string", "display_name": "string", "email": "string" }, "created_at": "2023-01-15T01:30:15.01Z" }}Set a tag PUT
- FAILED_PRECONDITION on an attempt to repoint a semver tag, which may be created and never moved. The message states the rule. Scope: `component:publish`
Update a component PATCH
- INVALID_ARGUMENT when the mask names a field that can't be updated. - ABORTED when `etag` is set and the component changed since it was read. Scope: `component:write`