List All Sizes
- Name
get
- Type
- /v1/sizes
- Description
Send a
GET
request to list all sizes.
Request
Example
curl -X GET "https://api.simplystack.com/v1/sizes" \
-H "Content-Type: application/json" \
-H "Authorization: Token d359ad9cc9422b5ff07aede0cd2707da4ff82be0" \
Response
JSON object with a key named sizes
which is an array of the following attributes for the sizes:
Attributes
Example
json
{
"sizes": [
{
"available": true,
"bandwidth": 1099511627776,
"disk": 26843545600,
"memory": 1073741824,
"price_hourly": 0.0069,
"price_monthly": 5.0,
"slug": "b-1vcpu-1gb",
"vcpu": 1
}
],
"meta": {
"pagination": {
"current_page": 1,
"next_page": null,
"pages": 1,
"per_page": 25,
"previous_page": null,
"total": 11
},
"query": null,
"sort": null
}
}