Verify registry in project
Checks, step by step, that kosem can sign in with a registry, and with an image named, read it, and records what it found. It answers unavailable, and records nothing, when the registry or its cloud can't be reached.
Checks, step by step, that kosem can sign in with a registry, and with an image named, read it, and records what it found.
It answers unavailable, and records nothing, when the registry or its cloud can't be reached.
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}$application/json- body
image?stringAn image under the registry's prefix, to check that kosem can read it too. Without one, the check says only that kosem can sign in.
length <= 512OK
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 POST 'https://api.kosem.ai/v1/projects/string/registries/string/verify' \
-H 'Content-Type: application/json' \
-d '{}'{
"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"
}
}