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

Registry V3 Tree View

V3 tree view endpoints for hierarchical navigation

List node children

get

Lists the immediate children of a non-registry node. For a Docker/Helm package, the first page starts with an Untagged (n) group when the package has untagged manifests; it occupies one slot of size. An unknown node returns 404.

Path parameters
node_idstringRequired

The id of a non-registry tree node, as returned by a tree listing or by a search hit's id/ancestors. Either a node UUID, or for Docker/Helm registries a synthetic id of the form <kind>:<registryUUID>:<innerId> (kind is image, tag, manifest or untagged) - which is why this is a plain string rather than a UUID. Treat it as opaque. An unknown or malformed id returns 404. Registry ids are not accepted here; use ListRegistryNodesV3.

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

cursorstringOptional

Opaque cursor from the previous page's pagination.nextCursor. Omit for the first page, and send the same filters with every page. A cursor that cannot be decoded returns 400.

sizeinteger · min: 1 · max: 1000Optional

Number of items per page. A value outside 1-1000 returns 400.

Default: 50
deleted_filterstring · enumOptional

Soft-delete filter, applied to each row's effective state (see TreeNodeItemV3.deletedAt). Applied at the registry level and, for Docker and Helm, to packages and their versions (tags and untagged digests). Other levels accept it but return every row whatever its state: their state is worked out after the query, so filtering would break paging. Read deletedAt to render deleted state. An unknown value returns 400.

Default: exclude_deletedPossible values:
compactbooleanOptional

Collapses a run of single-child folders into one row, e.g. io/harness/platform/api renders as one row instead of four levels. A collapsed row carries the deepest folder's id and path (expand it with that id) and a name joining every segment of the run with /. Collapsing stops at a folder with more than one child and never absorbs a file. Accepted and ignored for Docker and Helm registries.

Default: false
Responses
200

Response for tree view endpoints

application/json

Response body for tree view endpoints

get/v3/tree/nodes/{node_id}/children
GET /api/v3/tree/nodes/{node_id}/children?account_identifier=text HTTP/1.1
Accept: */*
{
  "items": [
    {
      "createdAt": 1,
      "deletedAt": 1,
      "entityId": "123e4567-e89b-12d3-a456-426614174000",
      "entityKind": "REGISTRY",
      "hasChildren": true,
      "id": "text",
      "name": "text",
      "packageType": "text",
      "path": "text",
      "treePath": "text",
      "type": "registry"
    }
  ],
  "pagination": {
    "hasMore": true,
    "nextCursor": "text",
    "size": 1,
    "total": 1
  }
}

List registry nodes

get

Lists the immediate children of a registry: packages for Docker/Helm, top-level folders/files for every other package type. Expand a child with ListNodeChildrenV3.

Path parameters
registry_idstringRequired

Registry UUID. A malformed UUID returns 400; an unknown registry returns 404.

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

cursorstringOptional

Opaque cursor from the previous page's pagination.nextCursor. Omit for the first page, and send the same filters with every page. A cursor that cannot be decoded returns 400.

sizeinteger · min: 1 · max: 1000Optional

Number of items per page. A value outside 1-1000 returns 400.

Default: 50
deleted_filterstring · enumOptional

Soft-delete filter, applied to each row's effective state (see TreeNodeItemV3.deletedAt). Applied at the registry level and, for Docker and Helm, to packages and their versions (tags and untagged digests). Other levels accept it but return every row whatever its state: their state is worked out after the query, so filtering would break paging. Read deletedAt to render deleted state. An unknown value returns 400.

Default: exclude_deletedPossible values:
compactbooleanOptional

Collapses a run of single-child folders into one row, e.g. io/harness/platform/api renders as one row instead of four levels. A collapsed row carries the deepest folder's id and path (expand it with that id) and a name joining every segment of the run with /. Collapsing stops at a folder with more than one child and never absorbs a file. Accepted and ignored for Docker and Helm registries.

Default: false
Responses
200

Response for tree view endpoints

application/json

Response body for tree view endpoints

get/v3/tree/registries/{registry_id}/nodes
GET /api/v3/tree/registries/{registry_id}/nodes?account_identifier=text HTTP/1.1
Accept: */*
{
  "items": [
    {
      "createdAt": 1,
      "deletedAt": 1,
      "entityId": "123e4567-e89b-12d3-a456-426614174000",
      "entityKind": "REGISTRY",
      "hasChildren": true,
      "id": "text",
      "name": "text",
      "packageType": "text",
      "path": "text",
      "treePath": "text",
      "type": "registry"
    }
  ],
  "pagination": {
    "hasMore": true,
    "nextCursor": "text",
    "size": 1,
    "total": 1
  }
}

