# VMs

## Create VM

`$ nirvana compute:vms create`

**post** `/v1/compute/vms`

Create a VM

### Parameters

- `--boot-volume: object { size, type, tags }`

  Boot volume for the VM.

- `--instance-type: string`

  Instance type name.

- `--name: string`

  Name of the VM.

- `--os-image-name: string`

  Name of the OS Image to use for the VM.

- `--project-id: string`

  Project ID to create the VM in.

- `--public-ip-enabled: boolean`

  Whether to enable public IP for the VM.

- `--region: "us-sva-2"`

  Region the resource is in.

- `--ssh-key: object { public_key }`

  Public SSH key configuration for the VM.

- `--subnet-id: string`

  ID of the subnet to use for the VM.

- `--data-volume: optional array of object { name, size, type, tags }`

  Data volumes for the VM.

- `--tag: optional array of string`

  Tags to attach to the VM.

### Returns

- `operation: object { id, created_at, details, 6 more }`

  Operation details.

  - `id: string`

    Unique identifier for the Operation.

  - `created_at: string`

    When the Operation was created.

  - `details: object { changes }`

    Structured details about what an operation is changing.

    - `changes: map[OperationFieldDiff]`

      Map of changed field names to their from/to diffs. Keys depend on the parent operation's kind+type.

      - `from: string or number or boolean or array of string`

        Previous value.

        - `union_member_0: string`

        - `union_member_1: number`

        - `union_member_2: boolean`

        - `union_member_3: array of string`

      - `to: string or number or boolean or array of string`

        New value.

        - `union_member_0: string`

        - `union_member_1: number`

        - `union_member_2: boolean`

        - `union_member_3: array of string`

  - `kind: "vm" or "volume" or "vpc" or 3 more`

    Kind of Operation.

    - `"vm"`

    - `"volume"`

    - `"vpc"`

    - `"firewall_rule"`

    - `"nks_cluster"`

    - `"nks_node_pool"`

  - `project_id: string`

    Project ID the Operation belongs to.

  - `resource_id: string`

    ID of the resource that the Operation is acting on.

  - `status: "pending" or "running" or "done" or 2 more`

    Status of the Operation.

    - `"pending"`

    - `"running"`

    - `"done"`

    - `"failed"`

    - `"unknown"`

  - `type: "create" or "update" or "delete" or "restart"`

    Type of Operation.

    - `"create"`

    - `"update"`

    - `"delete"`

    - `"restart"`

  - `updated_at: string`

    When the Operation was updated.

### Example

```cli
nirvana compute:vms create \
  --api-key 'My API Key' \
  --boot-volume '{size: 100, type: abs}' \
  --instance-type n1-standard-8 \
  --name my-vm \
  --os-image-name ubuntu-noble-2025-10-01 \
  --project-id 123e4567-e89b-12d3-a456-426614174000 \
  --public-ip-enabled \
  --region us-sva-2 \
  --ssh-key '{public_key: ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDBIASkmwNiLcdlW6927Zjt1Hf7Kw/PpEZ4Zm+wU9wn2}' \
  --subnet-id 123e4567-e89b-12d3-a456-426614174000
```

#### Response

```json
{
  "id": "123e4567-e89b-12d3-a456-426614174000",
  "created_at": "2025-01-01T00:00:00Z",
  "details": {
    "changes": {
      "foo": {
        "from": "string",
        "to": "string"
      }
    }
  },
  "kind": "vm",
  "project_id": "123e4567-e89b-12d3-a456-426614174000",
  "resource_id": "123e4567-e89b-12d3-a456-426614174000",
  "status": "pending",
  "type": "create",
  "updated_at": "2025-01-01T00:00:00Z"
}
```

## Get VM Details

`$ nirvana compute:vms get`

**get** `/v1/compute/vms/{vm_id}`

Get details about a VM

### Parameters

- `--vm-id: string`

  VM ID

### Returns

