List Volume Types
GET https://infrahub-api.nexgencloud.com/v1/core/volume-types
Retrieves a list of available volume types that can be used in the creation of a new volume.
Parameters
No parameters.
Attributes
status boolean
Indicates the success or failure of the request to retrieve volume types, true
indicates success.
message string
A message confirming the successful retrieval of the volume types list.
volume_types array of strings
An array containing the names of volume types that can be used in the volume_type
field in the request to create volumes.
Example request
curl -X GET "https://infrahub-api.nexgencloud.com/v1/core/volume-types" \
-H "accept: application/json"\
-H "api_key: YOUR API KEY"
Response
{
"status": true,
"message": "string",
"volume_types": [
"string"
]
}
Returns
Returns an array of volume types. Otherwise, an error has occurred.