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

Clusters

Get a cluster managed by an agent by name

get

Get a cluster managed by agent using name

Path parameters
agentIdentifierstringRequired

Agent identifier for entity.

Query parameters
accountIdentifierstringOptional

Account Identifier for the Entity.

orgIdentifierstringOptional

Organization Identifier for the Entity.

projectIdentifierstringOptional

Project Identifier for the Entity.

namestringOptional
fetchScopePrefixedIdentifierbooleanOptional

Indicates whether the identifier of cluster fetched must contain harness scope prefix (account./org.)

Responses
200

A successful response.

application/json
accountIdentifierstringOptional

Account Identifier for the Entity.

orgIdentifierstringOptional

Organization Identifier for the Entity.

projectIdentifierstringOptional

Project Identifier for the Entity.

agentIdentifierstringOptional

Agent identifier for entity.

identifierstringOptional
createdAtstring · date-timeOptional
lastModifiedAtstring · date-timeOptional
stalebooleanOptional
uuidstringOptional

Kubernetes ObjectMeta.UID of the cluster Secret.

subIdstringOptional

Sub-identifier for ConfigMap-extracted entities; empty for Clusters.

agentUuidstringOptional

UID of the parent agent document.

get/api/v1/agents/{agentIdentifier}/cluster_byname
GET /api/v1/agents/{agentIdentifier}/cluster_byname HTTP/1.1
Accept: */*
{
  "accountIdentifier": "text",
  "orgIdentifier": "text",
  "projectIdentifier": "text",
  "agentIdentifier": "text",
  "identifier": "text",
  "cluster": {
    "server": "text",
    "name": "text",
    "config": {
      "username": "text",
      "password": "text",
      "bearerToken": "text",
      "tlsClientConfig": {
        "insecure": true,
        "serverName": "text",
        "certData": "Ynl0ZXM=",
        "keyData": "Ynl0ZXM=",
        "caData": "Ynl0ZXM="
      },
      "awsAuthConfig": {
        "clusterName": "text",
        "roleARN": "text"
      },
      "execProviderConfig": {
        "command": "text",
        "args": [
          "text"
        ],
        "env": {
          "ANY_ADDITIONAL_PROPERTY": "text"
        },
        "apiVersion": "text",
        "installHint": "text",
        "provideClusterInfo": true,
        "config": {
          "raw": "Ynl0ZXM="
        }
      },
      "clusterConnectionType": "text",
      "roleARN": "text",
      "awsClusterName": "text",
      "disableCompression": true,
      "proxyUrl": "text"
    },
    "connectionState": {
      "status": "text",
      "message": "text",
      "attemptedAt": {
        "seconds": "text",
        "nanos": 1
      },
      "attemptedAtTs": "2026-01-01T00:00:00.000Z"
    },
    "serverVersion": "text",
    "namespaces": [
      "text"
    ],
    "refreshRequestedAt": {
      "seconds": "text",
      "nanos": 1
    },
    "info": {
      "connectionState": {
        "status": "text",
        "message": "text",
        "attemptedAt": {
          "seconds": "text",
          "nanos": 1
        },
        "attemptedAtTs": "2026-01-01T00:00:00.000Z"
      },
      "serverVersion": "text",
      "cacheInfo": {
        "resourcesCount": "text",
        "apisCount": "text",
        "lastCacheSyncTime": {
          "seconds": "text",
          "nanos": 1
        },
        "lastCacheSyncTimeTs": "2026-01-01T00:00:00.000Z"
      },
      "applicationsCount": "text",
      "apiVersions": [
        "text"
      ]
    },
    "shard_deprecated": "text",
    "clusterResources": true,
    "project": "text",
    "labels": {
      "ANY_ADDITIONAL_PROPERTY": "text"
    },
    "annotations": {
      "ANY_ADDITIONAL_PROPERTY": "text"
    },
    "type": "CUSTOMER_PROVIDED",
    "refreshRequestedAtTs": "2026-01-01T00:00:00.000Z",
    "shard": "text"
  },
  "createdAt": "2026-01-01T00:00:00.000Z",
  "lastModifiedAt": "2026-01-01T00:00:00.000Z",
  "stale": true,
  "tags": {
    "ANY_ADDITIONAL_PROPERTY": "text"
  },
  "secretExpressions": {
    "ANY_ADDITIONAL_PROPERTY": "text"
  },
  "uuid": "text",
  "subId": "text",
  "agentUuid": "text"
}

Get a cluster managed by an agent by URL

get

Get a cluster managed by agent using URL

Path parameters
agentIdentifierstringRequired

Agent identifier for entity.

Query parameters
accountIdentifierstringOptional

Account Identifier for the Entity.

orgIdentifierstringOptional

Organization Identifier for the Entity.

projectIdentifierstringOptional

Project Identifier for the Entity.

serverstringOptional
fetchScopePrefixedIdentifierbooleanOptional

Indicates whether the identifier of cluster fetched must contain harness scope prefix (account./org.)

Responses
200

A successful response.

application/json
accountIdentifierstringOptional

Account Identifier for the Entity.

orgIdentifierstringOptional

Organization Identifier for the Entity.

projectIdentifierstringOptional

Project Identifier for the Entity.

agentIdentifierstringOptional

Agent identifier for entity.

identifierstringOptional
createdAtstring · date-timeOptional
lastModifiedAtstring · date-timeOptional
stalebooleanOptional
uuidstringOptional

Kubernetes ObjectMeta.UID of the cluster Secret.

subIdstringOptional

Sub-identifier for ConfigMap-extracted entities; empty for Clusters.

agentUuidstringOptional

UID of the parent agent document.

get/api/v1/agents/{agentIdentifier}/cluster_byurl
GET /api/v1/agents/{agentIdentifier}/cluster_byurl HTTP/1.1
Accept: */*
{
  "accountIdentifier": "text",
  "orgIdentifier": "text",
  "projectIdentifier": "text",
  "agentIdentifier": "text",
  "identifier": "text",
  "cluster": {
    "server": "text",
    "name": "text",
    "config": {
      "username": "text",
      "password": "text",
      "bearerToken": "text",
      "tlsClientConfig": {
        "insecure": true,
        "serverName": "text",
        "certData": "Ynl0ZXM=",
        "keyData": "Ynl0ZXM=",
        "caData": "Ynl0ZXM="
      },
      "awsAuthConfig": {
        "clusterName": "text",
        "roleARN": "text"
      },
      "execProviderConfig": {
        "command": "text",
        "args": [
          "text"
        ],
        "env": {
          "ANY_ADDITIONAL_PROPERTY": "text"
        },
        "apiVersion": "text",
        "installHint": "text",
        "provideClusterInfo": true,
        "config": {
          "raw": "Ynl0ZXM="
        }
      },
      "clusterConnectionType": "text",
      "roleARN": "text",
      "awsClusterName": "text",
      "disableCompression": true,
      "proxyUrl": "text"
    },
    "connectionState": {
      "status": "text",
      "message": "text",
      "attemptedAt": {
        "seconds": "text",
        "nanos": 1
      },
      "attemptedAtTs": "2026-01-01T00:00:00.000Z"
    },
    "serverVersion": "text",
    "namespaces": [
      "text"
    ],
    "refreshRequestedAt": {
      "seconds": "text",
      "nanos": 1
    },
    "info": {
      "connectionState": {
        "status": "text",
        "message": "text",
        "attemptedAt": {
          "seconds": "text",
          "nanos": 1
        },
        "attemptedAtTs": "2026-01-01T00:00:00.000Z"
      },
      "serverVersion": "text",
      "cacheInfo": {
        "resourcesCount": "text",
        "apisCount": "text",
        "lastCacheSyncTime": {
          "seconds": "text",
          "nanos": 1
        },
        "lastCacheSyncTimeTs": "2026-01-01T00:00:00.000Z"
      },
      "applicationsCount": "text",
      "apiVersions": [
        "text"
      ]
    },
    "shard_deprecated": "text",
    "clusterResources": true,
    "project": "text",
    "labels": {
      "ANY_ADDITIONAL_PROPERTY": "text"
    },
    "annotations": {
      "ANY_ADDITIONAL_PROPERTY": "text"
    },
    "type": "CUSTOMER_PROVIDED",
    "refreshRequestedAtTs": "2026-01-01T00:00:00.000Z",
    "shard": "text"
  },
  "createdAt": "2026-01-01T00:00:00.000Z",
  "lastModifiedAt": "2026-01-01T00:00:00.000Z",
  "stale": true,
  "tags": {
    "ANY_ADDITIONAL_PROPERTY": "text"
  },
  "secretExpressions": {
    "ANY_ADDITIONAL_PROPERTY": "text"
  },
  "uuid": "text",
  "subId": "text",
  "agentUuid": "text"
}