- `vm: object { id, boot_volume_id, cpu_config, 16 more }`

  VM details.

  - `id: string`

    Unique identifier for the VM.

  - `boot_volume_id: string`

    ID of the boot volume attached to the VM.

  - `cpu_config: object { vcpu }`

    CPU configuration for the VM.

    - `vcpu: number`

      Number of virtual CPUs.

  - `created_at: string`

    When the VM was created.

  - `data_volume_ids: array of string`

    IDs of the data volumes attached to the VM.

  - `memory_config: object { size }`

    Memory configuration for the VM.

    - `size: number`

      Size of the memory in GB.

  - `name: string`

    Name of the VM.

  - `private_ip: string`

    Private IP of the VM.

  - `project_id: string`

    Project ID the VM belongs to.

  - `public_ip: string`

    Public IP of the VM.

  - `public_ip_enabled: boolean`

    Whether the public IP is enabled for the VM.

  - `region: "us-sva-2"`

    Region the resource is in.

    - `"us-sva-2"`

  - `status: "pending" or "creating" or "updating" or 4 more`

    Status of the resource.

    - `"pending"`

    - `"creating"`

    - `"updating"`

    - `"ready"`

    - `"deleting"`

    - `"deleted"`

    - `"error"`

  - `subnet_id: string`

    ID of the subnet the VM is in.

  - `tags: array of string`

    Tags to attach to the VM.

  - `updated_at: string`

    When the VM was updated.

  - `vpc_id: string`

    ID of the VPC the VM is in.

  - `vpc_name: string`

    Name of the VPC the VM is in.

  - `instance_type: optional string`

    Instance type name.

### Example

```cli
nirvana compute:vms get \
  --api-key 'My API Key' \
  --vm-id vm_id
```

#### Response

```json
{
  "id": "123e4567-e89b-12d3-a456-426614174000",
  "boot_volume_id": "123e4567-e89b-12d3-a456-426614174000",
  "cpu_config": {
    "vcpu": 2
  },
  "created_at": "2025-01-01T00:00:00Z",
  "data_volume_ids": [
    "123e4567-e89b-12d3-a456-426614174001",
    "123e4567-e89b-12d3-a456-426614174002"
  ],
  "memory_config": {
    "size": 2
  },
  "name": "my-vm",
  "private_ip": "10.0.0.1",
  "project_id": "123e4567-e89b-12d3-a456-426614174000",
  "public_ip": "123.123.123.123",
  "public_ip_enabled": true,
  "region": "us-sva-2",
  "status": "ready",
  "subnet_id": "123e4567-e89b-12d3-a456-426614174000",
  "tags": [
    "production",
    "ethereum"
  ],
  "updated_at": "2025-01-01T00:00:00Z",
  "vpc_id": "123e4567-e89b-12d3-a456-426614174000",
  "vpc_name": "my-vpc",
  "instance_type": "n1-standard-8"
}
```

## Update VM

`$ nirvana compute:vms update`

**patch** `/v1/compute/vms/{vm_id}`

Update a VM

### Parameters

- `--vm-id: string`

  VM ID

- `--instance-type: optional string`

  Instance type name.

- `--name: optional string`

  Name of the VM.

- `--public-ip-enabled: optional boolean`

  Whether to enable public IP for the VM.

- `--tag: optional array of string`

  Tags to attach to the VM.

### Returns

- `operation: object { id, created_at, details, 6 more }`

  Operation details.

  - `id: string`

    Unique identifier for the Operation.

  - `created_at: string`

    When the Operation was created.

  - `details: object { changes }`

    Structured details about what an operation is changing.

    - `changes: map[OperationFieldDiff]`

      Map of changed field names to their from/to diffs. Keys depend on the parent operation's kind+type.

      - `from: string or number or boolean or array of string`

        Previous value.

        - `union_member_0: string`

        - `union_member_1: number`

        - `union_member_2: boolean`

        - `union_member_3: array of string`

      - `to: string or number or boolean or array of string`

        New value.

        - `union_member_0: string`

        - `union_member_1: number`

        - `union_member_2: boolean`

        - `union_member_3: array of string`

  - `kind: "vm" or "volume" or "vpc" or 3 more`

    Kind of Operation.

    - `"vm"`

    - `"volume"`

    - `"vpc"`

    - `"firewall_rule"`

    - `"nks_cluster"`

    - `"nks_node_pool"`

  - `project_id: string`

    Project ID the Operation belongs to.

  - `resource_id: string`

    ID of the resource that the Operation is acting on.

  - `status: "pending" or "running" or "done" or 2 more`

    Status of the Operation.

    - `"pending"`

    - `"running"`

    - `"done"`

    - `"failed"`

    - `"unknown"`

  - `type: "create" or "update" or "delete" or "restart"`

    Type of Operation.

    - `"create"`

    - `"update"`

    - `"delete"`

    - `"restart"`

  - `updated_at: string`

    When the Operation was updated.

