Types

Volume type management

List volume types

get

Lists volume types

Authorizations
X-Auth-TokenstringRequired

OpenStack authentication token

Query parameters
is_publicbooleanOptional

Filter the volume type by public visibility

sortstringOptional

Comma-separated list of sort keys and optional sort directions

sort_keystringOptional

Sorts by an attribute

sort_dirstring · enumOptional

Sorts by direction (asc or desc)

Possible values:
limitinteger · min: 1Optional

Requests a page size of items

offsetintegerOptional

Used in conjunction with limit to return items starting from the offset position

markerstringOptional

The ID of the last-seen item

Responses
200

OK

application/json
get
/v3/types
GET /v3/v3/types HTTP/1.1
Host: example.com
X-Auth-Token: YOUR_API_KEY
Accept: */*
200

OK

{
  "volume_types": [
    {
      "id": "123e4567-e89b-12d3-a456-426614174000",
      "name": "text",
      "description": "text",
      "is_public": true,
      "os-volume-type-access:is_public": true,
      "extra_specs": {
        "ANY_ADDITIONAL_PROPERTY": "text"
      },
      "qos_specs_id": "123e4567-e89b-12d3-a456-426614174000"
    }
  ]
}

Create volume type

post

Creates a volume type

Authorizations
X-Auth-TokenstringRequired

OpenStack authentication token

Body
Responses
200

OK

application/json
post
/v3/types
POST /v3/v3/types HTTP/1.1
Host: example.com
X-Auth-Token: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 140

{
  "volume_type": {
    "name": "text",
    "description": "text",
    "os-volume-type-access:is_public": true,
    "extra_specs": {
      "ANY_ADDITIONAL_PROPERTY": "text"
    }
  }
}
200

OK

{
  "volume_type": {
    "id": "123e4567-e89b-12d3-a456-426614174000",
    "name": "text",
    "description": "text",
    "is_public": true,
    "os-volume-type-access:is_public": true,
    "extra_specs": {
      "ANY_ADDITIONAL_PROPERTY": "text"
    },
    "qos_specs_id": "123e4567-e89b-12d3-a456-426614174000"
  }
}

Show default volume type

get

Shows details for the default volume type

Authorizations
X-Auth-TokenstringRequired

OpenStack authentication token

Responses
200

OK

application/json
get
/v3/types/default
GET /v3/v3/types/default HTTP/1.1
Host: example.com
X-Auth-Token: YOUR_API_KEY
Accept: */*
{
  "volume_type": {
    "id": "123e4567-e89b-12d3-a456-426614174000",
    "name": "text",
    "description": "text",
    "is_public": true,
    "os-volume-type-access:is_public": true,
    "extra_specs": {
      "ANY_ADDITIONAL_PROPERTY": "text"
    },
    "qos_specs_id": "123e4567-e89b-12d3-a456-426614174000"
  }
}

Show volume type details

get

Shows details for a volume type

Authorizations
X-Auth-TokenstringRequired

OpenStack authentication token

Path parameters
volume_type_idstring · uuidRequired

The UUID for an existing volume type

Responses
200

OK

application/json
get
/v3/types/{volume_type_id}
GET /v3/v3/types/{volume_type_id} HTTP/1.1
Host: example.com
X-Auth-Token: YOUR_API_KEY
Accept: */*
200

OK

{
  "volume_type": {
    "id": "123e4567-e89b-12d3-a456-426614174000",
    "name": "text",
    "description": "text",
    "is_public": true,
    "os-volume-type-access:is_public": true,
    "extra_specs": {
      "ANY_ADDITIONAL_PROPERTY": "text"
    },
    "qos_specs_id": "123e4567-e89b-12d3-a456-426614174000"
  }
}

Update volume type

put

Updates a volume type

Authorizations
X-Auth-TokenstringRequired

OpenStack authentication token

Path parameters
volume_type_idstring · uuidRequired

The UUID for an existing volume type

Body
Responses
200

OK

application/json
put
/v3/types/{volume_type_id}
PUT /v3/v3/types/{volume_type_id} HTTP/1.1
Host: example.com
X-Auth-Token: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 69

{
  "volume_type": {
    "name": "text",
    "description": "text",
    "is_public": true
  }
}
200

OK

{
  "volume_type": {
    "id": "123e4567-e89b-12d3-a456-426614174000",
    "name": "text",
    "description": "text",
    "is_public": true,
    "os-volume-type-access:is_public": true,
    "extra_specs": {
      "ANY_ADDITIONAL_PROPERTY": "text"
    },
    "qos_specs_id": "123e4567-e89b-12d3-a456-426614174000"
  }
}

Delete volume type

delete

Deletes a volume type

Authorizations
X-Auth-TokenstringRequired

OpenStack authentication token

Path parameters
volume_type_idstring · uuidRequired

The UUID for an existing volume type

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

Request is accepted, but processing may take some time

No content

Show volume type extra specs

get

Shows all extra specifications assigned to a volume type

Authorizations
X-Auth-TokenstringRequired

OpenStack authentication token

Path parameters
volume_type_idstring · uuidRequired

The UUID for an existing volume type

Responses
200

OK

application/json
get
/v3/types/{volume_type_id}/extra_specs
GET /v3/v3/types/{volume_type_id}/extra_specs HTTP/1.1
Host: example.com
X-Auth-Token: YOUR_API_KEY
Accept: */*
200

