Skip to main content

Disk Types

Disks are durable network storage devices that your instances can access like physical disks in a desktop or a server. The data on each persistent disk is distributed across several physical disks.

Get the available disk types per provider and region

Provide the API with a provider and a region to get the available disks.

curl -X 'GET' \
'https://api.gigapipe.com/v1/regions?provider={provider_id}&region={region_id}' \
-H 'accept: application/json' \
-H 'Authorization: Bearer <your_access_token>'
  # Payload response ::Array[Dictionary]
[
{
"name": "gp2",
"price": 0.000002283105023333333,
"unit": "Decimal"
},
...
]

Parameters

Attributes


provider  ::Integer

The provider id which you want to get the disk types for


region  ::Integer

The region id which you want to get the disk types for


The Disk Type Object

Attributes


name  ::String

The name of the disk according to its provider


price  ::Float

The disk price per minute


unit  ::String

Binary stands for GiB/TiB, whereas Decimal means GB/TB