ClusterService_GetClusters
GET/infra/v3/project/:project/cluster
ClusterService_GetClusters
Request
Path Parameters
Query Parameters
query for filtering
name is unique ID of a resource along with (partnerID, organizationID, projectID)
selector is used to filter the labels of a resource
displayName only used for update queries to set displayName (READONLY)
labels only used for update queries to set labels (READONLY)
This is a request variable of the map type. The query format is "map_name[key]=value", e.g. If the map name is Age, the key type is string, and the value type is integer, the query parameter is expressed as Age["bob"]=18
annotations only used for update queries to set annotations (READONLY)
This is a request variable of the map type. The query format is "map_name[key]=value", e.g. If the map name is Age, the key type is string, and the value type is integer, the query parameter is expressed as Age["bob"]=18
ignoreScopeDefault ignores default values for partnerID, organizationID and projectID
globalScope sets partnerID,organizationID,projectID = 0
urlScope is supposed to be passed in the URL as kind/HashID(value)
generic way to specify a type of resource, mainly for use in users endpoint
Responses
- 200
- 403
- 404
- default
A successful response.
- application/json
- application/yaml
- Schema
- Example (from schema)
Schema
- Array [
- Array [
- Array [
- ]
- Array [
- ]
- Array [
- ]
- ]
- Array [
- ]
- Array [
- ]
- ]
Default value: infra.k8smgmt.io/v3
API Version of the list resource
Default value: ClusterList
Kind of the list resource
metadata object
Metadata of the list resource
items object[]
List of the resources
Default value: infra.k8smgmt.io/v3
API Version of the resource
Default value: Cluster
Kind of the resource
metadata objectrequired
Metadata of the resource
name of the resource
display name of the resource
description of the resource
labels object
labels of the resource
annotations object
annotations of the resource
Project of the resource
Organization to which the resource belongs
Partner to which the resource belongs
spec objectrequired
Spec of the resource
Default value: Imported
Type of the cluster being created
metro object
Location of the cluster
ID Location of the cluster
Location of the cluster
City of the location
State of the location
country of the location
locale of the location
Latitude of the location
Longitude of the location
CountryCode of the location
StateCode of the location
Override selector of the cluster
params object
Cluster provisioning params
environment provider of the cluster
kubernetes provider
provision environment
provision package type
provision type
state
Possible values: [ClusterShareModeNotSet
, ALL
, CUSTOM
]
Default value: ClusterShareModeNotSet
Override selector of the cluster
proxyConfig object
Override selector of the cluster
http proxy
https proxy
noproxy
proxy auth
Allow insecure bootstrap
enabled
Certificate Authority of bootstrap server
clusterData object
Override selector of the cluster
Provider
passphrase of the cluster
cname of the cluster
Entry for DNS A Record
Display Name
Possible values: [EDGE_IGNORE
, EDGE_HEALTHY
, EDGE_UNHEALTHY
, EDGE_DISCONNECTED
]
Default value: EDGE_IGNORE
Health
Manufacturer
Cluster Blueprint
nodes object[]
Override selector of the cluster
metadata object
metadata of the resource
name of the resource
display name of the resource
description of the resource
labels object
labels of the resource
annotations object
annotations of the resource
Project of the resource
Organization to which the resource belongs
Partner to which the resource belongs
spec object
taints object[]
Required. The taint key to be applied to a node.
Required. The effect of the taint on pods that do not tolerate the taint. Valid effects are NoSchedule, PreferNoSchedule and NoExecute.
timeAdded object
Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers.
+protobuf.options.marshal=false +protobuf.as=Timestamp +protobuf.options.(gogoproto.goproto_stringer)=false
Represents seconds of UTC time since Unix epoch 1970-01-01T00:00:00Z. Must be from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z inclusive.
Non-negative fractions of a second at nanosecond resolution. Negative second values with fractions must still have non-negative nanos values that count forward in time. Must be from 0 to 999,999,999 inclusive. This field may be limited in precision depending on context.
status object
Possible values: [ClusterNodeCreated
, ClusterNodeNotReady
, ClusterNodeReady
]
Default value: ClusterNodeCreated
conditions object[]
Type of node condition.
Status of the condition, one of True, False, Unknown.
lastHeartbeatTime object
Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers.
+protobuf.options.marshal=false +protobuf.as=Timestamp +protobuf.options.(gogoproto.goproto_stringer)=false
Represents seconds of UTC time since Unix epoch 1970-01-01T00:00:00Z. Must be from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z inclusive.
Non-negative fractions of a second at nanosecond resolution. Negative second values with fractions must still have non-negative nanos values that count forward in time. Must be from 0 to 999,999,999 inclusive. This field may be limited in precision depending on context.
lastTransitionTime object
Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers.
+protobuf.options.marshal=false +protobuf.as=Timestamp +protobuf.options.(gogoproto.goproto_stringer)=false
Represents seconds of UTC time since Unix epoch 1970-01-01T00:00:00Z. Must be from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z inclusive.
Non-negative fractions of a second at nanosecond resolution. Negative second values with fractions must still have non-negative nanos values that count forward in time. Must be from 0 to 999,999,999 inclusive. This field may be limited in precision depending on context.
nodeInfo object
NodeSystemInfo is a set of ids/uuids to uniquely identify the node.
Boot ID reported by the node.
Kernel Version reported by the node from 'uname -r' (e.g. 3.16.0-0.bpo.4-amd64).
OS Image reported by the node from /etc/os-release (e.g. Debian GNU/Linux 7 (wheezy)).
ContainerRuntime Version reported by the node through runtime remote API (e.g. docker://1.5.0).
Kubelet Version reported by the node.
KubeProxy Version reported by the node.
capacity object
allocatable object
allocated object
ips object[]
projects object[]
Override selector of the cluster
Project ID associated with the cluster
Cluster ID associated with the project
clusterStatus object
Cluster Status
conditions object[]
Override selector of the cluster
Possible values: [ClusterBlueprintSync
, ClusterApprove
, ClusterCheckIn
, ClusterNodeSync
, ClusterRegister
, ClusterNamespaceSync
, ClusterReady
, ClusterAuxiliaryTaskSync
, ClusterBootstrapAgent
, ClusterDelete
]
Default value: ClusterBlueprintSync
Override selector of the cluster
Possible values: [NotSet
, Pending
, InProgress
, Success
, Failed
, Retry
, Skipped
, Stopped
, Expired
, Stopping
, Submitted
]
Default value: NotSet
Current status of the cluster
Cluster condition last updated
Reason of cluster condition
Override selector of the cluster
Override selector of the cluster
Override selector of the cluster
Override selector of the cluster
Override selector of the cluster
status object
Status of the resource
type of the status condition
Possible values: [StatusNotSet
, StatusSubmitted
, StatusOK
, StatusFailed
]
Default value: StatusNotSet
status of the condition
when the condition status is last updated
reason of the last condition status
{
"apiVersion": "infra.k8smgmt.io/v3",
"kind": "ClusterList",
"metadata": {
"count": "string",
"offset": "string",
"limit": "string"
},
"items": [
{
"apiVersion": "infra.k8smgmt.io/v3",
"kind": "Cluster",
"metadata": {
"name": "some-name",
"project": "defaultproject"
},
"spec": {
"clusterType": "Imported",
"metro": {
"id": "string",
"name": "string",
"city": "string",
"state": "string",
"country": "string",
"locale": "string",
"latitude": "string",
"longitude": "string",
"countryCode": "string",
"stateCode": "string"
},
"overrideSelector": "string",
"params": {
"environmentProvider": "string",
"kubernetesProvider": "string",
"provisionEnvironment": "string",
"provisionPackageType": "string",
"provisionType": "string",
"state": "string"
},
"shareMode": "ClusterShareModeNotSet",
"proxyConfig": {
"httpProxy": "string",
"httpsProxy": "string",
"noProxy": "string",
"proxyAuth": "string",
"allowInsecureBootstrap": true,
"enabled": true,
"bootstrapCA": "string"
},
"clusterData": {
"provider": "string",
"passphrase": "string",
"cname": "string",
"arecord": "string",
"displayName": "string",
"health": "EDGE_IGNORE",
"manufacturer": "string",
"clusterBlueprint": "string",
"nodes": [
{
"metadata": {
"name": "some-name",
"project": "defaultproject"
},
"spec": {
"unschedulable": true,
"taints": [
{
"key": "string",
"value": "string",
"effect": "string",
"timeAdded": {
"seconds": "string",
"nanos": 0
}
}
]
},
"status": {
"state": "ClusterNodeCreated",
"conditions": [
{
"type": "string",
"status": "string",
"lastHeartbeatTime": {
"seconds": "string",
"nanos": 0
},
"lastTransitionTime": {
"seconds": "string",
"nanos": 0
},
"reason": "string",
"message": "string"
}
],
"nodeInfo": {
"machineID": "string",
"systemUUID": "string",
"bootID": "string",
"kernelVersion": "string",
"osImage": "string",
"containerRuntimeVersion": "string",
"kubeletVersion": "string",
"kubeProxyVersion": "string",
"operatingSystem": "string",
"architecture": "string"
},
"capacity": {
"cpuCount": "string",
"ephemeralStorageKB": "string",
"memoryKB": "string",
"podsCount": "string",
"gpuCount": "string"
},
"allocatable": {
"cpuCount": "string",
"ephemeralStorageKB": "string",
"memoryKB": "string",
"podsCount": "string",
"gpuCount": "string"
},
"allocated": {
"cpuCount": "string",
"ephemeralStorageKB": "string",
"memoryKB": "string",
"podsCount": "string",
"gpuCount": "string"
},
"ips": [
{
"privateIP": "string",
"publicIP": "string"
}
]
}
}
],
"projects": [
{
"projectID": "string",
"clusterID": "string"
}
],
"clusterStatus": {
"conditions": [
{
"type": "ClusterBlueprintSync",
"status": "NotSet",
"lastUpdated": "2024-02-15T00:40:10.288Z",
"reason": "string"
}
],
"token": "string",
"publishedBlueprint": "string",
"systemTaskCount": "string",
"customTaskCount": "string",
"auxiliaryTaskCount": "string"
}
}
},
"status": {
"conditionType": "string",
"conditionStatus": "StatusNotSet",
"lastUpdated": "2024-02-15T00:40:10.288Z",
"reason": "string"
}
}
]
}
- Schema
- Example (from schema)
Schema
- Array [
- Array [
- Array [
- ]
- Array [
- ]
- Array [
- ]
- ]
- Array [
- ]
- Array [
- ]
- ]
Default value: infra.k8smgmt.io/v3
API Version of the list resource
Default value: ClusterList
Kind of the list resource
metadata object
Metadata of the list resource
items object[]
List of the resources
Default value: infra.k8smgmt.io/v3
API Version of the resource
Default value: Cluster
Kind of the resource
metadata objectrequired
Metadata of the resource
name of the resource
display name of the resource
description of the resource
labels object
labels of the resource
annotations object
annotations of the resource
Project of the resource
Organization to which the resource belongs
Partner to which the resource belongs
spec objectrequired
Spec of the resource
Default value: Imported
Type of the cluster being created
metro object
Location of the cluster
ID Location of the cluster
Location of the cluster
City of the location
State of the location
country of the location
locale of the location
Latitude of the location
Longitude of the location
CountryCode of the location
StateCode of the location
Override selector of the cluster
params object
Cluster provisioning params
environment provider of the cluster
kubernetes provider
provision environment
provision package type
provision type
state
Possible values: [ClusterShareModeNotSet
, ALL
, CUSTOM
]
Default value: ClusterShareModeNotSet
Override selector of the cluster
proxyConfig object
Override selector of the cluster
http proxy
https proxy
noproxy
proxy auth
Allow insecure bootstrap
enabled
Certificate Authority of bootstrap server
clusterData object
Override selector of the cluster
Provider
passphrase of the cluster
cname of the cluster
Entry for DNS A Record
Display Name
Possible values: [EDGE_IGNORE
, EDGE_HEALTHY
, EDGE_UNHEALTHY
, EDGE_DISCONNECTED
]
Default value: EDGE_IGNORE
Health
Manufacturer
Cluster Blueprint
nodes object[]
Override selector of the cluster
metadata object
metadata of the resource
name of the resource
display name of the resource
description of the resource
labels object
labels of the resource
annotations object
annotations of the resource
Project of the resource
Organization to which the resource belongs
Partner to which the resource belongs
spec object
taints object[]
Required. The taint key to be applied to a node.
Required. The effect of the taint on pods that do not tolerate the taint. Valid effects are NoSchedule, PreferNoSchedule and NoExecute.
timeAdded object
Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers.
+protobuf.options.marshal=false +protobuf.as=Timestamp +protobuf.options.(gogoproto.goproto_stringer)=false
Represents seconds of UTC time since Unix epoch 1970-01-01T00:00:00Z. Must be from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z inclusive.
Non-negative fractions of a second at nanosecond resolution. Negative second values with fractions must still have non-negative nanos values that count forward in time. Must be from 0 to 999,999,999 inclusive. This field may be limited in precision depending on context.
status object
Possible values: [ClusterNodeCreated
, ClusterNodeNotReady
, ClusterNodeReady
]
Default value: ClusterNodeCreated
conditions object[]
Type of node condition.
Status of the condition, one of True, False, Unknown.
lastHeartbeatTime object
Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers.
+protobuf.options.marshal=false +protobuf.as=Timestamp +protobuf.options.(gogoproto.goproto_stringer)=false
Represents seconds of UTC time since Unix epoch 1970-01-01T00:00:00Z. Must be from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z inclusive.
Non-negative fractions of a second at nanosecond resolution. Negative second values with fractions must still have non-negative nanos values that count forward in time. Must be from 0 to 999,999,999 inclusive. This field may be limited in precision depending on context.
lastTransitionTime object
Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers.
+protobuf.options.marshal=false +protobuf.as=Timestamp +protobuf.options.(gogoproto.goproto_stringer)=false
Represents seconds of UTC time since Unix epoch 1970-01-01T00:00:00Z. Must be from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z inclusive.
Non-negative fractions of a second at nanosecond resolution. Negative second values with fractions must still have non-negative nanos values that count forward in time. Must be from 0 to 999,999,999 inclusive. This field may be limited in precision depending on context.
nodeInfo object
NodeSystemInfo is a set of ids/uuids to uniquely identify the node.
Boot ID reported by the node.
Kernel Version reported by the node from 'uname -r' (e.g. 3.16.0-0.bpo.4-amd64).
OS Image reported by the node from /etc/os-release (e.g. Debian GNU/Linux 7 (wheezy)).
ContainerRuntime Version reported by the node through runtime remote API (e.g. docker://1.5.0).
Kubelet Version reported by the node.
KubeProxy Version reported by the node.
capacity object
allocatable object
allocated object
ips object[]
projects object[]
Override selector of the cluster
Project ID associated with the cluster
Cluster ID associated with the project
clusterStatus object
Cluster Status
conditions object[]
Override selector of the cluster
Possible values: [ClusterBlueprintSync
, ClusterApprove
, ClusterCheckIn
, ClusterNodeSync
, ClusterRegister
, ClusterNamespaceSync
, ClusterReady
, ClusterAuxiliaryTaskSync
, ClusterBootstrapAgent
, ClusterDelete
]
Default value: ClusterBlueprintSync
Override selector of the cluster
Possible values: [NotSet
, Pending
, InProgress
, Success
, Failed
, Retry
, Skipped
, Stopped
, Expired
, Stopping
, Submitted
]
Default value: NotSet
Current status of the cluster
Cluster condition last updated
Reason of cluster condition
Override selector of the cluster
Override selector of the cluster
Override selector of the cluster
Override selector of the cluster
Override selector of the cluster
status object
Status of the resource
type of the status condition
Possible values: [StatusNotSet
, StatusSubmitted
, StatusOK
, StatusFailed
]
Default value: StatusNotSet
status of the condition
when the condition status is last updated
reason of the last condition status
{
"apiVersion": "infra.k8smgmt.io/v3",
"kind": "ClusterList",
"metadata": {
"count": "string",
"offset": "string",
"limit": "string"
},
"items": [
{
"apiVersion": "infra.k8smgmt.io/v3",
"kind": "Cluster",
"metadata": {
"name": "some-name",
"project": "defaultproject"
},
"spec": {
"clusterType": "Imported",
"metro": {
"id": "string",
"name": "string",
"city": "string",
"state": "string",
"country": "string",
"locale": "string",
"latitude": "string",
"longitude": "string",
"countryCode": "string",
"stateCode": "string"
},
"overrideSelector": "string",
"params": {
"environmentProvider": "string",
"kubernetesProvider": "string",
"provisionEnvironment": "string",
"provisionPackageType": "string",
"provisionType": "string",
"state": "string"
},
"shareMode": "ClusterShareModeNotSet",
"proxyConfig": {
"httpProxy": "string",
"httpsProxy": "string",
"noProxy": "string",
"proxyAuth": "string",
"allowInsecureBootstrap": true,
"enabled": true,
"bootstrapCA": "string"
},
"clusterData": {
"provider": "string",
"passphrase": "string",
"cname": "string",
"arecord": "string",
"displayName": "string",
"health": "EDGE_IGNORE",
"manufacturer": "string",
"clusterBlueprint": "string",
"nodes": [
{
"metadata": {
"name": "some-name",
"project": "defaultproject"
},
"spec": {
"unschedulable": true,
"taints": [
{
"key": "string",
"value": "string",
"effect": "string",
"timeAdded": {
"seconds": "string",
"nanos": 0
}
}
]
},
"status": {
"state": "ClusterNodeCreated",
"conditions": [
{
"type": "string",
"status": "string",
"lastHeartbeatTime": {
"seconds": "string",
"nanos": 0
},
"lastTransitionTime": {
"seconds": "string",
"nanos": 0
},
"reason": "string",
"message": "string"
}
],
"nodeInfo": {
"machineID": "string",
"systemUUID": "string",
"bootID": "string",
"kernelVersion": "string",
"osImage": "string",
"containerRuntimeVersion": "string",
"kubeletVersion": "string",
"kubeProxyVersion": "string",
"operatingSystem": "string",
"architecture": "string"
},
"capacity": {
"cpuCount": "string",
"ephemeralStorageKB": "string",
"memoryKB": "string",
"podsCount": "string",
"gpuCount": "string"
},
"allocatable": {
"cpuCount": "string",
"ephemeralStorageKB": "string",
"memoryKB": "string",
"podsCount": "string",
"gpuCount": "string"
},
"allocated": {
"cpuCount": "string",
"ephemeralStorageKB": "string",
"memoryKB": "string",
"podsCount": "string",
"gpuCount": "string"
},
"ips": [
{
"privateIP": "string",
"publicIP": "string"
}
]
}
}
],
"projects": [
{
"projectID": "string",
"clusterID": "string"
}
],
"clusterStatus": {
"conditions": [
{
"type": "ClusterBlueprintSync",
"status": "NotSet",
"lastUpdated": "2024-02-15T00:40:10.290Z",
"reason": "string"
}
],
"token": "string",
"publishedBlueprint": "string",
"systemTaskCount": "string",
"customTaskCount": "string",
"auxiliaryTaskCount": "string"
}
}
},
"status": {
"conditionType": "string",
"conditionStatus": "StatusNotSet",
"lastUpdated": "2024-02-15T00:40:10.290Z",
"reason": "string"
}
}
]
}
Returned when the user does not have permission to access the resource.
- application/json
- application/yaml
- Schema
Schema
- any
- Schema
Schema
- any
Returned when the resource does not exist.
- application/json
- application/yaml
- Schema
Schema
string
- Schema
Schema
string
An unexpected error response.
- application/json
- application/yaml
- Schema
- Example (from schema)
Schema
- Array [
- ]
details object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
- Schema
- Example (from schema)
Schema
- Array [
- ]
details object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}