Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Registry V3 Registries

V3 registries endpoints

List registries

get

Lists registries.

Query parameters
account_identifierstringRequired

Unique identifier for the Harness account.

org_identifierstringOptional

Unique identifier for the organization within the account.

Example: default or engineering_org

project_identifierstringOptional

Unique identifier for the project within the organization.

Example: my_project or frontend_services

package_typesstring[]Optional

Registry Package Type

typestring · enumOptional

Registry Type

Possible values:
metadatastring[]Optional

Filter by metadata using key:value format

scopestring · enumOptional

Scope of registries to list

  • none – current space only (default) * ancestors – current space plus all parent spaces * descendants – current space plus all child spaces
    If omitted, none is assumed.
Possible values:
deletedstring · enumOptionalDefault: excludePossible values:
signing_key_idstringOptional

Filter registries by signing key ID (UUID)

is_internalbooleanOptional

Filter registries by whether they are internal (system-managed).

When true, only internal registries in the requested scope are returned. When false, only non-internal registries are returned. If omitted, both internal and non-internal registries are returned.

pageinteger · int64Optional

The page number for pagination (0-indexed).

Used to navigate through large result sets. Combined with size parameter to control which subset of results to return.

Example: page=0 returns the first page, page=1 returns the second page

Default: 0
sizeinteger · int64 · min: 1 · max: 100Optional

The number of items to return per page.

Controls the page size for paginated results.

Example: size=50 returns up to 50 items per page

Default: 20
sortstringOptional

The sort for the results. Accepted pattern: sort_field:sort_order where sort_field is the field name and sort_order is either asc or desc.

Examples: name:asc, modifiedAt:desc

search_termstringOptional

Search term for filtering results.

Example: search_term=prod might match keys like "production", "prod-env", etc.

include_metabooleanOptional

When true, include the meta object (e.g. active/deleted counts) in the response.

Default: false
Responses
200

response for list registry

application/json

Pagination metadata.

  • page selects which page of results to return (0 = first page).
  • size controls how many items are returned per page.
  • hasMore is true if more results exist after this page.
hasMorebooleanRequired

True if more results exist after this page.

Example: true
pageinteger · int64Required

The current page (0-indexed)

Example: 0
sizeinteger · int64Required

Number of items per page

