Retrieves a list of cluster metadata with provided search filter spec Supported sort fields - ['environment', 'clusterName', 'clusterState', 'creationTimestamp', 'lastModifiedTimestamp']
POST/v1/dashboard/spectroclusters/metadata/search
Retrieves a list of cluster metadata with provided search filter spec Supported sort fields - ["environment", "clusterName", "clusterState", "creationTimestamp", "lastModifiedTimestamp"]
Request
- application/json
Body
Array [
Array [
]
]
Array [
]
filter
Possible values: [and
, or
]
filterGroups
undefined[]
Possible values: [and
, or
]
filters
undefined[]
condition
bool
date
match
Possible values: [and
, or
]
Possible values: [eq
, gt
, gte
, lt
, lte
, range
]
float
match
Possible values: [and
, or
]
Possible values: [eq
, gt
, gte
, lt
, lte
]
int
match
Possible values: [and
, or
]
Possible values: [eq
, gt
, gte
, lt
, lte
]
keyValue
match
Possible values: [and
, or
]
Possible values: [eq
, contains
, beginsWith
]
string
match
Possible values: [and
, or
]
Possible values: [eq
, contains
, beginsWith
]
Possible values: [string
, int
, float
, bool
, date
, keyValue
]
sort
undefined[]
Possible values: [environment
, clusterName
, clusterState
, healthState
, creationTimestamp
, lastModifiedTimestamp
]
Possible values: [asc
, desc
]
Default value: asc
Responses
- 200
An array of cluster summary meta items
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
items
object[]
required
metadata
object
ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create.
annotations
object
Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations
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.
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.
labels
object
Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels
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.
Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names
Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty.
Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces
An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources.
Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#concurrency-control-and-consistency
SelfLink is a URL representing this object. Populated by the system. Read-only.
UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations.
Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids
specSummary
object
Spectro cluster meta summary
Possible values: [arm64
, amd64
]
Architecture type of the cluster
Possible values: [all
, aws
, azure
, gcp
, vsphere
, openstack
, maas
, nested
, baremetal
, eks
, aks
, edge
, edge-native
, libvirt
, tencent
, tke
, coxedge
, generic
, gke
]
Default value: all
location
object
Cluster location information
projectMeta
object
status
Spectro cluster meta status summary
cost
object
Cluster meta Cost information
fips
Possible values: [full
, none
, partial
, unknown
]
Default value: none
health
object
Cluster meta health information
updates
object
Cluster meta updates information
listmeta
object
ListMeta describes metadata for the resource listing
Next token for the pagination. Next token is equal to empty string indicates end of result set.
Total count of the resources which might change during pagination based on the resources addition or deletion
Number of records feteched
The next offset for the pagination. Starting index for which next request will be placed.
{
"items": [
{
"metadata": {
"annotations": {},
"creationTimestamp": "2024-07-29T15:51:28.071Z",
"deletionTimestamp": "2024-07-29T15:51:28.071Z",
"labels": {},
"lastModifiedTimestamp": "2024-07-29T15:51:28.071Z",
"name": "string",
"namespace": "string",
"resourceVersion": "string",
"selfLink": "string",
"uid": "string"
},
"specSummary": {
"archType": [
"amd64"
],
"cloudAccountUid": "string",
"cloudRegion": "string",
"cloudType": "all",
"clusterType": "string",
"importMode": "string",
"location": {
"coordinates": [
0
],
"countryCode": "string",
"countryName": "string",
"regionCode": "string",
"regionName": "string"
},
"projectMeta": {
"name": "string",
"uid": "string"
},
"tags": [
"string"
]
},
"status": {
"cost": {
"total": 0
},
"fips": {
"mode": "none"
},
"health": {
"isHeartBeatFailed": true,
"state": "string"
},
"state": "string",
"updates": {
"isUpdatesPending": true
}
}
}
],
"listmeta": {
"continue": "string",
"count": 0,
"limit": 0,
"offset": 0
}
}