List OVH flavors available to a credential in a region
import requests
url = "https://platform.ankra.app/api/v1/clusters/ovh/flavors"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://platform.ankra.app/api/v1/clusters/ovh/flavors', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request GET \
--url https://platform.ankra.app/api/v1/clusters/ovh/flavors \
--header 'Authorization: Bearer <token>'{
"flavors": [
{
"name": "<string>",
"region": "<string>",
"available": true,
"disk_gb": 0,
"ram_mb": 0,
"vcpus": 0
}
]
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}OVH Clusters
List OVH flavors available to a credential in a region
Return the OVH Cloud instance flavors the supplied credential’s project can deploy in the given region. Only available flavors are valid for cluster creation.
GET
/
api
/
v1
/
clusters
/
ovh
/
flavors
List OVH flavors available to a credential in a region
import requests
url = "https://platform.ankra.app/api/v1/clusters/ovh/flavors"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://platform.ankra.app/api/v1/clusters/ovh/flavors', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request GET \
--url https://platform.ankra.app/api/v1/clusters/ovh/flavors \
--header 'Authorization: Bearer <token>'{
"flavors": [
{
"name": "<string>",
"region": "<string>",
"available": true,
"disk_gb": 0,
"ram_mb": 0,
"vcpus": 0
}
]
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Response
Flavors retrieved successfully
Show child attributes
Show child attributes