List returns list of clusters

get

List clusters.

Path parameters
agentIdentifierstringRequired

Agent identifier for entity.

Query parameters
accountIdentifierstringOptional

Account Identifier for the Entity.

orgIdentifierstringOptional

Organization Identifier for the Entity.

projectIdentifierstringOptional

Project Identifier for the Entity.

identifierstringOptional
query.serverstringOptional
query.namestringOptional
query.id.typestringOptional

type is the type of the specified cluster identifier ( "server" - default, "name" ).

query.id.valuestringOptional

value holds the cluster server URL or cluster name.

query.projectstringOptional
Responses
200

A successful response.

application/json

ClusterList is a collection of Clusters.

get/api/v1/agents/{agentIdentifier}/clusters
GET /api/v1/agents/{agentIdentifier}/clusters HTTP/1.1
Accept: */*
{
  "metadata": {
    "selfLink": "text",
    "resourceVersion": "text",
    "continue": "text",
    "remainingItemCount": "text",
    "shardInfo": {
      "selector": "text"
    }
  },
  "items": [
    {
      "server": "text",
      "name": "text",
      "config": {
        "username": "text",
        "password": "text",
        "bearerToken": "text",
        "tlsClientConfig": {
          "insecure": true,
          "serverName": "text",
          "certData": "Ynl0ZXM=",
          "keyData": "Ynl0ZXM=",
          "caData": "Ynl0ZXM="
        },
        "awsAuthConfig": {
          "clusterName": "text",
          "roleARN": "text"
        },
        "execProviderConfig": {
          "command": "text",
          "args": [
            "text"
          ],
          "env": {
            "ANY_ADDITIONAL_PROPERTY": "text"
          },
          "apiVersion": "text",
          "installHint": "text",
          "provideClusterInfo": true,
          "config": {
            "raw": "Ynl0ZXM="
          }
        },
        "clusterConnectionType": "text",
        "roleARN": "text",
        "awsClusterName": "text",
        "disableCompression": true,
        "proxyUrl": "text"
      },
      "connectionState": {
        "status": "text",
        "message": "text",
        "attemptedAt": {
          "seconds": "text",
          "nanos": 1
        },
        "attemptedAtTs": "2026-01-01T00:00:00.000Z"
      },
      "serverVersion": "text",
      "namespaces": [
        "text"
      ],
      "refreshRequestedAt": {
        "seconds": "text",
        "nanos": 1
      },
      "info": {
        "connectionState": {
          "status": "text",
          "message": "text",
          "attemptedAt": {
            "seconds": "text",
            "nanos": 1
          },
          "attemptedAtTs": "2026-01-01T00:00:00.000Z"
        },
        "serverVersion": "text",
        "cacheInfo": {
          "resourcesCount": "text",
          "apisCount": "text",
          "lastCacheSyncTime": {
            "seconds": "text",
            "nanos": 1
          },
          "lastCacheSyncTimeTs": "2026-01-01T00:00:00.000Z"
        },
        "applicationsCount": "text",
        "apiVersions": [
          "text"
        ]
      },
      "shard_deprecated": "text",
      "clusterResources": true,
      "project": "text",
      "labels": {
        "ANY_ADDITIONAL_PROPERTY": "text"
      },
      "annotations": {
        "ANY_ADDITIONAL_PROPERTY": "text"
      },
      "type": "CUSTOMER_PROVIDED",
      "refreshRequestedAtTs": "2026-01-01T00:00:00.000Z",
      "shard": "text"
    }
  ]
}

Create creates a cluster

post

Create cluster.

Path parameters
agentIdentifierstringRequired

Agent identifier for entity.

Query parameters
accountIdentifierstringOptional

Account Identifier for the Entity.

orgIdentifierstringOptional

Organization Identifier for the Entity.

projectIdentifierstringOptional

Project Identifier for the Entity.

identifierstringOptional
Body
upsertbooleanOptional
Responses
200

A successful response.

application/json
accountIdentifierstringOptional

Account Identifier for the Entity.

orgIdentifierstringOptional

Organization Identifier for the Entity.

projectIdentifierstringOptional

Project Identifier for the Entity.

agentIdentifierstringOptional

Agent identifier for entity.

identifierstringOptional
createdAtstring · date-timeOptional
lastModifiedAtstring · date-timeOptional
stalebooleanOptional
uuidstringOptional

Kubernetes ObjectMeta.UID of the cluster Secret.

subIdstringOptional

Sub-identifier for ConfigMap-extracted entities; empty for Clusters.

agentUuidstringOptional

UID of the parent agent document.

post/api/v1/agents/{agentIdentifier}/clusters
POST /api/v1/agents/{agentIdentifier}/clusters HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 1567

{
  "cluster": {
    "server": "text",
    "name": "text",
    "config": {
      "username": "text",
      "password": "text",
      "bearerToken": "text",
      "tlsClientConfig": {
        "insecure": true,
        "serverName": "text",
        "certData": "Ynl0ZXM=",
        "keyData": "Ynl0ZXM=",
        "caData": "Ynl0ZXM="
      },
      "awsAuthConfig": {
        "clusterName": "text",
        "roleARN": "text"
      },
      "execProviderConfig": {
        "command": "text",
        "args": [
          "text"
        ],
        "env": {
          "ANY_ADDITIONAL_PROPERTY": "text"
        },
        "apiVersion": "text",
        "installHint": "text",
        "provideClusterInfo": true,
        "config": {
          "raw": "Ynl0ZXM="
        }
      },
      "clusterConnectionType": "text",
      "roleARN": "text",
      "awsClusterName": "text",
      "disableCompression": true,
      "proxyUrl": "text"
    },
    "connectionState": {
      "status": "text",
      "message": "text",
      "attemptedAt": {
        "seconds": "text",
        "nanos": 1
      },
      "attemptedAtTs": "2026-01-01T00:00:00.000Z"
    },
    "serverVersion": "text",
    "namespaces": [
      "text"
    ],
    "refreshRequestedAt": {
      "seconds": "text",
      "nanos": 1
    },
    "info": {
      "connectionState": {
        "status": "text",
        "message": "text",
        "attemptedAt": {
          "seconds": "text",
          "nanos": 1
        },
        "attemptedAtTs": "2026-01-01T00:00:00.000Z"
      },
      "serverVersion": "text",
      "cacheInfo": {
        "resourcesCount": "text",
        "apisCount": "text",
        "lastCacheSyncTime": {
          "seconds": "text",
          "nanos": 1
        },
        "lastCacheSyncTimeTs": "2026-01-01T00:00:00.000Z"
      },
      "applicationsCount": "text",
      "apiVersions": [
        "text"
      ]
    },
    "shard_deprecated": "text",
    "clusterResources": true,
    "project": "text",
    "labels": {
      "ANY_ADDITIONAL_PROPERTY": "text"
    },
    "annotations": {
      "ANY_ADDITIONAL_PROPERTY": "text"
    },
    "type": "CUSTOMER_PROVIDED",
    "refreshRequestedAtTs": "2026-01-01T00:00:00.000Z",
    "shard": "text"
  },
  "upsert": true,
  "tags": {
    "ANY_ADDITIONAL_PROPERTY": "text"
  },
  "secretExpressions": {
    "ANY_ADDITIONAL_PROPERTY": "text"
  }
}
{
  "accountIdentifier": "text",
  "orgIdentifier": "text",
  "projectIdentifier": "text",
  "agentIdentifier": "text",
  "identifier": "text",
  "cluster": {
    "server": "text",
    "name": "text",
    "config": {
      "username": "text",
      "password": "text",
      "bearerToken": "text",
      "tlsClientConfig": {
        "insecure": true,
        "serverName": "text",
        "certData": "Ynl0ZXM=",
        "keyData": "Ynl0ZXM=",
        "caData": "Ynl0ZXM="
      },
      "awsAuthConfig": {
        "clusterName": "text",
        "roleARN": "text"
      },
      "execProviderConfig": {
        "command": "text",
        "args": [
          "text"
        ],
        "env": {
          "ANY_ADDITIONAL_PROPERTY": "text"
        },
        "apiVersion": "text",
        "installHint": "text",
        "provideClusterInfo": true,
        "config": {
          "raw": "Ynl0ZXM="
        }
      },
      "clusterConnectionType": "text",
      "roleARN": "text",
      "awsClusterName": "text",
      "disableCompression": true,
      "proxyUrl": "text"
    },
    "connectionState": {
      "status": "text",
      "message": "text",
      "attemptedAt": {
        "seconds": "text",
        "nanos": 1
      },
      "attemptedAtTs": "2026-01-01T00:00:00.000Z"
    },
    "serverVersion": "text",
    "namespaces": [
      "text"
    ],
    "refreshRequestedAt": {
      "seconds": "text",
      "nanos": 1
    },
    "info": {
      "connectionState": {
        "status": "text",
        "message": "text",
        "attemptedAt": {
          "seconds": "text",
          "nanos": 1
        },
        "attemptedAtTs": "2026-01-01T00:00:00.000Z"
      },
      "serverVersion": "text",
      "cacheInfo": {
        "resourcesCount": "text",
        "apisCount": "text",
        "lastCacheSyncTime": {
          "seconds": "text",
          "nanos": 1
        },
        "lastCacheSyncTimeTs": "2026-01-01T00:00:00.000Z"
      },
      "applicationsCount": "text",
      "apiVersions": [
        "text"
      ]
    },
    "shard_deprecated": "text",
    "clusterResources": true,
    "project": "text",
    "labels": {
      "ANY_ADDITIONAL_PROPERTY": "text"
    },
    "annotations": {
      "ANY_ADDITIONAL_PROPERTY": "text"
    },
    "type": "CUSTOMER_PROVIDED",
    "refreshRequestedAtTs": "2026-01-01T00:00:00.000Z",
    "shard": "text"
  },
  "createdAt": "2026-01-01T00:00:00.000Z",
  "lastModifiedAt": "2026-01-01T00:00:00.000Z",
  "stale": true,
  "tags": {
    "ANY_ADDITIONAL_PROPERTY": "text"
  },
  "secretExpressions": {
    "ANY_ADDITIONAL_PROPERTY": "text"
  },
  "uuid": "text",
  "subId": "text",
  "agentUuid": "text"
}

Get returns a cluster by identifier

get

Get cluster.

Path parameters
agentIdentifierstringRequired

Agent identifier for entity.

identifierstringRequired
Query parameters
accountIdentifierstringOptional

Account Identifier for the Entity.

orgIdentifierstringOptional

Organization Identifier for the Entity.

projectIdentifierstringOptional

Project Identifier for the Entity.

query.serverstringOptional
query.namestringOptional
query.id.typestringOptional

type is the type of the specified cluster identifier ( "server" - default, "name" ).

query.id.valuestringOptional

value holds the cluster server URL or cluster name.

query.projectstringOptional
Responses
200

A successful response.

application/json
accountIdentifierstringOptional

Account Identifier for the Entity.

orgIdentifierstringOptional

Organization Identifier for the Entity.

projectIdentifierstringOptional

Project Identifier for the Entity.

agentIdentifierstringOptional

Agent identifier for entity.

identifierstringOptional
createdAtstring · date-timeOptional
lastModifiedAtstring · date-timeOptional
stalebooleanOptional
uuidstringOptional

Kubernetes ObjectMeta.UID of the cluster Secret.

subIdstringOptional

Sub-identifier for ConfigMap-extracted entities; empty for Clusters.

agentUuidstringOptional

UID of the parent agent document.

get/api/v1/agents/{agentIdentifier}/clusters/{identifier}
GET /api/v1/agents/{agentIdentifier}/clusters/{identifier} HTTP/1.1
Accept: */*
{
  "accountIdentifier": "text",
  "orgIdentifier": "text",
  "projectIdentifier": "text",
  "agentIdentifier": "text",
  "identifier": "text",
  "cluster": {
    "server": "text",
    "name": "text",
    "config": {
      "username": "text",
      "password": "text",
      "bearerToken": "text",
      "tlsClientConfig": {
        "insecure": true,
        "serverName": "text",
        "certData": "Ynl0ZXM=",
        "keyData": "Ynl0ZXM=",
        "caData": "Ynl0ZXM="
      },
      "awsAuthConfig": {
        "clusterName": "text",
        "roleARN": "text"
      },
      "execProviderConfig": {
        "command": "text",
        "args": [
          "text"
        ],
        "env": {
          "ANY_ADDITIONAL_PROPERTY": "text"
        },
        "apiVersion": "text",
        "installHint": "text",
        "provideClusterInfo": true,
        "config": {
          "raw": "Ynl0ZXM="
        }
      },
      "clusterConnectionType": "text",
      "roleARN": "text",
      "awsClusterName": "text",
      "disableCompression": true,
      "proxyUrl": "text"
    },
    "connectionState": {
      "status": "text",
      "message": "text",
      "attemptedAt": {
        "seconds": "text",
        "nanos": 1
      },
      "attemptedAtTs": "2026-01-01T00:00:00.000Z"
    },
    "serverVersion": "text",
    "namespaces": [
      "text"
    ],
    "refreshRequestedAt": {
      "seconds": "text",
      "nanos": 1
    },
    "info": {
      "connectionState": {
        "status": "text",
        "message": "text",
        "attemptedAt": {
          "seconds": "text",
          "nanos": 1
        },
        "attemptedAtTs": "2026-01-01T00:00:00.000Z"
      },
      "serverVersion": "text",
      "cacheInfo": {
        "resourcesCount": "text",
        "apisCount": "text",
        "lastCacheSyncTime": {
          "seconds": "text",
          "nanos": 1
        },
        "lastCacheSyncTimeTs": "2026-01-01T00:00:00.000Z"
      },
      "applicationsCount": "text",
      "apiVersions": [
        "text"
      ]
    },
    "shard_deprecated": "text",
    "clusterResources": true,
    "project": "text",
    "labels": {
      "ANY_ADDITIONAL_PROPERTY": "text"
    },
    "annotations": {
      "ANY_ADDITIONAL_PROPERTY": "text"
    },
    "type": "CUSTOMER_PROVIDED",
    "refreshRequestedAtTs": "2026-01-01T00:00:00.000Z",
    "shard": "text"
  },
  "createdAt": "2026-01-01T00:00:00.000Z",
  "lastModifiedAt": "2026-01-01T00:00:00.000Z",
  "stale": true,
  "tags": {
    "ANY_ADDITIONAL_PROPERTY": "text"
  },
  "secretExpressions": {
    "ANY_ADDITIONAL_PROPERTY": "text"
  },
  "uuid": "text",
  "subId": "text",
  "agentUuid": "text"
}