Example: 20
get/v3/registries
GET /api/v3/registries?account_identifier=text HTTP/1.1
Accept: */*
{
  "hasMore": true,
  "page": 0,
  "size": 20,
  "items": [
    {
      "deletedAt": 1736360000456,
      "deletedBy": {
        "display_name": "text",
        "email": "text",
        "type": "text",
        "uid": "text"
      },
      "description": "text",
      "id": "123e4567-e89b-12d3-a456-426614174000",
      "isInternal": true,
      "isPublic": true,
      "modifiedAt": 1736360000123,
      "modifiedBy": {
        "display_name": "text",
        "email": "text",
        "type": "text",
        "uid": "text"
      },
      "name": "text",
      "opaMetadataValidation": true,
      "orgIdentifier": "text",
      "packageType": "DOCKER",
      "path": "text",
      "projectIdentifier": "text",
      "type": "VIRTUAL",
      "url": "text"
    }
  ],
  "meta": {
    "activeCount": 95,
    "deletedCount": 5
  }
}

Create a Registry

post

Creates a registry in the scope given by the account, org and project identifiers. The scope is taken from the query parameters, so the body carries no parent reference.

Query parameters
account_identifierstringRequired

Unique identifier for the Harness account.

org_identifierstringOptional

Unique identifier for the organization within the account.

Example: default or engineering_org

project_identifierstringOptional

Unique identifier for the project within the organization.

Example: my_project or frontend_services

Body

Body for creating a registry. The parent scope comes from the account_identifier, org_identifier and project_identifier query parameters, so there is no parent reference here.

cleanupPolicy is not accepted. Cleanup policies are deprecated, so a new registry is never created with one; the field is left out rather than accepted and discarded silently. Policies on registries that already have them are reported by the single registry responses and are not removed by this API.

allowedPatternstring[]Optional

Patterns of artifacts allowed in this registry.

blockedPatternstring[]Optional

Patterns of artifacts blocked from this registry.

descriptionstringOptional

Human readable description of the registry.

identifierstringRequired

Identifier of the registry, unique within the parent scope. This is the only identifier accepted on create, because no UUID exists yet.

isPublicbooleanOptional

Whether the registry is readable without authentication.

opaMetadataValidationbooleanOptional

Whether OPA metadata validation is enforced on this registry.

packageTypestringRequired

Package type. Known values include: DOCKER, MAVEN, PYTHON, GENERIC, HELM, HELM_HTTP, NUGET, NPM, RPM, CARGO, COMPOSER, GO, HUGGINGFACE, CONDA, DART, SWIFT, PUPPET, RUBY, RAW, DEBIAN, CONAN, TERRAFORM, TERRAFORM_BACKEND, CRAN, WOLFI, ALPINE. This field is extensible; clients must handle unknown values.

Example: DOCKER
policyRefsstring[]Optional

References to Harness OPA policy sets to apply to this registry. These are Harness platform entities addressed by identifier and scope across all of Harness, so they are not UUIDs.

Responses
201

response for a single registry

application/json

Registry Metadata

deletedAtinteger · int64 · nullableOptional

Unix timestamp in milliseconds when the resource was soft-deleted

Example: 1736360000456
descriptionstringOptional
idstring · uuidRequired
isInternalbooleanOptional

Indicates that the registry is internal (system-managed).

isPublicbooleanRequired
modifiedAtinteger · int64 · nullableOptional

Unix timestamp in milliseconds when the resource was last modified

Example: 1736360000123
namestringRequired
opaMetadataValidationbooleanOptional
orgIdentifierstringOptional
packageTypestringRequired

Package type. Known values include: DOCKER, MAVEN, PYTHON, GENERIC, HELM, HELM_HTTP, NUGET, NPM, RPM, CARGO, COMPOSER, GO, HUGGINGFACE, CONDA, DART, SWIFT, PUPPET, RUBY, RAW, DEBIAN, CONAN, TERRAFORM, TERRAFORM_BACKEND, CRAN, WOLFI, ALPINE. This field is extensible; clients must handle unknown values.

Example: DOCKER
pathstringOptional
projectIdentifierstringOptional
typestring · enumRequired

refers to type of registry i.e virtual or upstream

Possible values:
urlstringRequired
allowedPatternstring[]Optional

Patterns of artifacts allowed in this registry.

blockedPatternstring[]Optional

Patterns of artifacts blocked from this registry.

createdAtinteger · int64 · nullableOptional

Unix timestamp in milliseconds when the resource was created

Example: 1736360000123
policyRefsstring[]Optional

References to Harness OPA policy sets applied to this registry. These are Harness platform entities addressed by identifier and scope across all of Harness, so they are not UUIDs.

post/v3/registries
POST /api/v3/registries?account_identifier=text HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 491

{
  "allowedPattern": [
    "text"
  ],
  "blockedPattern": [
    "text"
  ],
  "config": {
    "type": "VIRTUAL",
    "debianConfig": {
      "optionalIndexCompressionFormats": [
        ".xz"
      ],
      "remoteIndexedArchitectures": [
        "text"
      ]
    },
    "signingConfig": {
      "keyId": "123e4567-e89b-12d3-a456-426614174000",
      "signingEnabled": false
    },
    "upstreamProxies": [
      "123e4567-e89b-12d3-a456-426614174000"
    ]
  },
  "description": "text",
  "identifier": "text",
  "isPublic": true,
  "opaMetadataValidation": true,
  "packageType": "DOCKER",
  "policyRefs": [
    "text"
  ],
  "scanners": [
    {
      "name": "AQUA_TRIVY"
    }
  ]
}
{
  "deletedAt": 1736360000456,
  "deletedBy": {
    "display_name": "text",
    "email": "text",
    "type": "text",
    "uid": "text"
  },
  "description": "text",
  "id": "123e4567-e89b-12d3-a456-426614174000",
  "isInternal": true,
  "isPublic": true,
  "modifiedAt": 1736360000123,
  "modifiedBy": {
    "display_name": "text",
    "email": "text",
    "type": "text",
    "uid": "text"
  },
  "name": "text",
  "opaMetadataValidation": true,
  "orgIdentifier": "text",
  "packageType": "DOCKER",
  "path": "text",
  "projectIdentifier": "text",
  "type": "VIRTUAL",
  "url": "text",
  "allowedPattern": [
    "text"
  ],
  "blockedPattern": [
    "text"
  ],
  "cleanupPolicy": [
    {
      "expireDays": 1,
      "name": "text",
      "packagePrefix": [
        "text"
      ],
      "versionPrefix": [
        "text"
      ]
    }
  ],
  "config": {
    "type": "VIRTUAL",
    "debianConfig": {
      "optionalIndexCompressionFormats": [
        ".xz"
      ],
      "remoteIndexedArchitectures": [
        "text"
      ]
    },
    "signingConfig": {
      "keyId": "123e4567-e89b-12d3-a456-426614174000",
      "signingEnabled": false
    },
    "upstreamProxies": [
      "123e4567-e89b-12d3-a456-426614174000"
    ]
  },
  "createdAt": 1736360000123,
  "policyRefs": [
    "text"
  ],
  "scanners": [
    {
      "name": "AQUA_TRIVY"
    }
  ]
}

Get a Registry

get

Retrieves a single registry by its UUID, including its configuration and other nested settings that are omitted from list results. Soft-deleted registries are returned as well, so that a caller holding a UUID can read one in order to restore it; deletedAt and deletedBy report the deletion.

Path parameters
idstringRequired
Query parameters
account_identifierstringRequired

Unique identifier for the Harness account.

org_identifierstringOptional

Unique identifier for the organization within the account.

Example: default or engineering_org

project_identifierstringOptional

Unique identifier for the project within the organization.

Example: my_project or frontend_services

Responses
200

response for a single registry

application/json

Registry Metadata

deletedAtinteger · int64 · nullableOptional

Unix timestamp in milliseconds when the resource was soft-deleted

Example: 1736360000456
descriptionstringOptional
idstring · uuidRequired
isInternalbooleanOptional

Indicates that the registry is internal (system-managed).

isPublicbooleanRequired
modifiedAtinteger · int64 · nullableOptional

Unix timestamp in milliseconds when the resource was last modified

Example: 1736360000123
namestringRequired
opaMetadataValidationbooleanOptional
orgIdentifierstringOptional
packageTypestringRequired

Package type. Known values include: DOCKER, MAVEN, PYTHON, GENERIC, HELM, HELM_HTTP, NUGET, NPM, RPM, CARGO, COMPOSER, GO, HUGGINGFACE, CONDA, DART, SWIFT, PUPPET, RUBY, RAW, DEBIAN, CONAN, TERRAFORM, TERRAFORM_BACKEND, CRAN, WOLFI, ALPINE. This field is extensible; clients must handle unknown values.

Example: DOCKER
pathstringOptional
projectIdentifierstringOptional
typestring · enumRequired

refers to type of registry i.e virtual or upstream

Possible values:
urlstringRequired
allowedPatternstring[]Optional

Patterns of artifacts allowed in this registry.

blockedPatternstring[]Optional

Patterns of artifacts blocked from this registry.

createdAtinteger · int64 · nullableOptional

Unix timestamp in milliseconds when the resource was created

Example: 1736360000123
policyRefsstring[]Optional

References to Harness OPA policy sets applied to this registry. These are Harness platform entities addressed by identifier and scope across all of Harness, so they are not UUIDs.

get/v3/registries/{id}
GET /api/v3/registries/{id}?account_identifier=text HTTP/1.1
Accept: */*
{
  "deletedAt": 1736360000456,
  "deletedBy": {
    "display_name": "text",
    "email": "text",
    "type": "text",
    "uid": "text"
  },
  "description": "text",
  "id": "123e4567-e89b-12d3-a456-426614174000",
  "isInternal": true,
  "isPublic": true,
  "modifiedAt": 1736360000123,
  "modifiedBy": {
    "display_name": "text",
    "email": "text",
    "type": "text",
    "uid": "text"
  },
  "name": "text",
  "opaMetadataValidation": true,
  "orgIdentifier": "text",
  "packageType": "DOCKER",
  "path": "text",
  "projectIdentifier": "text",
  "type": "VIRTUAL",
  "url": "text",
  "allowedPattern": [
    "text"
  ],
  "blockedPattern": [
    "text"
  ],
  "cleanupPolicy": [
    {
      "expireDays": 1,
      "name": "text",
      "packagePrefix": [
        "text"
      ],
      "versionPrefix": [
        "text"
      ]
    }
  ],
  "config": {
    "type": "VIRTUAL",
    "debianConfig": {
      "optionalIndexCompressionFormats": [
        ".xz"
      ],
      "remoteIndexedArchitectures": [
        "text"
      ]
    },
    "signingConfig": {
      "keyId": "123e4567-e89b-12d3-a456-426614174000",
      "signingEnabled": false
    },
    "upstreamProxies": [
      "123e4567-e89b-12d3-a456-426614174000"
    ]
  },
  "createdAt": 1736360000123,
  "policyRefs": [
    "text"
  ],
  "scanners": [
    {
      "name": "AQUA_TRIVY"
    }
  ]
}

