Method | URI | Description |
---|---|---|
POST | /v2/{tenant_id}/flavors/{flavor_id}/action | Gives a specified tenant access to the specified private flavor. |
Normal response codes: 200
This table shows the URI parameters for the add access to private flavor request:
Name | Type | Description |
---|---|---|
| String | The ID for the tenant or account in a multi-tenancy cloud. |
| Uuid | The ID of the flavor of interest to you. |
Example 3.57. Add access to private flavor: JSON request
{ "addTenantAccess": { "tenant": "fake_tenant" } }
Example 3.58. Add access to private flavor: XML request
<?xml version="1.0" encoding="UTF-8"?> <addTenantAccess> <tenant>fake_tenant</tenant> </addTenantAccess>
This operation does not require a request body.
Example 3.59. Add access to private flavor: JSON response
{ "flavor_access": [ { "flavor_id": "10", "tenant_id": "fake_tenant" }, { "flavor_id": "10", "tenant_id": "openstack" } ] }
Example 3.60. Add access to private flavor: XML response
<?xml version='1.0' encoding='UTF-8'?> <flavor_access> <access tenant_id="fake_tenant" flavor_id="10"/> <access tenant_id="openstack" flavor_id="10"/> </flavor_access>
This operation does not return a response body.