← All tags

Private-Registries API Reference

Manage private registry configurations.

6 endpoints tagged private-registries, each listing its parameters and possible responses. Search or scroll the index below to jump to a specific endpoint.

No endpoints match your search.

List private registries for an organization

GET /orgs/{org}/private-registries

Lists all private registry configurations available at the organization-level without revealing their encrypted

Parameters

NameInRequiredDescription
orgpathyesThe organization name. The name is not case sensitive.
per_pagequerynoThe number of results per page (max 100). For more information, see "Using pagination in the REST API."
pagequerynoThe page number of the results to fetch. For more information, see "Using pagination in the REST API."

Responses

StatusDescriptionHas JSON body
200Responseyes
400Bad Requestyes
404Resource not foundyes

Create a private registry for an organization

POST /orgs/{org}/private-registries

Creates a private registry configuration with an encrypted value for an organization. Encrypt your secret using LibSodium. For more information, see "Encrypting secrets for the REST API."

Parameters

NameInRequiredDescription
orgpathyesThe organization name. The name is not case sensitive.

Responses

StatusDescriptionHas JSON body
201The organization private registry configurationyes
404Resource not foundyes
422Validation failed, or the endpoint has been spammed.yes

Get private registries public key for an organization

GET /orgs/{org}/private-registries/public-key

Gets the org public key, which is needed to encrypt private registry secrets. You need to encrypt a secret before you can create or update secrets.

Parameters

NameInRequiredDescription
orgpathyesThe organization name. The name is not case sensitive.

Responses

StatusDescriptionHas JSON body
200Responseyes
404Resource not foundyes

Get a private registry for an organization

GET /orgs/{org}/private-registries/{secret_name}

Get the configuration of a single private registry defined for an organization, omitting its encrypted value.

Parameters

NameInRequiredDescription
orgpathyesThe organization name. The name is not case sensitive.
secret_namepathyesThe name of the secret.

Responses

StatusDescriptionHas JSON body
200The specified private registry configuration for the organizationyes
404Resource not foundyes

Update a private registry for an organization

PATCH /orgs/{org}/private-registries/{secret_name}

Updates a private registry configuration with an encrypted value for an organization. Encrypt your secret using LibSodium. For more information, see "Encrypting secrets for the REST API."

Parameters

NameInRequiredDescription
orgpathyesThe organization name. The name is not case sensitive.
secret_namepathyesThe name of the secret.

Responses

StatusDescriptionHas JSON body
204Responseno
404Resource not foundyes
422Validation failed, or the endpoint has been spammed.yes

Delete a private registry for an organization

DELETE /orgs/{org}/private-registries/{secret_name}

Delete a private registry configuration at the organization-level.

Parameters

NameInRequiredDescription
orgpathyesThe organization name. The name is not case sensitive.
secret_namepathyesThe name of the secret.

Responses

StatusDescriptionHas JSON body
204Responseno
400Bad Requestyes
404Resource not foundyes