Get Registry Metadata

get

Retrieves all metadata for a registry.

Path parameters
idstringRequired
Query parameters
account_identifierstringRequired

Unique identifier for the Harness account.

Responses
200

Response containing all metadata entries for the requested entity

application/json
get/v3/registries/{id}/metadata
GET /api/v3/registries/{id}/metadata?account_identifier=text HTTP/1.1
Accept: */*
{
  "data": [
    {
      "id": "123e4567-e89b-12d3-a456-426614174000",
      "key": "environment",
      "type": "MANUAL",
      "value": "production"
    }
  ]
}

Upsert Registry Metadata

post

Creates or overwrites metadata for a registry.

Path parameters
idstringRequired
Query parameters
account_identifierstringRequired

Unique identifier for the Harness account.

Body

Request payload containing metadata key-value pairs to add or update.

Responses
200

Response containing all metadata entries for the requested entity

application/json
post/v3/registries/{id}/metadata
POST /api/v3/registries/{id}/metadata?account_identifier=text HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 90

{
  "metadata": [
    {
      "key": "environment",
      "value": "production"
    },
    {
      "key": "team",
      "value": "backend"
    }
  ]
}
{
  "data": [
    {
      "id": "123e4567-e89b-12d3-a456-426614174000",
      "key": "environment",
      "type": "MANUAL",
      "value": "production"
    }
  ]
}

Replace Registry Metadata

put

Replaces all metadata for a registry.

Path parameters
idstringRequired
Query parameters
account_identifierstringRequired

Unique identifier for the Harness account.

Body

Request payload containing metadata key-value pairs to add or update.

Responses
200

Response containing all metadata entries for the requested entity

application/json
put/v3/registries/{id}/metadata
PUT /api/v3/registries/{id}/metadata?account_identifier=text HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 90

{
  "metadata": [
    {
      "key": "environment",
      "value": "production"
    },
    {
      "key": "team",
      "value": "backend"
    }
  ]
}
{
  "data": [
    {
      "id": "123e4567-e89b-12d3-a456-426614174000",
      "key": "environment",
      "type": "MANUAL",
      "value": "production"
    }
  ]
}

Get registry public key

get

Returns the public key for the signing key attached to a registry. This is a public endpoint (no auth required) used by package managers (apt, apk) to fetch the repository signing key.

Path parameters
idstringRequired
Query parameters
account_identifierstringRequired

Unique identifier for the Harness account.

Responses
200

Public key content

text/plain
stringOptionalExample: -----BEGIN PGP PUBLIC KEY BLOCK----- ... -----END PGP PUBLIC KEY BLOCK-----
get/v3/registries/{id}/public-key
GET /api/v3/registries/{id}/public-key?account_identifier=text HTTP/1.1
Accept: */*
-----BEGIN PGP PUBLIC KEY BLOCK-----
...
-----END PGP PUBLIC KEY BLOCK-----

