List Proxmox VE storages
import requests
url = "https://platform.ankra.app/api/v1/clusters/proxmox/storages"
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/proxmox/storages', 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/proxmox/storages \
--header 'Authorization: Bearer <token>'[
{
"storage": "<string>",
"type": "<string>",
"content": [
"<string>"
],
"active": true,
"shared": true,
"available_bytes": 123,
"total_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"
}Proxmox Clusters
List Proxmox VE storages
Lists the storages on the given Proxmox VE node with their content types, whether they are shared and their free and total space. 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
/
proxmox
/
storages
List Proxmox VE storages
import requests
url = "https://platform.ankra.app/api/v1/clusters/proxmox/storages"
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/proxmox/storages', 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/proxmox/storages \
--header 'Authorization: Bearer <token>'[
{
"storage": "<string>",
"type": "<string>",
"content": [
"<string>"
],
"active": true,
"shared": true,
"available_bytes": 123,
"total_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.
The Proxmox VE node to read, from the nodes catalog.
Response
Successful response
The storage ID, e.g. local-lvm.
The storage type, e.g. lvmthin, zfspool, nfs.
The content types the storage accepts, e.g. images, rootdir.