Resolve a tree path to its nodes

get

Resolves a canonical, readable path (copy it from treePath) to every node along it, so a URL can carry the open node: the client reads the node's ids for its details call and expands the tree by listing each step's children.

The response also carries the first page of the requested node's own children, exactly as ListRegistryNodesV3 (for a registry) or ListNodeChildrenV3 (for any other node) would return them under the same cursor, size, deleted_filter and compact. Load further pages from those endpoints with children.pagination.nextCursor. A file has no children.

Every step must be a node the list endpoints would show under the same scope, deleted_filter, registry_type and package_type; send the same values to both. A path that does not fully resolve, or whose registry is outside scope or excluded by a filter, returns 404. Resolving requires view permission on the registry, as for ListRegistryNodesV3 (403 otherwise). A malformed path, size or cursor returns 400.

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

pathstring · max: 4096Required

Canonical path of the node to resolve, as returned in TreeNodeItemV3.treePath. Copy it from a response rather than building it. The first segment is the registry name; below it:

  • Other package types: the node's path, e.g. maven-local/com/acme/lib/1.0.
  • Docker and Helm: <registry>/<image>, <registry>/<image>:<tag>, <registry>/<image>/@untagged (the untagged group), <registry>/<image>@sha256:<hex> (an untagged manifest), and a platform below a tag or untagged manifest as <parent>/<os>/<arch>[/<variant>], or <parent>/@sha256:<hex> when the platform is unknown or shared.

An empty path, a path that does not fit this grammar, or one longer than 4096 bytes returns 400.

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:
deleted_filterstring · enumOptional

Soft-delete filter, applied to each row's effective state (see TreeNodeItemV3.deletedAt). Applied at the registry level and, for Docker and Helm, to packages and their versions (tags and untagged digests). Other levels accept it but return every row whatever its state: their state is worked out after the query, so filtering would break paging. Read deletedAt to render deleted state. An unknown value returns 400.

Default: exclude_deletedPossible values:
registry_typestringOptional

Filter by registry type (VIRTUAL or UPSTREAM), as for ListTreeRootsV3. Case-insensitive; an unknown value returns 400.

package_typestringOptional

Filter by package type (e.g. DOCKER, MAVEN), as for ListTreeRootsV3. Case-insensitive; an unknown value returns 400.

cursorstringOptional

Opaque cursor from the previous page's pagination.nextCursor. Omit for the first page, and send the same filters with every page. A cursor that cannot be decoded returns 400.

sizeinteger · min: 1 · max: 1000Optional

Number of items per page. A value outside 1-1000 returns 400.

Default: 50
compactbooleanOptional

Collapses a run of single-child folders into one row, e.g. io/harness/platform/api renders as one row instead of four levels. A collapsed row carries the deepest folder's id and path (expand it with that id) and a name joining every segment of the run with /. Collapsing stops at a folder with more than one child and never absorbs a file. Accepted and ignored for Docker and Helm registries.

Default: false
Responses
200

Response for ResolveTreePathV3

application/json

Response body for ResolveTreePathV3

