v1

latestOpenAPI 3.0.1Apache 2.02026-07-17111176225.7 KB
Registries

Update/replace a registry configuration

Replaces an existing registry record with the given record

put/registries/{registry}

Path parameters

registrystring path required

Query parameters

validateboolean

flag to determine whether or not to validate registry/credential at registry update time

Headers

x-anchore-accountstring

An account name to change the resource scope of the request to that account, if permissions allow (admin only)

Request body

registry_userstring

Username portion of credential to use for this registry

registry_passstring

Password portion of credential to use for this registry

registry_typestring

Type of registry

registrystring

hostname:port string for accessing the registry, as would be used in a docker pull operation. May include some or all of a repository and wildcards (e.g. docker.io/library/* or gcr.io/myproject/myrepository)

registry_namestring

human readable name associated with registry record

registry_verifyboolean

Use TLS/SSL verification for the registry URL

Example request

{
  "registry": "registry",
  "registry_user": "registry_user",
  "registry_type": "registry_type",
  "registry_name": "registry_name",
  "registry_pass": "registry_pass",
  "registry_verify": true
}

Response

Updated registry configuration

created_atstring date-time
last_upatedstring date-time
registry_userstring

Username portion of credential to use for this registry

registry_typestring

Type of registry

userIdstring

Engine user that owns this registry entry

registrystring

hostname:port string for accessing the registry, as would be used in a docker pull operation

registry_namestring

human readable name associated with registry record

registry_verifyboolean

Use TLS/SSL verification for the registry URL

Example response

[
  {
    "registry": "registry",
    "last_upated": "2000-01-23T04:56:07.000+00:00",
    "registry_user": "registry_user",
    "registry_type": "registry_type",
    "created_at": "2000-01-23T04:56:07.000+00:00",
    "registry_name": "registry_name",
    "userId": "userId",
    "registry_verify": true
  }
]