### Example

```cli
nirvana compute:vms update \
  --api-key 'My API Key' \
  --vm-id vm_id
```

#### Response

```json
{
  "id": "123e4567-e89b-12d3-a456-426614174000",
  "created_at": "2025-01-01T00:00:00Z",
  "details": {
    "changes": {
      "foo": {
        "from": "string",
        "to": "string"
      }
    }
  },
  "kind": "vm",
  "project_id": "123e4567-e89b-12d3-a456-426614174000",
  "resource_id": "123e4567-e89b-12d3-a456-426614174000",
  "status": "pending",
  "type": "create",
  "updated_at": "2025-01-01T00:00:00Z"
}
```

## Delete VM

`$ nirvana compute:vms delete`

**delete** `/v1/compute/vms/{vm_id}`

Delete a VM

### Parameters

- `--vm-id: string`

  VM ID

### Returns

- `operation: object { id, created_at, details, 6 more }`

  Operation details.

  - `id: string`

    Unique identifier for the Operation.

  - `created_at: string`

    When the Operation was created.

  - `details: object { changes }`

    Structured details about what an operation is changing.

    - `changes: map[OperationFieldDiff]`

      Map of changed field names to their from/to diffs. Keys depend on the parent operation's kind+type.

      - `from: string or number or boolean or array of string`

        Previous value.

        - `union_member_0: string`

        - `union_member_1: number`

        - `union_member_2: boolean`

        - `union_member_3: array of string`

      - `to: string or number or boolean or array of string`

        New value.

        - `union_member_0: string`

        - `union_member_1: number`

        - `union_member_2: boolean`

        - `union_member_3: array of string`

  - `kind: "vm" or "volume" or "vpc" or 3 more`

    Kind of Operation.

    - `"vm"`

    - `"volume"`

    - `"vpc"`

    - `"firewall_rule"`

    - `"nks_cluster"`

    - `"nks_node_pool"`

  - `project_id: string`

    Project ID the Operation belongs to.

  - `resource_id: string`

    ID of the resource that the Operation is acting on.

  - `status: "pending" or "running" or "done" or 2 more`

    Status of the Operation.

    - `"pending"`

    - `"running"`

    - `"done"`

    - `"failed"`

    - `"unknown"`

  - `type: "create" or "update" or "delete" or "restart"`

    Type of Operation.

    - `"create"`

    - `"update"`

    - `"delete"`

    - `"restart"`

  - `updated_at: string`

    When the Operation was updated.

### Example

```cli
nirvana compute:vms delete \
  --api-key 'My API Key' \
  --vm-id vm_id
```

#### Response

```json
{
  "id": "123e4567-e89b-12d3-a456-426614174000",
  "created_at": "2025-01-01T00:00:00Z",
  "details": {
    "changes": {
      "foo": {
        "from": "string",
        "to": "string"
      }
    }
  },
  "kind": "vm",
  "project_id": "123e4567-e89b-12d3-a456-426614174000",
  "resource_id": "123e4567-e89b-12d3-a456-426614174000",
  "status": "pending",
  "type": "create",
  "updated_at": "2025-01-01T00:00:00Z"
}
```

## List VMs

`$ nirvana compute:vms list`

**get** `/v1/compute/vms`

List all VMs

### Parameters

- `--project-id: string`

  Project ID of resources to request

- `--cursor: optional string`

  Pagination cursor returned by a previous request

- `--limit: optional number`

  Maximum number of items to return

