Imports a cluster profile
POSThttps://api.spectrocloud.com/v1/clusterprofiles/import
Authorization: ApiKey
name: ApiKeytype: apiKeydescription: API key authorization where API key can be generated from Palette console under Profile > My API Keysin: header
Imports a cluster profile
Request
Query Parameters
publish boolean
If true then cluster profile will be published post successful import
Header Parameters
ProjectUid string
Scope the request to the specified project uid
- application/json
Body
metadata object
spec object
Responses
- 201
Created successfully
Response Headers
- application/json
- Schema
- Example (from schema)
Schema
uidstringrequired
{
"uid": "string"
}
- curl
- python
- go
- nodejs
- java
- CURL
curl -L -X POST 'https://api.spectrocloud.com/v1/clusterprofiles/import' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'ApiKey: <API_KEY_VALUE>' \
--data-raw '{
"metadata": {
"description": "string",
"labels": {},
"name": "string"
},
"spec": {
"template": {
"cloudType": "string",
"packs": [
{
"layer": "string",
"manifests": [
{
"content": "string",
"name": "string"
}
],
"name": "string",
"registry": {
"matchingRegistries": [
{
"isPrivate": true,
"kind": "string",
"name": "string",
"uid": "string"
}
],
"metadata": {
"isPrivate": true,
"kind": "string",
"name": "string",
"uid": "string"
}
},
"tag": "string",
"type": "string",
"values": "string",
"version": "string"
}
],
"type": "string"
},
"version": "string"
}
}'