Registry V3 Registries
V3 registries endpoints
Lists registries.
Unique identifier for the Harness account.
Unique identifier for the organization within the account.
Example: default or engineering_org
Unique identifier for the project within the organization.
Example: my_project or frontend_services
Registry Package Type
Registry Type
Filter by metadata using key:value format
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,noneis assumed.
excludePossible values: Filter registries by signing key ID (UUID)
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.
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
0The number of items to return per page.
Controls the page size for paginated results.
Example: size=50 returns up to 50 items per page
20The 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 term for filtering results.
Example: search_term=prod might match keys like "production", "prod-env", etc.
When true, include the meta object (e.g. active/deleted counts)
in the response.
falseresponse for list registry
Pagination metadata.
pageselects which page of results to return (0 = first page).sizecontrols how many items are returned per page.hasMoreis true if more results exist after this page.
True if more results exist after this page.
trueThe current page (0-indexed)
0Number of items per page
20Error response.
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
}
}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.
Unique identifier for the Harness account.
Unique identifier for the organization within the account.
Example: default or engineering_org
Unique identifier for the project within the organization.
Example: my_project or frontend_services
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.
Patterns of artifacts allowed in this registry.
Patterns of artifacts blocked from this registry.
Human readable description of the registry.
Identifier of the registry, unique within the parent scope. This is the only identifier accepted on create, because no UUID exists yet.
Whether the registry is readable without authentication.
Whether OPA metadata validation is enforced on this registry.
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.
DOCKERReferences 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.
response for a single registry
Registry Metadata
Unix timestamp in milliseconds when the resource was soft-deleted
1736360000456Indicates that the registry is internal (system-managed).
Unix timestamp in milliseconds when the resource was last modified
1736360000123Package 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.
DOCKERrefers to type of registry i.e virtual or upstream
Patterns of artifacts allowed in this registry.
Patterns of artifacts blocked from this registry.
Unix timestamp in milliseconds when the resource was created
1736360000123References 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.
Error response.
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"
}
]
}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.
Unique identifier for the Harness account.
Unique identifier for the organization within the account.
Example: default or engineering_org
Unique identifier for the project within the organization.
Example: my_project or frontend_services
response for a single registry
Registry Metadata
Unix timestamp in milliseconds when the resource was soft-deleted
1736360000456Indicates that the registry is internal (system-managed).
Unix timestamp in milliseconds when the resource was last modified
1736360000123Package 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.
DOCKERrefers to type of registry i.e virtual or upstream
Patterns of artifacts allowed in this registry.
Patterns of artifacts blocked from this registry.
Unix timestamp in milliseconds when the resource was created
1736360000123References 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.
Error response.
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"
}
]
}Retrieves all metadata for a registry.
Unique identifier for the Harness account.
Response containing all metadata entries for the requested entity
Error response.
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"
}
]
}Creates or overwrites metadata for a registry.
Unique identifier for the Harness account.
Request payload containing metadata key-value pairs to add or update.
Response containing all metadata entries for the requested entity
Error response.
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"
}
]
}Replaces all metadata for a registry.
Unique identifier for the Harness account.
Request payload containing metadata key-value pairs to add or update.
Response containing all metadata entries for the requested entity
Error response.
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"
}
]
}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.
Unique identifier for the Harness account.
Public key content
-----BEGIN PGP PUBLIC KEY BLOCK----- ... -----END PGP PUBLIC KEY BLOCK-----Error response.
GET /api/v3/registries/{id}/public-key?account_identifier=text HTTP/1.1
Accept: */*
-----BEGIN PGP PUBLIC KEY BLOCK-----
...
-----END PGP PUBLIC KEY BLOCK-----
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.
Unique identifier for the Harness account.
Registry index rebuild request accepted for processing
No content
Index rebuild is not supported for this registry's package type.
Error response.
POST /api/v3/registries/{id}/rebuild-index?account_identifier=text HTTP/1.1
Accept: */*
No content
Get statistics (packageCount, size, downloadCount, artifactsCount) for a list of registries by their UUIDs.
Unique identifier for the Harness account.
Unique identifier for the organization within the account.
Example: default or engineering_org
Unique identifier for the project within the organization.
Example: my_project or frontend_services
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,noneis assumed.
Request input for fetching registry statistics
List of registry UUIDs to fetch statistics for
Response containing statistics for the requested registries
Response body containing registry statistics
Error response.
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?