Default Types

Default volume type management

List all default volume types

get

Get a list of all default volume types (microversion 3.62+)

Authorizations
X-Auth-TokenstringRequired

OpenStack authentication token

Responses
get
/v3/default-types
GET /v3/v3/default-types HTTP/1.1
Host: example.com
X-Auth-Token: YOUR_API_KEY
Accept: */*
{
  "default_types": [
    {
      "project_id": "123e4567-e89b-12d3-a456-426614174000",
      "volume_type_id": "123e4567-e89b-12d3-a456-426614174000"
    }
  ]
}

Show default volume type for project

get

Show the default volume type for a project (microversion 3.62+)

Authorizations
X-Auth-TokenstringRequired

OpenStack authentication token

Path parameters
project_idstring · uuidRequired

The UUID of the project

Responses
get
/v3/default-types/{project_id}
GET /v3/v3/default-types/{project_id} HTTP/1.1
Host: example.com
X-Auth-Token: YOUR_API_KEY
Accept: */*
{
  "default_type": {
    "project_id": "123e4567-e89b-12d3-a456-426614174000",
    "volume_type_id": "123e4567-e89b-12d3-a456-426614174000"
  }
}

Set default volume type for project

put

Create or update the default volume type for a project (microversion 3.62+)

Authorizations
X-Auth-TokenstringRequired

OpenStack authentication token

Path parameters
project_idstring · uuidRequired

The UUID of the project

Body
Responses
put
/v3/default-types/{project_id}
PUT /v3/v3/default-types/{project_id} HTTP/1.1
Host: example.com
X-Auth-Token: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 39

{
  "default_type": {
    "volume_type": "text"
  }
}
{
  "default_type": {
    "project_id": "123e4567-e89b-12d3-a456-426614174000",
    "volume_type_id": "123e4567-e89b-12d3-a456-426614174000"
  }
}

Unset default volume type for project

delete

Unset the default volume type for a project (microversion 3.62+)

Authorizations
X-Auth-TokenstringRequired

OpenStack authentication token

Path parameters
project_idstring · uuidRequired

The UUID of the project

Responses
delete
/v3/default-types/{project_id}
DELETE /v3/v3/default-types/{project_id} HTTP/1.1
Host: example.com
X-Auth-Token: YOUR_API_KEY
Accept: */*

No content

Last updated

Was this helpful?