### Returns

- `vm_list: object { items, pagination }`

  - `items: array of VM`

    - `id: string`

      Unique identifier for the VM.

    - `boot_volume_id: string`

      ID of the boot volume attached to the VM.

    - `cpu_config: object { vcpu }`

      CPU configuration for the VM.

      - `vcpu: number`

        Number of virtual CPUs.

    - `created_at: string`

      When the VM was created.

    - `data_volume_ids: array of string`

      IDs of the data volumes attached to the VM.

    - `memory_config: object { size }`

      Memory configuration for the VM.

      - `size: number`

        Size of the memory in GB.

    - `name: string`

      Name of the VM.

    - `private_ip: string`

      Private IP of the VM.

    - `project_id: string`

      Project ID the VM belongs to.

    - `public_ip: string`

      Public IP of the VM.

    - `public_ip_enabled: boolean`

      Whether the public IP is enabled for the VM.

    - `region: "us-sva-2"`

      Region the resource is in.

      - `"us-sva-2"`

    - `status: "pending" or "creating" or "updating" or 4 more`

      Status of the resource.

      - `"pending"`

      - `"creating"`

      - `"updating"`

      - `"ready"`

      - `"deleting"`

      - `"deleted"`

      - `"error"`

    - `subnet_id: string`

      ID of the subnet the VM is in.

    - `tags: array of string`

      Tags to attach to the VM.

    - `updated_at: string`

      When the VM was updated.

    - `vpc_id: string`

      ID of the VPC the VM is in.

    - `vpc_name: string`

      Name of the VPC the VM is in.

    - `instance_type: optional string`

      Instance type name.

  - `pagination: object { next_cursor, previous_cursor, total_count }`

    Pagination response details.

    - `next_cursor: string`

    - `previous_cursor: string`

    - `total_count: number`

### Example

```cli
nirvana compute:vms list \
  --api-key 'My API Key' \
  --project-id project_id
```

#### Response

```json
{
  "items": [
    {
      "id": "123e4567-e89b-12d3-a456-426614174000",
      "boot_volume_id": "123e4567-e89b-12d3-a456-426614174000",
      "cpu_config": {
        "vcpu": 2
      },
      "created_at": "2025-01-01T00:00:00Z",
      "data_volume_ids": [
        "123e4567-e89b-12d3-a456-426614174001",
        "123e4567-e89b-12d3-a456-426614174002"
      ],
      "memory_config": {
        "size": 2
      },
      "name": "my-vm",
      "private_ip": "10.0.0.1",
      "project_id": "123e4567-e89b-12d3-a456-426614174000",
      "public_ip": "123.123.123.123",
      "public_ip_enabled": true,
      "region": "us-sva-2",
      "status": "ready",
      "subnet_id": "123e4567-e89b-12d3-a456-426614174000",
      "tags": [
        "production",
        "ethereum"
      ],
      "updated_at": "2025-01-01T00:00:00Z",
      "vpc_id": "123e4567-e89b-12d3-a456-426614174000",
      "vpc_name": "my-vpc",
      "instance_type": "n1-standard-8"
    }
  ],
  "pagination": {
    "next_cursor": "RhwniMT4B74siYZcPF8TnCdGI1l9rpPvg",
    "previous_cursor": "ARhwnmi1hA7wEbHbMjdYQlOB_ZusP4fYvw",
    "total_count": 125
  }
}
```

## Restart VM

`$ nirvana compute:vms restart`

**post** `/v1/compute/vms/{vm_id}/restart`

Restart a VM

### Parameters

- `--vm-id: string`

  VM ID

### Returns

