Retrieves a list of cluster profiles filter summary Supported filter fields - ['profileName', 'tags', 'profileType', 'environment'] Supported sort fields - ['profileName', 'environment', 'profileType', 'creationTimestamp', 'lastModifiedTimestamp']
POSThttps://api.spectrocloud.com/v1/dashboard/clusterprofiles
Authorization: ApiKey
name: ApiKeytype: apiKeydescription: API key authorization where API key can be generated from Palette console under Profile > My API Keysin: header
Retrieves a list of cluster profiles filter summary Supported filter fields - ["profileName", "tags", "profileType", "environment"] Supported sort fields - ["profileName", "environment", "profileType", "creationTimestamp", "lastModifiedTimestamp"]
Request
Query Parameters
Possible values: <= 20
limit is a maximum number of responses to return for a list call. Maximum value of the limit is 20.
If more items exist, the server will set the continue
field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results.
offset is the next index number from which the response will start. The response offset value can be used along with continue token for the pagination.
continue token to paginate the subsequent data items
Header Parameters
Scope the request to the specified project uid
- application/json
Body
filter
sort undefined[]
Responses
- 200
An array of cluster profiles summary items
- application/json
- Schema
- Example (from schema)
Schema
items object[]required
listmeta object
{
"items": [
{
"metadata": {
"annotations": {},
"creationTimestamp": "2023-12-01T21:31:48.504Z",
"deletionTimestamp": "2023-12-01T21:31:48.504Z",
"labels": {},
"lastModifiedTimestamp": "2023-12-01T21:31:48.504Z",
"name": "string",
"uid": "string"
},
"specSummary": {
"draft": {
"cloudType": "string",
"packs": [
{
"addonType": "string",
"annotations": {},
"displayName": "string",
"layer": "kernel",
"logoUrl": "string",
"name": "string",
"packUid": "string",
"tag": "string",
"type": "string",
"version": "string"
}
],
"type": "string"
},
"published": {
"cloudType": "string",
"packs": [
{
"addonType": "string",
"annotations": {},
"displayName": "string",
"layer": "kernel",
"logoUrl": "string",
"name": "string",
"packUid": "string",
"tag": "string",
"type": "string",
"version": "string"
}
],
"type": "string"
},
"version": "string",
"versions": [
{
"uid": "string",
"version": "string"
}
]
},
"status": {
"fips": {
"mode": "none"
},
"inUseClusterUids": [
"string"
],
"inUseClusters": [
{
"name": "string",
"uid": "string"
}
],
"isPublished": true,
"pack": {
"deleted": 0,
"deprecated": 0,
"disabled": 0
}
}
}
],
"listmeta": {
"continue": "string",
"count": 0,
"limit": 0,
"offset": 0
}
}
- curl
- python
- go
- nodejs
- java
- CURL
curl -L -X POST 'https://api.spectrocloud.com/v1/dashboard/clusterprofiles' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'ApiKey: <API_KEY_VALUE>' \
--data-raw '{
"filter": {
"environment": [
"all"
],
"fips": "none",
"profileName": {
"beginsWith": "string",
"contains": "string",
"eq": "string",
"ignoreCase": true,
"ne": "string"
},
"profileType": [
"cluster"
],
"scope": "system",
"tags": {
"beginsWith": [
"string"
],
"eq": [
"string"
],
"ignoreCase": true,
"ne": [
"string"
]
},
"version": {
"beginsWith": "string",
"eq": "string",
"gt": "string",
"lt": "string",
"ne": "string"
}
},
"sort": [
{
"field": "profileName",
"order": "asc"
}
]
}'