Retrieves namespaces for the specified cluster
GEThttps://api.spectrocloud.com/v1/spectroclusters/:uid/config/namespaces
Retrieves namespaces for the specified cluster
Request
Path Parameters
uid stringrequired
Cluster uid
Responses
- 200
OK
- application/json
- Schema
- Example (from schema)
Schema
items
object[]
required
{
"items": [
{
"metadata": {
"annotations": {},
"creationTimestamp": "2024-07-01T23:32:16.182Z",
"deletionTimestamp": "2024-07-01T23:32:16.182Z",
"labels": {},
"lastModifiedTimestamp": "2024-07-01T23:32:16.182Z",
"name": "string",
"namespace": "string",
"resourceVersion": "string",
"selfLink": "string",
"uid": "string"
},
"spec": {
"isRegex": true,
"relatedObject": {
"kind": "spectrocluster",
"name": "string",
"uid": "string"
},
"resourceAllocation": {
"cpuCores": 0,
"memoryMiB": 0
}
},
"status": {
"errors": [
{
"msg": "string",
"name": "string",
"resourceType": "string"
}
]
}
}
]
}
- curl
- python
- go
- nodejs
- java
- CURL
curl -L -X GET 'https://api.spectrocloud.com/v1/spectroclusters/:uid/config/namespaces' \
-H 'Accept: application/json'