Disk Expansion
Want to be sure you never run out of space? Apart from setting up disk-autoscaling you can also manually expand a disk.
Expand a disk
Provide the API with both a cluster slug and a disk id to never run out of disk space.
- Curl
- Python
curl -X 'PATCH' \
'http://localhost:8000/v1/clusters/cluster-test/disks/1/expand' \
-H 'accept: application/json' \
-H 'Authorization: Bearer <your_access_token>' \
-H 'Content-Type: application/json' \
-d '{
"size": 10.0
}'
# Payload response ::Dictionary
{
"message": "Expanding disk 1 on cluster <cluster-test>..."
}
gigapipe_client.clusters.expand_disk("your_cluster_slug", disk_id=1, payload={
"size": 10.0
})
# Payload response ::Dictionary
{
"message": "Expanding disk 1 on cluster <cluster-test>..."
}
Expansion payload
Attributes
id ::Integer
The disk ID
size ::Integer
The extra size you want to
Autoscaling response
Attributes
message ::String
A basic response message