Querying Instance Resource Specifications
Function
This API is used to obtain instance resource specifications. Pagination query is supported. You can specify project_id and instance_type to obtain resource specifications of a certain type of instances in a specific project. You can use this API during instance creation or configuration modification.
Calling Method
For details, see Calling APIs.
URI
GET /v1/{project_id}/instances/specifications
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
project_id |
Yes |
String |
Project ID, which is used to specify the project scope to be queried. |
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
instance_type |
Yes |
String |
Instance type. Currently, only the ADG type is supported. |
|
limit |
No |
Integer |
Number of records returned on each page. The default value is 10. |
|
offset |
No |
Integer |
Offset of the returned records. The default value is 0. |
Request Parameters
None
Response Parameters
Status code: 200
|
Parameter |
Type |
Description |
|---|---|---|
|
count |
Long |
Total number of resource specifications. |
|
items |
Array of ResourceSpecification objects |
List of resource specifications. |
Example Requests
None
Example Responses
None
Status Codes
|
Status Code |
Description |
|---|---|
|
200 |
OK |
|
401 |
Unauthorized. The request requires identity authentication. |
|
403 |
Access denied. Unauthorized user. |
|
404 |
The requested resource does not exist. |
Error Codes
See Error Codes.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot