List HPE Morpheus service plans
import requests
url = "https://platform.ankra.app/api/v1/clusters/morpheus/plans"
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/morpheus/plans', 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/morpheus/plans \
--header 'Authorization: Bearer <token>'[
{
"id": 123,
"name": "<string>",
"code": "<string>",
"max_cores": 123,
"max_memory_bytes": 123
}
]{
"detail": "Cluster not found"
}{
"detail": "Cluster not found"
}{
"detail": "Cluster not found"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}{
"detail": "Cluster not found"
}HPE Morpheus Clusters
List HPE Morpheus service plans
Lists the Morpheus service plans (VM sizes) visible to the credential given in credential_id; their IDs are the plan IDs a create and the day-2 resizes take. A credential of another provider or organisation answers 404; a provider API that refuses the read answers 400 with its detail.
GET
/
api
/
v1
/
clusters
/
morpheus
/
plans
List HPE Morpheus service plans
import requests
url = "https://platform.ankra.app/api/v1/clusters/morpheus/plans"
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/morpheus/plans', 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/morpheus/plans \
--header 'Authorization: Bearer <token>'[
{
"id": 123,
"name": "<string>",
"code": "<string>",
"max_cores": 123,
"max_memory_bytes": 123
}
]{
"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.
Query Parameters
The credential to read the catalog with.