Clusters
Get a cluster managed by agent using name
Agent identifier for entity.
Account Identifier for the Entity.
Organization Identifier for the Entity.
Project Identifier for the Entity.
Indicates whether the identifier of cluster fetched must contain harness scope prefix (account./org.)
A successful response.
Account Identifier for the Entity.
Organization Identifier for the Entity.
Project Identifier for the Entity.
Agent identifier for entity.
Kubernetes ObjectMeta.UID of the cluster Secret.
Sub-identifier for ConfigMap-extracted entities; empty for Clusters.
UID of the parent agent document.
An unexpected error response.
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 agent using URL
Agent identifier for entity.
Account Identifier for the Entity.
Organization Identifier for the Entity.
Project Identifier for the Entity.
Indicates whether the identifier of cluster fetched must contain harness scope prefix (account./org.)
A successful response.
Account Identifier for the Entity.
Organization Identifier for the Entity.
Project Identifier for the Entity.
Agent identifier for entity.
Kubernetes ObjectMeta.UID of the cluster Secret.
Sub-identifier for ConfigMap-extracted entities; empty for Clusters.
UID of the parent agent document.
An unexpected error response.
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 clusters.
Agent identifier for entity.
Account Identifier for the Entity.
Organization Identifier for the Entity.
Project Identifier for the Entity.
type is the type of the specified cluster identifier ( "server" - default, "name" ).
value holds the cluster server URL or cluster name.
A successful response.
ClusterList is a collection of Clusters.
An unexpected error response.
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 cluster.
Agent identifier for entity.
Account Identifier for the Entity.
Organization Identifier for the Entity.
Project Identifier for the Entity.
A successful response.
Account Identifier for the Entity.
Organization Identifier for the Entity.
Project Identifier for the Entity.
Agent identifier for entity.
Kubernetes ObjectMeta.UID of the cluster Secret.
Sub-identifier for ConfigMap-extracted entities; empty for Clusters.
UID of the parent agent document.
An unexpected error response.
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 cluster.
Agent identifier for entity.
Account Identifier for the Entity.
Organization Identifier for the Entity.
Project Identifier for the Entity.
type is the type of the specified cluster identifier ( "server" - default, "name" ).
value holds the cluster server URL or cluster name.
A successful response.
Account Identifier for the Entity.
Organization Identifier for the Entity.
Project Identifier for the Entity.
Agent identifier for entity.
Kubernetes ObjectMeta.UID of the cluster Secret.
Sub-identifier for ConfigMap-extracted entities; empty for Clusters.
UID of the parent agent document.
An unexpected error response.
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 cluster.
Agent identifier for entity.
Account Identifier for the Entity.
Organization Identifier for the Entity.
Project Identifier for the Entity.
A successful response.
Account Identifier for the Entity.
Organization Identifier for the Entity.
Project Identifier for the Entity.
Agent identifier for entity.
Kubernetes ObjectMeta.UID of the cluster Secret.
Sub-identifier for ConfigMap-extracted entities; empty for Clusters.
UID of the parent agent document.
An unexpected error response.
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 cluster.
Agent identifier for entity.
Account Identifier for the Entity.
Organization Identifier for the Entity.
Project Identifier for the Entity.
type is the type of the specified cluster identifier ( "server" - default, "name" ).
value holds the cluster server URL or cluster name.
A successful response.
An unexpected error response.
DELETE /api/v1/agents/{agentIdentifier}/clusters/{identifier} HTTP/1.1
Accept: */*
{}List all available repository certificates.
Agent identifier for entity.
Account Identifier for the Entity.
Organization Identifier for the Entity.
Project Identifier for the Entity.
The GPG key ID to query for.
A successful response.
An unexpected error response.
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"
}
]
}Creates Harness hosted cluster.
Agent identifier for entity.
A successful response.
Account Identifier for the Entity.
Organization Identifier for the Entity.
Project Identifier for the Entity.
Agent identifier for entity.
Kubernetes ObjectMeta.UID of the cluster Secret.
Sub-identifier for ConfigMap-extracted entities; empty for Clusters.
UID of the parent agent document.
An unexpected error response.
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"
}ListClusters returns a list of clusters.
Account Identifier for the Entity.
Project Identifier for the Entity.
Organization Identifier for the Entity.
Agent identifier for entity.
Filters for Clusters. Eg. "identifier": { "$in": ["id1", "id2"]
SORT_BY_NOT_SETPossible values: SORT_ORDER_NOT_SETPossible values: 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.
A successful response.
An unexpected error response.
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
}Exists checks whether a cluster with the given identifier exists.
Account Identifier for the Entity.
Organization Identifier for the Entity.
Project Identifier for the Entity.
Agent identifier for entity.
A successful response.
An unexpected error response.
GET /api/v1/clusters/exists HTTP/1.1
Accept: */*
trueLast updated
Was this helpful?