get/v3/tree/resolve
GET /api/v3/tree/resolve?account_identifier=text&path=text HTTP/1.1
Accept: */*
{
  "children": {
    "items": [
      {
        "createdAt": 1,
        "deletedAt": 1,
        "entityId": "123e4567-e89b-12d3-a456-426614174000",
        "entityKind": "REGISTRY",
        "hasChildren": true,
        "id": "text",
        "name": "text",
        "packageType": "text",
        "path": "text",
        "treePath": "text",
        "type": "registry"
      }
    ],
    "pagination": {
      "hasMore": true,
      "nextCursor": "text",
      "size": 1,
      "total": 1
    }
  },
  "steps": [
    {
      "entityId": "123e4567-e89b-12d3-a456-426614174000",
      "entityKind": "REGISTRY",
      "id": "text",
      "name": "text",
      "treePath": "text",
      "type": "registry"
    }
  ]
}

List tree roots (registries)

get

Lists the registries forming the tree's root level, sorted by name. scope is resolved as for ListRegistriesV3; a scope value other than none/ancestors/descendants (when provided) returns 400. pagination.total is exact and returned on the first page only. Expand a registry with ListRegistryNodesV3.

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:
cursorstringOptional

Opaque cursor from the previous page's pagination.nextCursor. Omit for the first page, and send the same filters with every page. A cursor that cannot be decoded returns 400.

sizeinteger · min: 1 · max: 1000Optional

Number of items per page. A value outside 1-1000 returns 400.

Default: 50
deleted_filterstring · enumOptional

Soft-delete filter, applied to each row's effective state (see TreeNodeItemV3.deletedAt). Applied at the registry level and, for Docker and Helm, to packages and their versions (tags and untagged digests). Other levels accept it but return every row whatever its state: their state is worked out after the query, so filtering would break paging. Read deletedAt to render deleted state. An unknown value returns 400.

Default: exclude_deletedPossible values:
searchstringOptional

Filter registries by name: case-insensitive literal substring (no wildcards). Filters this level only. To search packages, versions and files too, use SearchTreeV3, whose matching rules differ.

registry_typestringOptional

Filter by registry type (VIRTUAL or UPSTREAM). Case-insensitive; an unknown value returns 400.

package_typestringOptional

Filter by package type (e.g. DOCKER, MAVEN). Case-insensitive; an unknown value returns 400.

Responses
200

Response for tree view endpoints

application/json

Response body for tree view endpoints

get/v3/tree/roots
GET /api/v3/tree/roots?account_identifier=text HTTP/1.1
Accept: */*
{
  "items": [
    {
      "createdAt": 1,
      "deletedAt": 1,
      "entityId": "123e4567-e89b-12d3-a456-426614174000",
      "entityKind": "REGISTRY",
      "hasChildren": true,
      "id": "text",
      "name": "text",
      "packageType": "text",
      "path": "text",
      "treePath": "text",
      "type": "registry"
    }
  ],
  "pagination": {
    "hasMore": true,
    "nextCursor": "text",
    "size": 1,
    "total": 1
  }
}
get

Searches every registry in scope (resolved as for ListTreeRootsV3; a scope value other than none/ancestors/descendants, when provided, returns 400) and returns four groups in one response: Registries, Packages, Versions and Files/Folders, each sorted by name. Each group has its own cursor parameter and nextCursor; paging one group leaves the others on their first page. Each group's count is independent of pagination and saturates at 1001 ("1000+").

Every group query runs under a 5 s server-side budget. A group that exceeds it is returned empty with timedOut: true and the other groups are returned as normal; the request fails with 504 only when every group timed out.

Hits carry the same fields as TreeNodeItemV3 except hasChildren: id is the tree node id, entityId the registry/package/version UUID.

Registries and Files hits are always navigable. Packages and Versions hits are navigable when they carry id; render the others as non-navigable.

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:
searchstring · min: 1Required

Search term, matched case-insensitively against registry names, package names, version names or OCI tag names, and file/folder names (the node name, not its full path). Surrounding whitespace is ignored.

  • A plain term of 3+ characters matches as a substring; a shorter one as a prefix.
  • A term containing * (any run of characters) or ? (one character) is matched against the whole name as written, e.g. log4j* means "starts with log4j".
  • Other characters, including %, _ and \, match literally.

Returns 400 for a term with no non-wildcard character (e.g. *, or only whitespace), and for a term using * or ? that has no run of at least 3 consecutive non-wildcard characters (e.g. ab* or a*c), which cannot be searched efficiently.

sizeinteger · min: 1 · max: 50Optional

Number of items per group, applied to each of the four groups independently. A value outside 1-50 returns 400.

Default: 10
registries_cursorstringOptional

Opaque cursor from the Registries group's nextCursor; pages that group only. Omit for the first page. A cursor that cannot be decoded returns 400.

packages_cursorstringOptional

