Clusters

Endpoints related to managing infrastructure clusters.

List Clusters

Requires the clusters-view capability.

SecuritybearerAuth and hubAuth
Request
query Parameters
object

In a list return, the data associated with the page number and size returned. 20 results per page, page 2 would be page[size]=20&page[number]=2

Responses
200

Returns a list of clusters.

default

General error response from the platform

get/v1/infrastructure/clusters
Response samples
application/json
{
  • "data": [
    ]
}

Create Cluster

Requires the clusters-manage capability.

SecuritybearerAuth and hubAuth
Request
Request Body schema: application/json

Parameters for creating a new cluster.

identifier
required
string (Identifier)

A human-readable identifier used to refer to a resource, where using the official ID may be inconvenient. The identifier is automatically tokenized from the name/relevant field of the resource if one is not provided. For example, a container named "My Container" will have the identifier of my-container and is automatically created by the platform.

The identifier does not have to be unique.

ACL (object) or null
Responses
201

Returns a cluster.

default

General error response from the platform

post/v1/infrastructure/clusters
Request samples
application/json
{
  • "identifier": "string",
  • "acl": {
    }
}
Response samples
application/json
{
  • "data": {
    }
}

Get Cluster

Gets a Cluster. Requires the clusters-view capability.

SecuritybearerAuth and hubAuth
Request
path Parameters
clusterId
required
string

The ID of the requested cluster.

Responses
200

Returns a cluster.

default

General error response from the platform

get/v1/infrastructure/clusters/{clusterId}
Response samples
application/json
{
  • "data": {
    }
}

Update Cluster

Requires the clusters-manage capability.

SecuritybearerAuth and hubAuth
Request
path Parameters
clusterId
required
string

The ID of the requested cluster.

Request Body schema: application/json

Parameters for updating a cluster.

object
Responses
200

Returns a cluster.

default

General error response from the platform

patch/v1/infrastructure/clusters/{clusterId}
Request samples
application/json
{ }
Response samples
application/json
{
  • "data": {
    }
}

Delete Cluster

Requires the clusters-manage capability.

SecuritybearerAuth and hubAuth
Request
path Parameters
clusterId
required
string

The ID of the requested cluster.

Responses
202

Returns a job descriptor.

default

General error response from the platform

delete/v1/infrastructure/clusters/{clusterId}
Response samples
application/json
{
  • "data": {
    }
}

Update Cluster Access

Requires the clusters-manage capability. If an ACL is present, requires the manage privilege.

SecuritybearerAuth and hubAuth
Request
path Parameters
clusterId
required
string

The ID of the requested cluster.

Request Body schema: application/json

Parameters for updating a cluster.

ACL (object) or null
Responses
200

Returns a cluster.

default

General error response from the platform

patch/v1/infrastructure/clusters/{clusterId}/access
Request samples
application/json
{
  • "acl": {
    }
}
Response samples
application/json
{
  • "data": {
    }
}