- `operation: object { id, created_at, details, 6 more }`

  Operation details.

  - `id: string`

    Unique identifier for the Operation.

  - `created_at: string`

    When the Operation was created.

  - `details: object { changes }`

    Structured details about what an operation is changing.

    - `changes: map[OperationFieldDiff]`

      Map of changed field names to their from/to diffs. Keys depend on the parent operation's kind+type.

      - `from: string or number or boolean or array of string`

        Previous value.

        - `union_member_0: string`

        - `union_member_1: number`

        - `union_member_2: boolean`

        - `union_member_3: array of string`

      - `to: string or number or boolean or array of string`

        New value.

        - `union_member_0: string`

        - `union_member_1: number`

        - `union_member_2: boolean`

        - `union_member_3: array of string`

  - `kind: "vm" or "volume" or "vpc" or 3 more`

    Kind of Operation.

    - `"vm"`

    - `"volume"`

    - `"vpc"`

    - `"firewall_rule"`

    - `"nks_cluster"`

    - `"nks_node_pool"`

  - `project_id: string`

    Project ID the Operation belongs to.

  - `resource_id: string`

    ID of the resource that the Operation is acting on.

  - `status: "pending" or "running" or "done" or 2 more`

    Status of the Operation.

    - `"pending"`

    - `"running"`

    - `"done"`

    - `"failed"`

    - `"unknown"`

  - `type: "create" or "update" or "delete" or "restart"`

    Type of Operation.

    - `"create"`

    - `"update"`

    - `"delete"`

    - `"restart"`

  - `updated_at: string`

    When the Operation was updated.

### Example

```cli
nirvana compute:vms restart \
  --api-key 'My API Key' \
  --vm-id vm_id
```

#### Response

```json
{
  "id": "123e4567-e89b-12d3-a456-426614174000",
  "created_at": "2025-01-01T00:00:00Z",
  "details": {
    "changes": {
      "foo": {
        "from": "string",
        "to": "string"
      }
    }
  },
  "kind": "vm",
  "project_id": "123e4567-e89b-12d3-a456-426614174000",
  "resource_id": "123e4567-e89b-12d3-a456-426614174000",
  "status": "pending",
  "type": "create",
  "updated_at": "2025-01-01T00:00:00Z"
}
```

## Domain Types

### CPU Config

- `cpu_config: object { vcpu }`

  CPU configuration for the VM.

  - `vcpu: number`

    Number of virtual CPUs.

### Memory Config

- `memory_config: object { size }`

  Memory configuration for the VM.

  - `size: number`

    Size of the memory in GB.

### OS Image

- `os_image: object { created_at, display_name, name }`

  OS Image details.

  - `created_at: string`

    When the OS Image was created.

  - `display_name: string`

    Display name of the OS Image.

  - `name: string`

    Name of the OS Image.

### SSH Key Request

- `ssh_key_request: object { public_key }`

  Public SSH key configuration for the VM.

  - `public_key: string`

    Public key to and use to access the VM.

### VM

- `vm: object { id, boot_volume_id, cpu_config, 16 more }`

  VM details.

  - `id: string`

    Unique identifier for the VM.

  - `boot_volume_id: string`

    ID of the boot volume attached to the VM.

  - `cpu_config: object { vcpu }`

    CPU configuration for the VM.

    - `vcpu: number`

      Number of virtual CPUs.

  - `created_at: string`

    When the VM was created.

  - `data_volume_ids: array of string`

    IDs of the data volumes attached to the VM.

  - `memory_config: object { size }`

    Memory configuration for the VM.

    - `size: number`

      Size of the memory in GB.

  - `name: string`

    Name of the VM.

  - `private_ip: string`

    Private IP of the VM.

  - `project_id: string`

    Project ID the VM belongs to.

  - `public_ip: string`

    Public IP of the VM.

  - `public_ip_enabled: boolean`

    Whether the public IP is enabled for the VM.

  - `region: "us-sva-2"`

    Region the resource is in.

    - `"us-sva-2"`

  - `status: "pending" or "creating" or "updating" or 4 more`

    Status of the resource.

    - `"pending"`

    - `"creating"`

    - `"updating"`

    - `"ready"`

    - `"deleting"`

    - `"deleted"`

    - `"error"`

  - `subnet_id: string`

    ID of the subnet the VM is in.

  - `tags: array of string`

    Tags to attach to the VM.

  - `updated_at: string`

    When the VM was updated.

  - `vpc_id: string`

    ID of the VPC the VM is in.

  - `vpc_name: string`

    Name of the VPC the VM is in.

  - `instance_type: optional string`

    Instance type name.