Update updates a cluster

put

Update cluster.

Path parameters
agentIdentifierstringRequired

Agent identifier for entity.

identifierstringRequired
Query parameters
accountIdentifierstringOptional

Account Identifier for the Entity.

orgIdentifierstringOptional

Organization Identifier for the Entity.

projectIdentifierstringOptional

Project Identifier for the Entity.

forceUpdatebooleanOptional
Body
updatedFieldsstring[]Optional
Responses
200

A successful response.

application/json
accountIdentifierstringOptional

Account Identifier for the Entity.

orgIdentifierstringOptional

Organization Identifier for the Entity.

projectIdentifierstringOptional

Project Identifier for the Entity.

agentIdentifierstringOptional

Agent identifier for entity.

identifierstringOptional
createdAtstring · date-timeOptional
lastModifiedAtstring · date-timeOptional
stalebooleanOptional
uuidstringOptional

Kubernetes ObjectMeta.UID of the cluster Secret.

subIdstringOptional

Sub-identifier for ConfigMap-extracted entities; empty for Clusters.

agentUuidstringOptional

UID of the parent agent document.

put/api/v1/agents/{agentIdentifier}/clusters/{identifier}
PUT /api/v1/agents/{agentIdentifier}/clusters/{identifier} HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 1646

{
  "cluster": {
    "server": "text",
    "name": "text",
    "config": {
      "username": "text",
      "password": "text",
      "bearerToken": "text",
      "tlsClientConfig": {
        "insecure": true,
        "serverName": "text",
        "certData": "Ynl0ZXM=",
        "keyData": "Ynl0ZXM=",
        "caData": "Ynl0ZXM="
      },
      "awsAuthConfig": {
        "clusterName": "text",
        "roleARN": "text"
      },
      "execProviderConfig": {
        "command": "text",
        "args": [
          "text"
        ],
        "env": {
          "ANY_ADDITIONAL_PROPERTY": "text"
        },
        "apiVersion": "text",
        "installHint": "text",
        "provideClusterInfo": true,
        "config": {
          "raw": "Ynl0ZXM="
        }
      },
      "clusterConnectionType": "text",
      "roleARN": "text",
      "awsClusterName": "text",
      "disableCompression": true,
      "proxyUrl": "text"
    },
    "connectionState": {
      "status": "text",
      "message": "text",
      "attemptedAt": {
        "seconds": "text",
        "nanos": 1
      },
      "attemptedAtTs": "2026-01-01T00:00:00.000Z"
    },
    "serverVersion": "text",
    "namespaces": [
      "text"
    ],
    "refreshRequestedAt": {
      "seconds": "text",
      "nanos": 1
    },
    "info": {
      "connectionState": {
        "status": "text",
        "message": "text",
        "attemptedAt": {
          "seconds": "text",
          "nanos": 1
        },
        "attemptedAtTs": "2026-01-01T00:00:00.000Z"
      },
      "serverVersion": "text",
      "cacheInfo": {
        "resourcesCount": "text",
        "apisCount": "text",
        "lastCacheSyncTime": {
          "seconds": "text",
          "nanos": 1
        },
        "lastCacheSyncTimeTs": "2026-01-01T00:00:00.000Z"
      },
      "applicationsCount": "text",
      "apiVersions": [
        "text"
      ]
    },
    "shard_deprecated": "text",
    "clusterResources": true,
    "project": "text",
    "labels": {
      "ANY_ADDITIONAL_PROPERTY": "text"
    },
    "annotations": {
      "ANY_ADDITIONAL_PROPERTY": "text"
    },
    "type": "CUSTOMER_PROVIDED",
    "refreshRequestedAtTs": "2026-01-01T00:00:00.000Z",
    "shard": "text"
  },
  "updatedFields": [
    "text"
  ],
  "updateMask": {
    "paths": [
      "text"
    ]
  },
  "tags": {
    "ANY_ADDITIONAL_PROPERTY": "text"
  },
  "id": {
    "type": "text",
    "value": "text"
  },
  "secretExpressions": {
    "ANY_ADDITIONAL_PROPERTY": "text"
  }
}
{
  "accountIdentifier": "text",
  "orgIdentifier": "text",
  "projectIdentifier": "text",
  "agentIdentifier": "text",
  "identifier": "text",
  "cluster": {
    "server": "text",
    "name": "text",
    "config": {
      "username": "text",
      "password": "text",
      "bearerToken": "text",
      "tlsClientConfig": {
        "insecure": true,
        "serverName": "text",
        "certData": "Ynl0ZXM=",
        "keyData": "Ynl0ZXM=",
        "caData": "Ynl0ZXM="
      },
      "awsAuthConfig": {
        "clusterName": "text",
        "roleARN": "text"
      },
      "execProviderConfig": {
        "command": "text",
        "args": [
          "text"
        ],
        "env": {
          "ANY_ADDITIONAL_PROPERTY": "text"
        },
        "apiVersion": "text",
        "installHint": "text",
        "provideClusterInfo": true,
        "config": {
          "raw": "Ynl0ZXM="
        }
      },
      "clusterConnectionType": "text",
      "roleARN": "text",
      "awsClusterName": "text",
      "disableCompression": true,
      "proxyUrl": "text"
    },
    "connectionState": {
      "status": "text",
      "message": "text",
      "attemptedAt": {
        "seconds": "text",
        "nanos": 1
      },
      "attemptedAtTs": "2026-01-01T00:00:00.000Z"
    },
    "serverVersion": "text",
    "namespaces": [
      "text"
    ],
    "refreshRequestedAt": {
      "seconds": "text",
      "nanos": 1
    },
    "info": {
      "connectionState": {
        "status": "text",
        "message": "text",
        "attemptedAt": {
          "seconds": "text",
          "nanos": 1
        },
        "attemptedAtTs": "2026-01-01T00:00:00.000Z"
      },
      "serverVersion": "text",
      "cacheInfo": {
        "resourcesCount": "text",
        "apisCount": "text",
        "lastCacheSyncTime": {
          "seconds": "text",
          "nanos": 1
        },
        "lastCacheSyncTimeTs": "2026-01-01T00:00:00.000Z"
      },
      "applicationsCount": "text",
      "apiVersions": [
        "text"
      ]
    },
    "shard_deprecated": "text",
    "clusterResources": true,
    "project": "text",
    "labels": {
      "ANY_ADDITIONAL_PROPERTY": "text"
    },
    "annotations": {
      "ANY_ADDITIONAL_PROPERTY": "text"
    },
    "type": "CUSTOMER_PROVIDED",
    "refreshRequestedAtTs": "2026-01-01T00:00:00.000Z",
    "shard": "text"
  },
  "createdAt": "2026-01-01T00:00:00.000Z",
  "lastModifiedAt": "2026-01-01T00:00:00.000Z",
  "stale": true,
  "tags": {
    "ANY_ADDITIONAL_PROPERTY": "text"
  },
  "secretExpressions": {
    "ANY_ADDITIONAL_PROPERTY": "text"
  },
  "uuid": "text",
  "subId": "text",
  "agentUuid": "text"
}

