Create a Scaleway Instances cluster
import requests
url = "https://platform.ankra.app/api/v1/clusters/scaleway"
payload = {
"credential_id": "11111111-2222-4333-8444-555555555555",
"name": "scw-prod",
"region": "fr-par",
"ssh_key_credential_id": "99999999-8888-4777-8666-555555555555",
"zone": "fr-par-1"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
credential_id: '11111111-2222-4333-8444-555555555555',
name: 'scw-prod',
region: 'fr-par',
ssh_key_credential_id: '99999999-8888-4777-8666-555555555555',
zone: 'fr-par-1'
})
};
fetch('https://platform.ankra.app/api/v1/clusters/scaleway', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request POST \
--url https://platform.ankra.app/api/v1/clusters/scaleway \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"credential_id": "11111111-2222-4333-8444-555555555555",
"name": "scw-prod",
"region": "fr-par",
"ssh_key_credential_id": "99999999-8888-4777-8666-555555555555",
"zone": "fr-par-1"
}
'{
"cluster_id": "11111111-2222-4333-8444-555555555555",
"name": "scw-prod"
}{
"detail": "Cluster not found"
}{
"detail": "Cluster not found"
}{
"detail": "Cluster not found"
}{
"detail": "Cluster not found"
}{
"detail": "Cluster not found"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}{
"detail": "Cluster not found"
}Scaleway Clusters
Create a Scaleway Instances cluster
Bearer PAT authentication; RBAC permission clusters.create. External cloud provider mode is mandatory; kubeadm accepts only Cilium.
POST
/
api
/
v1
/
clusters
/
scaleway
Create a Scaleway Instances cluster
import requests
url = "https://platform.ankra.app/api/v1/clusters/scaleway"
payload = {
"credential_id": "11111111-2222-4333-8444-555555555555",
"name": "scw-prod",
"region": "fr-par",
"ssh_key_credential_id": "99999999-8888-4777-8666-555555555555",
"zone": "fr-par-1"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
credential_id: '11111111-2222-4333-8444-555555555555',
name: 'scw-prod',
region: 'fr-par',
ssh_key_credential_id: '99999999-8888-4777-8666-555555555555',
zone: 'fr-par-1'
})
};
fetch('https://platform.ankra.app/api/v1/clusters/scaleway', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request POST \
--url https://platform.ankra.app/api/v1/clusters/scaleway \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"credential_id": "11111111-2222-4333-8444-555555555555",
"name": "scw-prod",
"region": "fr-par",
"ssh_key_credential_id": "99999999-8888-4777-8666-555555555555",
"zone": "fr-par-1"
}
'{
"cluster_id": "11111111-2222-4333-8444-555555555555",
"name": "scw-prod"
}{
"detail": "Cluster not found"
}{
"detail": "Cluster not found"
}{
"detail": "Cluster not found"
}{
"detail": "Cluster not found"
}{
"detail": "Cluster not found"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}{
"detail": "Cluster not found"
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Headers
PAT organisation override.
Body
application/json
61000, or a port from 1024 through 59999.
Container network. Omitted resolves to cilium on kubeadm (the default distribution) and flannel on k3s.
Available options:
flannel, calico, cilium Show child attributes
Show child attributes
Required range:
1 <= x <= 9Available options:
production, staging, development, disposable Available options:
k3s, kubeadm Required string length:
1 - 50Available options:
stacked, external CIDR for create-new mode; mutually exclusive with private_network_id.
Show child attributes
Show child attributes
Available options:
delete, retain Required range:
0 <= x <= 100