### VM List

- `vm_list: object { items, pagination }`

  - `items: array of VM`

    - `id: string`

      Unique identifier for the VM.

    - `boot_volume_id: string`

      ID of the boot volume attached to the VM.

    - `cpu_config: object { vcpu }`

      CPU configuration for the VM.

      - `vcpu: number`

        Number of virtual CPUs.

    - `created_at: string`

      When the VM was created.

    - `data_volume_ids: array of string`

      IDs of the data volumes attached to the VM.

    - `memory_config: object { size }`

      Memory configuration for the VM.

      - `size: number`

        Size of the memory in GB.

    - `name: string`

      Name of the VM.

    - `private_ip: string`

      Private IP of the VM.

    - `project_id: string`

      Project ID the VM belongs to.

    - `public_ip: string`

      Public IP of the VM.

    - `public_ip_enabled: boolean`

      Whether the public IP is enabled for the VM.

    - `region: "us-sva-2"`

      Region the resource is in.

      - `"us-sva-2"`

    - `status: "pending" or "creating" or "updating" or 4 more`

      Status of the resource.

      - `"pending"`

      - `"creating"`

      - `"updating"`

      - `"ready"`

      - `"deleting"`

      - `"deleted"`

      - `"error"`

    - `subnet_id: string`

      ID of the subnet the VM is in.

    - `tags: array of string`

      Tags to attach to the VM.

    - `updated_at: string`

      When the VM was updated.

    - `vpc_id: string`

      ID of the VPC the VM is in.

    - `vpc_name: string`

      Name of the VPC the VM is in.

    - `instance_type: optional string`

      Instance type name.

  - `pagination: object { next_cursor, previous_cursor, total_count }`

    Pagination response details.

    - `next_cursor: string`

    - `previous_cursor: string`

    - `total_count: number`

# Availability

## Check VM Create Availability

`$ nirvana compute:vms:availability create`

**post** `/v1/compute/vms/availability`

Check VM Create Availability

### Parameters

- `--boot-volume: object { size, type, tags }`

  Boot volume for the VM.

- `--instance-type: string`

  Instance type name.

- `--name: string`

  Name of the VM.

- `--os-image-name: string`

  Name of the OS Image to use for the VM.

- `--project-id: string`

  Project ID to create the VM in.

- `--public-ip-enabled: boolean`

  Whether to enable public IP for the VM.

- `--region: "us-sva-2"`

  Region the resource is in.

- `--ssh-key: object { public_key }`

  Public SSH key configuration for the VM.

- `--subnet-id: string`

  ID of the subnet to use for the VM.

- `--data-volume: optional array of object { name, size, type, tags }`

  Data volumes for the VM.

- `--tag: optional array of string`

  Tags to attach to the VM.

### Example

```cli
nirvana compute:vms:availability create \
  --api-key 'My API Key' \
  --boot-volume '{size: 100, type: abs}' \
  --instance-type n1-standard-8 \
  --name my-vm \
  --os-image-name ubuntu-noble-2025-10-01 \
  --project-id 123e4567-e89b-12d3-a456-426614174000 \
  --public-ip-enabled \
  --region us-sva-2 \
  --ssh-key '{public_key: ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDBIASkmwNiLcdlW6927Zjt1Hf7Kw/PpEZ4Zm+wU9wn2}' \
  --subnet-id 123e4567-e89b-12d3-a456-426614174000
```

## Check VM Update Availability

`$ nirvana compute:vms:availability update`

**patch** `/v1/compute/vms/{vm_id}/availability`

Check VM Update Availability

### Parameters

- `--vm-id: string`

  VM ID

- `--instance-type: optional string`

  Instance type name.

- `--name: optional string`

  Name of the VM.

- `--public-ip-enabled: optional boolean`

  Whether to enable public IP for the VM.

- `--tag: optional array of string`

  Tags to attach to the VM.

### Example

```cli
nirvana compute:vms:availability update \
  --api-key 'My API Key' \
  --vm-id vm_id
```

# Volumes

## List VM's Volumes

