3.8.2. Create flavor extra specs

 
MethodURIDescription
POST/v2/{tenant_id}/flavors/{flavor_id}/os-extra_specs

Creates extra-specs or keys for the specified flavor.

Normal response codes: 200

 3.8.2.1. Request

This table shows the URI parameters for the create flavor extra specs request:

NameTypeDescription

{tenant_id}

​String

The ID for the tenant or account in a multi-tenancy cloud.

{flavor_id}

​String

The ID of the flavor of interest to you.

 

Example 3.71. Create flavor extra specs: JSON request

{
    "extra_specs": {
        "key1": "value1",
        "key2": "value2"
    }
}

 

Example 3.72. Create flavor extra specs: XML request

<?xml version="1.0" encoding="UTF-8" ?>
<extra_specs>
    <key1>value1</key1>
    <key2>value2</key2>
</extra_specs>

This operation does not require a request body.

 3.8.2.2. Response

 

Example 3.73. Create flavor extra specs: JSON response

{
    "extra_specs": {
        "key1": "value1",
        "key2": "value2"
    }
}

 

Example 3.74. Create flavor extra specs: XML response

<?xml version='1.0' encoding='UTF-8'?>
<extra_specs>
  <key2>value2</key2>
  <key1>value1</key1>
</extra_specs>

This operation does not return a response body.

Questions? Discuss on ask.openstack.org
Found an error? Report a bug against this page


loading table of contents...