Admiral

Components

List a component's versions

GET
/v1/components/{component}/versions

Scope: component:read

Authorization

bearerAuth
AuthorizationBearer <token>

An API key, or an access token minted from one. Pass it in the Authorization header: Bearer admp_...

In: header

Path Parameters

component*string

The component id.

Query Parameters

page_size?page_size

Maximum number of versions to return per page. Defaults to 50 when omitted or 0; must not exceed 100.

Formatint32
Range0 <= value <= 100
page_token?page_token

Opaque pagination token from a previous response.

filter?filter

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.

Lengthlength <= 4096
order_by?order_by

Fields 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.

Lengthlength <= 256

Response 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"}