Get registry in project
Gets a registry: how kosem signs in, such as its token's username and the secret that holds it, never the secret's value.
Gets a registry: how kosem signs in, such as its token's username and the secret that holds it, never the secret's value.
bearerAuthorizationBearer <token>An access token, or an API key.
project*stringThe project's ID.
^prj_[0-7][0-9a-hjkmnp-tv-z]{25}$registry*stringThe registry's ID.
^reg_[0-7][0-9a-hjkmnp-tv-z]{25}$OK
application/json- response
availability*For an organization's registry: the projects whose environments pull with it, without adopting it. A project's own applies to it alone, and is shared with none.
aws?For a registry of Amazon ECR: the role kosem signs in as, without a key.
createTime*stringWhen the registry was created.
date-timedescription*stringWhat the registry is for.
google?For a registry of Artifact Registry: the service account kosem signs in as, without a key.
lastPullTime?stringWhen an environment last pulled an image with the registry; unset until one has.
date-timename*stringResource name, organizations/{organization_id}/registries/{registry_id}, or projects/{project_id}/registries/{registry_id} for a project's own.
prefix*stringThe images the registry covers: a host, and a path in it when it covers only part of it, such as ghcr.io/acme. kosem signs in with the registry of the longest prefix that covers an image's repository, among a project's own and those its organization shares with it, and of two of the same prefix, the project's own. Set when the registry is created, and never changed.
state*stringNOT_CONNECTED for a registry that has yet to sign in: one without a key until a check or a pull signs in with it, and one with a token that a check found refused before anything pulled with it. NEEDS_ATTENTION once the registry refused kosem's sign-in, until how it signs in changes or a check takes it.
"ACTIVE""NEEDS_ATTENTION""NOT_CONNECTED"stateReason*stringWhy the registry needs attention, when it does.
token?The username and the secret that kosem signs in with, unless it signs in without a key.
trust?For a registry that signs in without a key: what its cloud trusts, kosem's identity tokens for it.
updateTime*stringWhen the registry last changed.
date-timeverification?What VerifyRegistry last found, until how the registry signs in changes.
curl -X GET 'https://api.kosem.ai/v1/projects/string/registries/string'{
"availability": {
"allProjects": true,
"projects": [
"string"
]
},
"aws": {
"role": "string"
},
"createTime": "2019-08-24T14:15:22Z",
"description": "string",
"google": {
"provider": "string",
"serviceAccount": "string"
},
"lastPullTime": "2019-08-24T14:15:22Z",
"name": "string",
"prefix": "string",
"state": "ACTIVE",
"stateReason": "string",
"token": {
"secret": "string",
"username": "string"
},
"trust": {
"attributeCondition": "string",
"audience": "string",
"issuer": "string",
"subject": "string"
},
"updateTime": "2019-08-24T14:15:22Z",
"verification": {
"steps": [
{
"said": "string",
"state": "PASSED",
"step": "TRUST"
}
],
"verifyTime": "2019-08-24T14:15:22Z"
}
}