List machine attachments for a volume
import requests
url = "https://api.13-215-85-171.sslip.io/v1/volumes/{id}/attachments"
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/volumes/{id}/attachments \
--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 machine attachments for a volume
GET
/
v1
/
volumes
/
{id}
/
attachments
List machine attachments for a volume
import requests
url = "https://api.13-215-85-171.sslip.io/v1/volumes/{id}/attachments"
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/volumes/{id}/attachments \
--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
Volume attachment inventory