List volume attachments for a machine
import requests
url = "https://api.13-215-85-171.sslip.io/v1/machines/{id}/volumes"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)curl --request GET \
--url https://api.13-215-85-171.sslip.io/v1/machines/{id}/volumes \
--header 'Authorization: Bearer <token>'[
{
"id": "<string>",
"volume_id": "<string>",
"machine_id": "<string>",
"mount_path": "<string>",
"read_only": true,
"state": "requested",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"subpath": "<string>",
"last_error_code": "<string>",
"last_error_message": "<string>"
}
]
Volumes
List volume attachments for a machine
GET
/
v1
/
machines
/
{id}
/
volumes
List volume attachments for a machine
import requests
url = "https://api.13-215-85-171.sslip.io/v1/machines/{id}/volumes"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)curl --request GET \
--url https://api.13-215-85-171.sslip.io/v1/machines/{id}/volumes \
--header 'Authorization: Bearer <token>'[
{
"id": "<string>",
"volume_id": "<string>",
"machine_id": "<string>",
"mount_path": "<string>",
"read_only": true,
"state": "requested",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"subpath": "<string>",
"last_error_code": "<string>",
"last_error_message": "<string>"
}
]
Response
Machine volume attachments