Cloud Providers /
List clusters
Required permission
Account > Cloud > Clusters > Read
Query parameters
per_page
integerThe number of results to display per request. Maximum of 100 results per page.page
integerThe page number to access.cursor
stringThe cursor returned from the previous page of results, used to request the next page.
Response body
- {object}Response object.
data
{object} requiredResult data.clusters
[array] requiredAn array of clusters.- {object}A cluster object.
name
string requiredThe name of the cluster.min length3max length20pattern^[a-zA-Z]((-|\s)?[a-zA-Z0-9]+((-|\s)[a-zA-Z0-9]+)*)?$description
stringThe description of the cluster.max length200pattern^[a-zA-Z0-9.,?\s\\/'"()[\];`%^&*\-_:!]+$provider
string requiredCloud provider to be used for the selected resourceone ofaws, azure, civo, gcp, oci, byokregion
string requiredRegion of the cluster.status
{object}state
{object}state
string requiredCurrent state of the cluster.transitionTime
stringTime of the last state transition.reason
stringThe reason, given the cluster is in an error state.kubernetesVersion
stringDeprecated: This field is no longer used, the version is now set by the platform.integrationId
stringExisting integration to use for this cluster.pattern^((org|team)\/)?[a-zA-Z](-?[a-zA-Z0-9]+(-[a-zA-Z0-9]+)*)?$storage
(multiple options: oneOf)- {object}
storageEnabled
booleansnapshotsEnabled
booleanstorageClasses
[array]- {object}
id
string requiredname
string requireddescription
stringplatformMapping
string requiredone ofssd, hddkubernetesName
string requireddefaultSnapshotClass
stringsnapshotClasses
[array]- {object}
id
string requiredname
string requireddescription
stringkubernetesName
string requirednodePools
[array] requiredsettings
{object}builds
{object}mode
stringone ofpaas, internal, build-clusterplan
stringPlan to use for builds if they are run on the clustermin length3max length39pattern^[a-zA-Z](-?[a-zA-Z0-9]+(-[a-zA-Z0-9]+)*)?$clusterId
stringCluster to use for scheduling buildspattern^((org|team)\/)?[a-zA-Z](-?[a-zA-Z0-9]+(-[a-zA-Z0-9]+)*)?$registry
{object}mode
stringone ofpaas, self-hostedregistryId
stringCredentials to use for storing of images.pattern^((org|team)\/)?[a-zA-Z](-?[a-zA-Z0-9]+(-[a-zA-Z0-9]+)*)?$logging
{object}mode
stringone ofpaas, lokivanityDomains
{object}apps
{object}zoneName
string requiredintegrationId
string requiredcustomDomains
{object}zoneName
string requiredintegrationId
string requiredloadBalancers
{object}zoneName
string requiredintegrationId
string requiredinfrastructure
{object}workloads
{object}runtimeClass
stringone ofnone, gvisor, kata-clh, kata-qemu, katars-clhbuilds
{object}runtimeClass
stringone ofnone, gvisor, kata-clh, kata-qemu, katars-clhinstallKata
booleaninstallGvisor
booleancleanupVolumes
booleancleanupSnapshots
booleancephStorageProvider
{object}enabled
booleanresources
{object}cpu
numberConfigure the CPU resources per Ceph replicamin1max20memory
numberConfigure the memory resources per Ceph replicamin5024max40960storage
numberConfigure the data disk size per Ceph replicamin102400max5242880enableErasureCoding
booleanrequestModifiers
{object}Allows customising request modifier values.services
{object}Request modifiers for servicescpu
number requiredmin0.2max1memory
number requiredmin0.4max1jobs
{object}Request modifiers for jobscpu
number requiredmin0.2max1memory
number requiredmin0.4max1builds
{object}Request modifiers for buildscpu
number requiredmin0.1max1memory
number requiredmin0.1max1addons
{object}Request modifiers for addonscpu
number requiredmin0.2max1memory
number requiredmin0.4max1skipInstall
booleanrestrictions
{object}BYOC restrictions configuration for controlling team accessenabled
boolean requiredEnable or disable BYOC restrictions for this entityteams
[array]List of teams that have access to this BYOC cluster- {object}
teamId
string requiredThe ID of the team that has access to this BYOC clustergcp
{object}GCP specific data. Required when `provider` is `gcp`.enableAuthorizedIpRanges
booleanprojectId
stringGCP Project IDaws
{object}AWS specific data. Required when `provider` is `aws`.enablePublicAccessCidrs
booleanpublicAccessCidrs
[array]- stringpattern^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])(\/([0-9]|[1-2][0-9]|3[0-2]))$
subnetConfiguration
{object}mode
string requiredone ofdefault-subnets-for-azs, explicit-subnetsvpcId
(multiple options: oneOf)- string
- string
subnets
[array] requiredList of subnets the cluster should be created for. At least 2 must be specified.- string
vpcEgress
booleanIf egress traffic from the cluster should come from a single static egress IP.oci
{object}OCI specific data. Required when `provider` is `oci`.vcnConfiguration
{object} requiredvcnId
string requiredsubnetIdForKubernetesApi
string requiredsubnetIdsForServiceLBs
[array] required- string
azure
{object}Azure specific data. Required when `provider` is `azure`.enableAuthorizedIpRanges
booleanbyok
{object}BYOK specific data. Required when `provider` is `byok`.nodePoolProviderIdLabel
string requiredid
string requiredIdentifier for the cluster.pagination
{object} requiredData about the endpoint pagination.hasNextPage
boolean requiredIs there another page of results available?cursor
stringThe cursor to access the next page of results.count
number requiredThe number of results returned by this request.
OR
GET /v1/cloud-providers/clusters
Example response
200 OK
JSON
{
"data": {
"clusters": [
{
"name": "GCP Cluster 1",
"description": "This is a new cluster.",
"provider": "gcp",
"region": "europe-west2",
"status": {
"state": {
"state": "running"
}
},
"kubernetesVersion": "1.30",
"integrationId": "gcp-integration",
"settings": {
"builds": {
"plan": "nf-compute-200"
},
"registry": {
"registryId": "my-registry-credentials"
},
"requestModifiers": {
"services": {
"cpu": 0.5,
"memory": 0.8
},
"jobs": {
"cpu": 0.5,
"memory": 0.8
},
"builds": {
"cpu": 0.2,
"memory": 0.5
},
"addons": {
"cpu": 0.5,
"memory": 0.8
}
}
},
"aws": {
"subnetConfiguration": {
"subnets": [
"eu-west-1a"
]
}
},
"id": "gcp-cluster-1"
}
]
},
"pagination": {
"hasNextPage": false,
"count": 1
}
}