Opaque cursor from the Packages group's nextCursor; pages that group only. Omit for the first page. A cursor that cannot be decoded returns 400.

versions_cursorstringOptional

Opaque cursor from the Versions group's nextCursor; pages that group only. Omit for the first page. A cursor that cannot be decoded returns 400.

files_cursorstringOptional

Opaque cursor from the Files group's nextCursor; pages that group only. Omit for the first page. A cursor that cannot be decoded returns 400.

package_typestringOptional

Restrict all four groups to hits in registries of this package type (e.g. DOCKER, MAVEN). Case-insensitive; an unknown value returns 400.

registry_typestringOptional

Restrict all four groups to hits in registries of this type (VIRTUAL or UPSTREAM). Case-insensitive; an unknown value returns 400.

deleted_filterstring · enumOptional

Soft-delete filter, applied to each group's own entity: registries, packages and versions respectively (a soft-deleted registry or package marks its children deleted too).

Inert for the Files group: it returns every matching file/folder even with only_deleted, except that hits inside a deleted registry are never returned. Read each hit's deletedAt for its state. An unknown value returns 400.

Default: exclude_deletedPossible values:
Responses
200

Response for the global grouped tree search endpoint

application/json

Response body for the global grouped tree search endpoint.

get/v3/tree/search
GET /api/v3/tree/search?account_identifier=text&search=text HTTP/1.1
Accept: */*
{
  "files": {
    "count": 1,
    "hasMore": true,
    "items": [
      {
        "ancestors": [
          {
            "id": "text",
            "name": "text",
            "type": "registry"
          }
        ],
        "createdAt": 1,
        "deletedAt": 1,
        "entityId": "123e4567-e89b-12d3-a456-426614174000",
        "entityKind": "REGISTRY",
        "id": "123e4567-e89b-12d3-a456-426614174000",
        "isFile": true,
        "name": "text",
        "packageType": "text",
        "path": "text",
        "registryId": "123e4567-e89b-12d3-a456-426614174000",
        "registryName": "text",
        "treePath": "text",
        "type": "folder"
      }
    ],
    "nextCursor": "text",
    "timedOut": true
  },
  "packages": {
    "count": 1,
    "hasMore": true,
    "items": [
      {
        "ancestors": [
          {
            "id": "text",
            "name": "text",
            "type": "registry"
          }
        ],
        "createdAt": 1,
        "deletedAt": 1,
        "entityId": "123e4567-e89b-12d3-a456-426614174000",
        "entityKind": "REGISTRY",
        "id": "text",
        "name": "text",
        "packageKind": "text",
        "packageType": "text",
        "path": "text",
        "registryId": "123e4567-e89b-12d3-a456-426614174000",
        "registryName": "text",
        "treePath": "text",
        "type": "package"
      }
    ],
    "nextCursor": "text",
    "timedOut": true
  },
  "registries": {
    "count": 1,
    "hasMore": true,
    "items": [
      {
        "createdAt": 1,
        "deletedAt": 1,
        "entityId": "123e4567-e89b-12d3-a456-426614174000",
        "entityKind": "REGISTRY",
        "id": "123e4567-e89b-12d3-a456-426614174000",
        "name": "text",
        "packageType": "text",
        "path": "text",
        "registryType": "text",
        "spacePath": "text",
        "treePath": "text",
        "type": "registry"
      }
    ],
    "nextCursor": "text",
    "timedOut": true
  },
  "versions": {
    "count": 1,
    "hasMore": true,
    "items": [
      {
        "ancestors": [
          {
            "id": "text",
            "name": "text",
            "type": "registry"
          }
        ],
        "createdAt": 1,
        "deletedAt": 1,
        "entityId": "123e4567-e89b-12d3-a456-426614174000",
        "entityKind": "REGISTRY",
        "id": "text",
        "name": "text",
        "packageId": "123e4567-e89b-12d3-a456-426614174000",
        "packageKind": "text",
        "packageName": "text",
        "packageType": "text",
        "path": "text",
        "registryId": "123e4567-e89b-12d3-a456-426614174000",
        "registryName": "text",
        "tags": [
          "text"
        ],
        "treePath": "text",
        "type": "version"
      }
    ],
    "nextCursor": "text",
    "timedOut": true
  }
}

Last updated

Was this helpful?