`$ nirvana compute:vms:volumes list`

**get** `/v1/compute/vms/{vm_id}/volumes`

List VM's Volumes

### Parameters

- `--vm-id: string`

  VM ID

- `--cursor: optional string`

  Pagination cursor returned by a previous request

- `--limit: optional number`

  Maximum number of items to return

### Returns

- `volume_list: object { items, pagination }`

  - `items: array of Volume`

    - `id: string`

      Unique identifier for the Volume.

    - `created_at: string`

      When the Volume was created.

    - `kind: "boot" or "data"`

      Volume kind.

      - `"boot"`

      - `"data"`

    - `name: string`

      Name of the Volume.

    - `project_id: string`

      Project ID the Volume belongs to.

    - `region: "us-sva-2"`

      Region the resource is in.

      - `"us-sva-2"`

    - `size: number`

      Size of the Volume in GB.

    - `status: "pending" or "creating" or "updating" or 4 more`

      Status of the resource.

      - `"pending"`

      - `"creating"`

      - `"updating"`

      - `"ready"`

      - `"deleting"`

      - `"deleted"`

      - `"error"`

    - `tags: array of string`

      Tags to attach to the Volume.

    - `type: "nvme" or "abs"`

      Type of the Volume.

      - `"nvme"`

      - `"abs"`

    - `updated_at: string`

      When the Volume was updated.

    - `vm_id: string`

      ID of the VM the Volume is attached to.

    - `vm_name: string`

      Name of the VM the Volume is attached to.

  - `pagination: object { next_cursor, previous_cursor, total_count }`

    Pagination response details.

    - `next_cursor: string`

    - `previous_cursor: string`

    - `total_count: number`

### Example

```cli
nirvana compute:vms:volumes list \
  --api-key 'My API Key' \
  --vm-id vm_id
```

#### Response

```json
{
  "items": [
    {
      "id": "123e4567-e89b-12d3-a456-426614174000",
      "created_at": "2025-01-01T00:00:00Z",
      "kind": "boot",
      "name": "my-volume",
      "project_id": "123e4567-e89b-12d3-a456-426614174000",
      "region": "us-sva-2",
      "size": 100,
      "status": "ready",
      "tags": [
        "production",
        "ethereum"
      ],
      "type": "abs",
      "updated_at": "2025-01-01T00:00:00Z",
      "vm_id": "123e4567-e89b-12d3-a456-426614174000",
      "vm_name": "my-vm"
    }
  ],
  "pagination": {
    "next_cursor": "RhwniMT4B74siYZcPF8TnCdGI1l9rpPvg",
    "previous_cursor": "ARhwnmi1hA7wEbHbMjdYQlOB_ZusP4fYvw",
    "total_count": 125
  }
}
```

# OS Images

## List OS Images

`$ nirvana compute:vms:os-images list`

**get** `/v1/compute/vms/os_images`

List all OS Images

### Parameters

- `--cursor: optional string`

  Pagination cursor returned by a previous request

- `--limit: optional number`

  Maximum number of items to return

### Returns

- `List-OSImage: object { items, pagination }`

  - `items: array of OSImage`

    - `created_at: string`

      When the OS Image was created.

    - `display_name: string`

      Display name of the OS Image.

    - `name: string`

      Name of the OS Image.

  - `pagination: object { next_cursor, previous_cursor, total_count }`

    Pagination response details.

    - `next_cursor: string`

    - `previous_cursor: string`

    - `total_count: number`

### Example

```cli
nirvana compute:vms:os-images list \
  --api-key 'My API Key'
```

#### Response

```json
{
  "items": [
    {
      "created_at": "2025-01-01T00:00:00Z",
      "display_name": "Ubuntu 24.04 (Noble)",
      "name": "ubuntu-noble-2025-10-01"
    }
  ],
  "pagination": {
    "next_cursor": "RhwniMT4B74siYZcPF8TnCdGI1l9rpPvg",
    "previous_cursor": "ARhwnmi1hA7wEbHbMjdYQlOB_ZusP4fYvw",
    "total_count": 125
  }
}
```