Delete deletes a cluster

delete

Delete cluster.

Path parameters
agentIdentifierstringRequired

Agent identifier for entity.

identifierstringRequired
Query parameters
accountIdentifierstringOptional

Account Identifier for the Entity.

orgIdentifierstringOptional

Organization Identifier for the Entity.

projectIdentifierstringOptional

Project Identifier for the Entity.

query.serverstringOptional
query.namestringOptional
query.id.typestringOptional

type is the type of the specified cluster identifier ( "server" - default, "name" ).

query.id.valuestringOptional

value holds the cluster server URL or cluster name.

query.projectstringOptional
forceDeletebooleanOptional
Responses
200

A successful response.

application/json
object · clustersClusterResponseOptional
delete/api/v1/agents/{agentIdentifier}/clusters/{identifier}
DELETE /api/v1/agents/{agentIdentifier}/clusters/{identifier} HTTP/1.1
Accept: */*
{}

List all available repository certificates

get

List all available repository certificates.

Path parameters
agentIdentifierstringRequired

Agent identifier for entity.

Query parameters
accountIdentifierstringOptional

Account Identifier for the Entity.

orgIdentifierstringOptional

Organization Identifier for the Entity.

projectIdentifierstringOptional

Project Identifier for the Entity.

query.keyIDstringOptional

The GPG key ID to query for.

Responses
200

A successful response.

application/json
get/api/v1/agents/{agentIdentifier}/gpgkeys
GET /api/v1/agents/{agentIdentifier}/gpgkeys HTTP/1.1
Accept: */*
{
  "metadata": {
    "selfLink": "text",
    "resourceVersion": "text",
    "continue": "text",
    "remainingItemCount": "text",
    "shardInfo": {
      "selector": "text"
    }
  },
  "items": [
    {
      "keyID": "text",
      "fingerprint": "text",
      "owner": "text",
      "trust": "text",
      "subType": "text",
      "keyData": "text"
    }
  ]
}