Rebuild the index for a registry

post

Trigger an asynchronous rebuild of the repository index for the given registry. The rebuild runs in the background; this endpoint returns immediately once the request is accepted. Index rebuild is package-type specific. Registries whose package type does not maintain a rebuildable index return 405.

Path parameters
idstringRequired
Query parameters
account_identifierstringRequired

Unique identifier for the Harness account.

Responses
202

Registry index rebuild request accepted for processing

No content

post/v3/registries/{id}/rebuild-index
POST /api/v3/registries/{id}/rebuild-index?account_identifier=text HTTP/1.1
Accept: */*

No content

Get statistics for multiple registries

post

Get statistics (packageCount, size, downloadCount, artifactsCount) for a list of registries by their UUIDs.

Query parameters
account_identifierstringRequired

Unique identifier for the Harness account.

org_identifierstringOptional

Unique identifier for the organization within the account.

Example: default or engineering_org

project_identifierstringOptional

Unique identifier for the project within the organization.

Example: my_project or frontend_services

scopestring · enumOptional

Scope of registries to list

  • none – current space only (default) * ancestors – current space plus all parent spaces * descendants – current space plus all child spaces
    If omitted, none is assumed.
Possible values:
Body

Request input for fetching registry statistics

registryIdsstring · uuid[] · max: 100Required

List of registry UUIDs to fetch statistics for

Responses
200

Response containing statistics for the requested registries

application/json

Response body containing registry statistics

post/v3/registries/stats
POST /api/v3/registries/stats?account_identifier=text HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 56

{
  "registryIds": [
    "123e4567-e89b-12d3-a456-426614174000"
  ]
}
{
  "items": [
    {
      "artifactsCount": 1,
      "downloadCount": 1,
      "id": "123e4567-e89b-12d3-a456-426614174000",
      "packageCount": 1,
      "size": "text"
    }
  ]
}

Last updated

Was this helpful?