OK

{
  "extra_specs": {
    "ANY_ADDITIONAL_PROPERTY": "text"
  }
}

Create or update volume type extra specs

post

Adds new extra specifications to a volume type, or updates existing ones

Authorizations
X-Auth-TokenstringRequired

OpenStack authentication token

Path parameters
volume_type_idstring · uuidRequired

The UUID for an existing volume type

Body
Responses
200

OK

application/json
post
/v3/types/{volume_type_id}/extra_specs
POST /v3/v3/types/{volume_type_id}/extra_specs HTTP/1.1
Host: example.com
X-Auth-Token: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 50

{
  "extra_specs": {
    "ANY_ADDITIONAL_PROPERTY": "text"
  }
}
200

OK

{
  "extra_specs": {
    "ANY_ADDITIONAL_PROPERTY": "text"
  }
}

Show volume type extra spec

get

Shows the specific extra specification assigned to a volume type

Authorizations
X-Auth-TokenstringRequired

OpenStack authentication token

Path parameters
volume_type_idstring · uuidRequired

The UUID for an existing volume type

keystringRequired

The key name of the extra spec for a volume type

Responses
200

OK

application/json
Responseobject
get
/v3/types/{volume_type_id}/extra_specs/{key}
GET /v3/v3/types/{volume_type_id}/extra_specs/{key} HTTP/1.1
Host: example.com
X-Auth-Token: YOUR_API_KEY
Accept: */*
200

OK

{}

Update volume type extra spec

put

Update the specific extra specification assigned to a volume type

Authorizations
X-Auth-TokenstringRequired

OpenStack authentication token

Path parameters
volume_type_idstring · uuidRequired

The UUID for an existing volume type

keystringRequired

The key name of the extra spec for a volume type

Body
objectOptional
Responses
200

OK

application/json
Responseobject
put
/v3/types/{volume_type_id}/extra_specs/{key}
PUT /v3/v3/types/{volume_type_id}/extra_specs/{key} HTTP/1.1
Host: example.com
X-Auth-Token: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 2

{}
200

OK

{}

Delete volume type extra spec

delete

Deletes the specific extra specification assigned to a volume type

Authorizations
X-Auth-TokenstringRequired

OpenStack authentication token

Path parameters
volume_type_idstring · uuidRequired

The UUID for an existing volume type

keystringRequired

The key name of the extra spec for a volume type

Responses
delete
/v3/types/{volume_type_id}/extra_specs/{key}
DELETE /v3/v3/types/{volume_type_id}/extra_specs/{key} HTTP/1.1
Host: example.com
X-Auth-Token: YOUR_API_KEY
Accept: */*
202

Request is accepted, but processing may take some time

No content

Add or remove volume type access

post

Adds or removes private volume type access to/from a project

Authorizations
X-Auth-TokenstringRequired

OpenStack authentication token

Path parameters
volume_typestring · uuidRequired

The UUID for an existing volume type

Body
one ofOptional
or
Responses
post
/v3/types/{volume_type}/action
POST /v3/v3/types/{volume_type}/action HTTP/1.1
Host: example.com
X-Auth-Token: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 39

{
  "addProjectAccess": {
    "project": "text"
  }
}
202

Request is accepted, but processing may take some time

No content

List volume type access

get

Lists project IDs that have access to private volume type

Authorizations
X-Auth-TokenstringRequired

OpenStack authentication token

Path parameters
volume_typestring · uuidRequired

The UUID for an existing volume type

Responses
200

OK

application/json
get
/v3/types/{volume_type}/os-volume-type-access
GET /v3/v3/types/{volume_type}/os-volume-type-access HTTP/1.1
Host: example.com
X-Auth-Token: YOUR_API_KEY
Accept: */*
200

OK

{
  "volume_type_access": [
    {
      "project_id": "123e4567-e89b-12d3-a456-426614174000",
      "volume_type_id": "123e4567-e89b-12d3-a456-426614174000"
    }
  ]
}

Last updated

Was this helpful?