Components
List a component's versions
Scope: component:read
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.
Query Parameters
Maximum number of versions to return per page. Defaults to 50 when omitted or 0; must not exceed 100.
int320 <= value <= 100Opaque pagination token from a previous response.
An AIP-160 filter expression. Filterable fields are kind (TERRAFORM,
HELM or MANIFESTS) and status (PUBLISHED, DEPRECATED or REVOKED).
Example: status = PUBLISHED AND kind = HELM
id is filterable too: id = "a" OR id = "b" reads up to 100 of
them by id in one call.
length <= 4096Fields to order by, in AIP-132 syntax such as created_at desc. Accepted
fields: created_at. Left empty, the list keeps the order stated above. An
unknown field is INVALID_ARGUMENT.
length <= 256Response Body
application/json
curl -X GET "https://example.com/v1/components/string/versions"{ "versions": [ { "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" } ], "next_page_token": "string"}List components GET
Scope: `component:read`
Publish a component version POST
The bundle is a gzipped tar of the component root, carried inline and capped at 64 MiB. Admiral normalizes the bytes (strips `.git`, canonicalizes entry order and timestamps), digests them, scans them, stores them and answers with the version. If the digest already exists under the name, the existing version is returned with `unchanged` set and nothing is written, which is what makes a publish-everything CI recipe safe. Any tags named in the request are set on the resulting version. A publish that creates a component gives it the origin published by hand, and needs permission to create components, which organization admins hold by default and which may be granted to every member. A publish to an existing component needs publish rights on it. A hand publish is checked the same way as an import. - PERMISSION_DENIED when the caller may not create the component, or may not publish to it. - FAILED_PRECONDITION when the component's origin is a source. Its versions arrive through that source, which the message names, until SetComponentOrigin moves the origin. - FAILED_PRECONDITION when a named tag is a semver tag on another version. The whole publish fails and the bytes are not kept. Scope: `component:publish`