Skip to main content
POST
/
api
/
v1
/
org
/
clusters
/
imported
/
{cluster_id}
/
stacks
/
from-profile
Instantiate Stack Profile Endpoint
import requests

url = "https://platform.ankra.app/api/v1/org/clusters/imported/{cluster_id}/stacks/from-profile"

payload = { "profile_id": "<string>" }
headers = {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.text)
{
  "draft_id": "<string>",
  "stack_name": "<string>",
  "profile_version": 123,
  "addons_count": 123,
  "manifests_count": 123,
  "warnings": [],
  "deployed": false,
  "operation_id": "<string>",
  "job_count": 0
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

authorization
string | null
x-ankra-organisation-id
string | null

Path Parameters

cluster_id
string<uuid4>
required

Body

application/json
profile_id
string<uuid4>
required
version
integer | null
new_stack_name
string | null
parameters
ParameterBinding · object[]
deploy
boolean
default:false

Response

Successful Response

draft_id
string<uuid4>
required
stack_name
string
required
profile_version
integer
required
addons_count
integer
required
manifests_count
integer
required
warnings
string[]
deployed
boolean
default:false
operation_id
string<uuid4> | null
job_count
integer
default:0