Update registry
Changes a registry's description, how kosem signs in, or the projects an organization's is shared with.
Changes a registry's description, how kosem signs in, or the projects an organization's is shared with.
bearerAuthorizationBearer <token>An access token, or an API key.
organization*stringThe organization's ID.
^org_[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
availability?The projects whose environments pull with it. Changing it also takes environments.registries.setAvailability, and takes effect for the next pulls. A project's own registry takes none.
aws?The role kosem signs in as from now on, without a key.
description?stringWhat the registry is for.
length <= 500google?The service account kosem signs in as from now on, without a key.
token?The username and the secret that kosem signs in with from now on, whole, in place of how it signed in. A registry that needs attention is active again. At most one of token, google and aws.
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 PATCH 'https://api.kosem.ai/v1/organizations/string/registries/string' \
-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"
}
}