Show Stock¶
Overview¶
This API shows Baremetal Server stock information.
Classification¶
- GET
Synchronous / Asynchronous¶
- Synchronous
Request¶
HTTP Request Method¶
- GET
HTTP Request Path¶
{api_endpoint}/v2/{tenant_id}/stock?flavor_id={flavor_id}&availability_zone={availability_zone}
HTTP Request Header¶
Accept: application/json
Content-Type: application/json
X-Auth-Token: <token>
HTTP Request Body¶
Format¶
This API does not allow request body.
Request Parameter¶
name | style | format | description | required/optional | default value | action for invalid parameter | response code for invalid parameter |
---|---|---|---|---|---|---|---|
flavor_id | query | UUID | UUID of the flavor for search stock. | required | - | Terminate | 400 |
availability_zone | query | String | Name of the AvailabilityZone. If you specified this parameter, search stock from baremetal servers that matching AvailabilityZone and flavor_id. If you omit this parameter, stock search from all baremetal servers that matching flavor_id. | optional | - | Terminate | 400 |
Response¶
Sample Request and Response¶
Sample API Request¶
Request URI¶
https://baremetal-server-jp1-ecl.api.ntt.com/v2/b322a85578de48beba0f92acce57869b/stock?flavors_id=8b59526b-daf5-46db-9c44-e77c0a34bf2c&availability_zone=groupa
HTTP Request Header¶
GET /v2/b322a85578de48beba0f92acce57869b/stock?flavors_id=8b59526b-daf5-46db-9c44-e77c0a34bf2c&availability_zone=groupa HTTP/1.1
User-Agent: curl/7.35.0
Host: 192.168.150.51:8774
Accept: application/json
Content-Type: application/json
X-Auth-Token: 62d528dc0cca4827b0ed465efe1c2588
HTTP Request Body¶
- none