Creates a cluster profile
POSThttps://api.spectrocloud.com/v1/clusterprofiles
Creates a cluster profile
Request
Responses
- 201
Created successfully
Response Headers
Authorization: ApiKey
name: ApiKeytype: apiKeydescription: API key authorization where API key can be generated from Palette console under Profile > My API Keysin: header
- curl
- python
- go
- nodejs
- java
- CURL
curl -L 'https://api.spectrocloud.com/v1/clusterprofiles' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'ApiKey: <ApiKey>' \
-d '{
"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",
"uid": "string"
},
"spec": {
"template": {
"cloudType": "string",
"packs": [
{
"layer": "string",
"manifests": [
{
"content": "string",
"name": "string"
}
],
"name": "string",
"registryUid": "string",
"tag": "string",
"type": "spectro",
"uid": "string",
"values": "string"
}
],
"type": "cluster"
},
"variables": [
{
"defaultValue": "string",
"description": "string",
"displayName": "string",
"format": "string",
"hidden": true,
"immutable": true,
"isSensitive": true,
"name": "string",
"regex": "string",
"required": true
}
],
"version": "string"
}
}'