Skip to main content
GET
/
cloud
/
v3
/
gpu
/
virtual
/
{project_id}
/
{region_id}
/
clusters
/
{cluster_id}
/
volumes
Python
import os
from gcore import Gcore

client = Gcore(
    api_key=os.environ.get("GCORE_API_KEY"),  # This is the default and can be omitted
)
gpu_virtual_cluster_volume_list = client.cloud.gpu_virtual_clusters.volumes.list(
    cluster_id="1aaaab48-10d0-46d9-80cc-85209284ceb4",
    project_id=1,
    region_id=7,
)
print(gpu_virtual_cluster_volume_list.count)
{
  "count": 1,
  "results": [
    {
      "bootable": true,
      "created_at": "2023-11-07T05:31:56Z",
      "id": "<string>",
      "name": "<string>",
      "root_fs": true,
      "server_id": "<string>",
      "size": 123,
      "status": "attaching",
      "tags": [
        {
          "key": "<string>",
          "read_only": true,
          "value": "<string>"
        }
      ],
      "type": "<string>"
    }
  ]
}

Authorizations

Authorization
string
header
required

API key for authentication. Make sure to include the word apikey, followed by a single space and then your token. Example: apikey 1234$abcdef

Path Parameters

project_id
integer
required

Project ID

region_id
integer
required

Region ID

cluster_id
string<uuid4>
required

Cluster unique identifier

Response

200 - application/json

OK

count
integer
required

Number of objects

Required range: x >= 0
results
ClusterInstanceVolume · object[]
required

Objects