CreateHosted creates a harness hosted cluster

post

Creates Harness hosted cluster.

Path parameters
agentIdentifierstringRequired

Agent identifier for entity.

Responses
200

A successful response.

application/json
accountIdentifierstringOptional

Account Identifier for the Entity.

orgIdentifierstringOptional

Organization Identifier for the Entity.

projectIdentifierstringOptional

Project Identifier for the Entity.

agentIdentifierstringOptional

Agent identifier for entity.

identifierstringOptional
createdAtstring · date-timeOptional
lastModifiedAtstring · date-timeOptional
stalebooleanOptional
uuidstringOptional

Kubernetes ObjectMeta.UID of the cluster Secret.

subIdstringOptional

Sub-identifier for ConfigMap-extracted entities; empty for Clusters.

agentUuidstringOptional

UID of the parent agent document.

post/api/v1/agents/{agentIdentifier}/hosted/cluster
POST /api/v1/agents/{agentIdentifier}/hosted/cluster HTTP/1.1
Accept: */*
{
  "accountIdentifier": "text",
  "orgIdentifier": "text",
  "projectIdentifier": "text",
  "agentIdentifier": "text",
  "identifier": "text",
  "cluster": {
    "server": "text",
    "name": "text",
    "config": {
      "username": "text",
      "password": "text",
      "bearerToken": "text",
      "tlsClientConfig": {
        "insecure": true,
        "serverName": "text",
        "certData": "Ynl0ZXM=",
        "keyData": "Ynl0ZXM=",
        "caData": "Ynl0ZXM="
      },
      "awsAuthConfig": {
        "clusterName": "text",
        "roleARN": "text"
      },
      "execProviderConfig": {
        "command": "text",
        "args": [
          "text"
        ],
        "env": {
          "ANY_ADDITIONAL_PROPERTY": "text"
        },
        "apiVersion": "text",
        "installHint": "text",
        "provideClusterInfo": true,
        "config": {
          "raw": "Ynl0ZXM="
        }
      },
      "clusterConnectionType": "text",
      "roleARN": "text",
      "awsClusterName": "text",
      "disableCompression": true,
      "proxyUrl": "text"
    },
    "connectionState": {
      "status": "text",
      "message": "text",
      "attemptedAt": {
        "seconds": "text",
        "nanos": 1
      },
      "attemptedAtTs": "2026-01-01T00:00:00.000Z"
    },
    "serverVersion": "text",
    "namespaces": [
      "text"
    ],
    "refreshRequestedAt": {
      "seconds": "text",
      "nanos": 1
    },
    "info": {
      "connectionState": {
        "status": "text",
        "message": "text",
        "attemptedAt": {
          "seconds": "text",
          "nanos": 1
        },
        "attemptedAtTs": "2026-01-01T00:00:00.000Z"
      },
      "serverVersion": "text",
      "cacheInfo": {
        "resourcesCount": "text",
        "apisCount": "text",
        "lastCacheSyncTime": {
          "seconds": "text",
          "nanos": 1
        },
        "lastCacheSyncTimeTs": "2026-01-01T00:00:00.000Z"
      },
      "applicationsCount": "text",
      "apiVersions": [
        "text"
      ]
    },
    "shard_deprecated": "text",
    "clusterResources": true,
    "project": "text",
    "labels": {
      "ANY_ADDITIONAL_PROPERTY": "text"
    },
    "annotations": {
      "ANY_ADDITIONAL_PROPERTY": "text"
    },
    "type": "CUSTOMER_PROVIDED",
    "refreshRequestedAtTs": "2026-01-01T00:00:00.000Z",
    "shard": "text"
  },
  "createdAt": "2026-01-01T00:00:00.000Z",
  "lastModifiedAt": "2026-01-01T00:00:00.000Z",
  "stale": true,
  "tags": {
    "ANY_ADDITIONAL_PROPERTY": "text"
  },
  "secretExpressions": {
    "ANY_ADDITIONAL_PROPERTY": "text"
  },
  "uuid": "text",
  "subId": "text",
  "agentUuid": "text"
}

List clusters

post

ListClusters returns a list of clusters.

Body
accountIdentifierstringOptional

Account Identifier for the Entity.

projectIdentifierstringOptional

Project Identifier for the Entity.

orgIdentifierstringOptional

Organization Identifier for the Entity.

agentIdentifierstringOptional

Agent identifier for entity.

identifierstringOptional
searchTermstringOptional
pageSizeinteger · int32Optional
pageIndexinteger · int32Optional
filterobjectOptional

Filters for Clusters. Eg. "identifier": { "$in": ["id1", "id2"]

sortBystring · enumOptionalDefault: SORT_BY_NOT_SETPossible values:
sortOrderstring · enumOptionalDefault: SORT_ORDER_NOT_SETPossible values:
includeChildScopesbooleanOptional

When true and agentIdentifier is set, retrieves clusters across hierarchical scopes based on agent prefix: account.* agents see account/org/project clusters, org.* agents see org/project clusters, unprefixed agents see only project clusters.

Responses
200

A successful response.

application/json
totalPagesinteger · int32Optional
totalItemsinteger · int32Optional
pageItemCountinteger · int32Optional
pageSizeinteger · int32Optional
pageIndexinteger · int32Optional
emptybooleanOptional
post/api/v1/clusters
POST /api/v1/clusters HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 268

{
  "accountIdentifier": "text",
  "projectIdentifier": "text",
  "orgIdentifier": "text",
  "agentIdentifier": "text",
  "identifier": "text",
  "searchTerm": "text",
  "pageSize": 1,
  "pageIndex": 1,
  "filter": {},
  "sortBy": "SORT_BY_NOT_SET",
  "sortOrder": "SORT_ORDER_NOT_SET",
  "includeChildScopes": true
}
{
  "content": [
    {
      "accountIdentifier": "text",
      "orgIdentifier": "text",
      "projectIdentifier": "text",
      "agentIdentifier": "text",
      "identifier": "text",
      "cluster": {
        "server": "text",
        "name": "text",
        "config": {
          "username": "text",
          "password": "text",
          "bearerToken": "text",
          "tlsClientConfig": {
            "insecure": true,
            "serverName": "text",
            "certData": "Ynl0ZXM=",
            "keyData": "Ynl0ZXM=",
            "caData": "Ynl0ZXM="
          },
          "awsAuthConfig": {
            "clusterName": "text",
            "roleARN": "text"
          },
          "execProviderConfig": {
            "command": "text",
            "args": [
              "text"
            ],
            "env": {
              "ANY_ADDITIONAL_PROPERTY": "text"
            },
            "apiVersion": "text",
            "installHint": "text",
            "provideClusterInfo": true,
            "config": {
              "raw": "Ynl0ZXM="
            }
          },
          "clusterConnectionType": "text",
          "roleARN": "text",
          "awsClusterName": "text",
          "disableCompression": true,
          "proxyUrl": "text"
        },
        "connectionState": {
          "status": "text",
          "message": "text",
          "attemptedAt": {
            "seconds": "text",
            "nanos": 1
          },
          "attemptedAtTs": "2026-01-01T00:00:00.000Z"
        },
        "serverVersion": "text",
        "namespaces": [
          "text"
        ],
        "refreshRequestedAt": {
          "seconds": "text",
          "nanos": 1
        },
        "info": {
          "connectionState": {
            "status": "text",
            "message": "text",
            "attemptedAt": {
              "seconds": "text",
              "nanos": 1
            },
            "attemptedAtTs": "2026-01-01T00:00:00.000Z"
          },
          "serverVersion": "text",
          "cacheInfo": {
            "resourcesCount": "text",
            "apisCount": "text",
            "lastCacheSyncTime": {
              "seconds": "text",
              "nanos": 1
            },
            "lastCacheSyncTimeTs": "2026-01-01T00:00:00.000Z"
          },
          "applicationsCount": "text",
          "apiVersions": [
            "text"
          ]
        },
        "shard_deprecated": "text",
        "clusterResources": true,
        "project": "text",
        "labels": {
          "ANY_ADDITIONAL_PROPERTY": "text"
        },
        "annotations": {
          "ANY_ADDITIONAL_PROPERTY": "text"
        },
        "type": "CUSTOMER_PROVIDED",
        "refreshRequestedAtTs": "2026-01-01T00:00:00.000Z",
        "shard": "text"
      },
      "createdAt": "2026-01-01T00:00:00.000Z",
      "lastModifiedAt": "2026-01-01T00:00:00.000Z",
      "stale": true,
      "tags": {
        "ANY_ADDITIONAL_PROPERTY": "text"
      },
      "secretExpressions": {
        "ANY_ADDITIONAL_PROPERTY": "text"
      },
      "uuid": "text",
      "subId": "text",
      "agentUuid": "text"
    }
  ],
  "totalPages": 1,
  "totalItems": 1,
  "pageItemCount": 1,
  "pageSize": 1,
  "pageIndex": 1,
  "empty": true
}

Check if a cluster exists

get

Exists checks whether a cluster with the given identifier exists.

Query parameters
accountIdentifierstringOptional

Account Identifier for the Entity.

orgIdentifierstringOptional

Organization Identifier for the Entity.

projectIdentifierstringOptional

Project Identifier for the Entity.

agentIdentifierstringOptional

Agent identifier for entity.

serverstringOptional
Responses
200

A successful response.

application/json
booleanOptional
get/api/v1/clusters/exists
GET /api/v1/clusters/exists HTTP/1.1
Accept: */*
true

Last updated

Was this helpful?