Components
Set a component's status
- FAILED_PRECONDITION when the successor is the component itself or is not ACTIVE.
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.
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
SetComponentStatusRequest names a component, its new status, and why. set_component_status.reason // a deprecated component needs a reason set_component_status.successor // only a deprecated component names a successor
Response Body
application/json
curl -X POST "https://example.com/v1/components/string/set-status" \ -H "Content-Type: application/json" \ -d '{ "status": "STATUS_UNSPECIFIED" }'{ "component": { "id": "string", "name": "string", "display_name": "string", "resource_name": "string", "description": "string", "labels": { "property1": "string", "property2": "string" }, "kind": "KIND_UNSPECIFIED", "origin": { "published": {} }, "tags": [ { "name": "string", "resource_name": "string", "digest": "string", "immutable": true, "etag": "string", "created_at": "2023-01-15T01:30:15.01Z", "updated_at": "2023-01-15T01:30:15.01Z" } ], "status": "STATUS_UNSPECIFIED", "status_reason": "string", "status_changed_at": "2023-01-15T01:30:15.01Z", "successor_id": "string", "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" }}Set a component's origin POST
- PERMISSION_DENIED when the caller may not move the origin. - FAILED_PRECONDITION when the source is not this organization's, or its `allows` does not permit the artifact. The message names which. Scope: `component:write`
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`