Querying Dedicated Resources
Function
This API is used to query dedicated resources created by a user.
Constraints
This API supports GeminiDB Cassandra instances.
URI
GET https://{Endpoint}/v3/{project_id}/dedicated-resources
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
project_id |
Yes |
String |
Project ID of a tenant in a region. To obtain this value, see Obtaining a Project ID. |
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
offset |
No |
Integer |
Index position. The query starts from the dedicated resource created after the dedicated resource indexed by this parameter in a specified project. If offset is set to N, the resource query starts from the N+1 piece of data.
|
limit |
No |
Integer |
Maximum of dedicated resources to be queried.
|
Request Parameters
None
Response Parameters
Status code: 200
Parameter |
Type |
Description |
---|---|---|
total_count |
Integer |
Total number of records |
resources |
Array of DedicatedResource objects |
Dedicated resource information |
Parameter |
Type |
Description |
---|---|---|
id |
String |
Dedicated resource ID |
resource_name |
String |
Dedicated resource name |
engine_name |
String |
API name. |
availability_zone |
String |
AZ information |
architecture |
String |
Type of dedicated compute hosts. The value can be X86 or ARM. |
capacity |
DedicatedResourceCapacity object |
Capacity of the dedicated resource |
status |
String |
Status of the dedicated resource. The value can be:
|
Example Requests
GET https://gaussdb-nosql.ap-southeast-1.myhuaweicloud.com/v3/375d8d8fad1f43039e23d3b6c0f60a19/dedicated-resources?offset=0&limit=10
Example Responses
Status code: 200
Success
{ "total_count" : 2, "resources" : [ { "id" : "300acc71-eca9-4c6b-9a4e-0d25e20fe54c", "resource_name" : "nosql-dedicated-resource-1", "engine_name" : "cassandra", "availability_zone" : "az1,az2,az3", "architecture" : "X86", "capacity" : { "vcpus" : 192, "ram" : 1536, "volume" : 300000 }, "status" : "NORMAL" }, { "id" : "4c423cd8-551f-4b74-934f-8534e4a9bf2b", "resource_name" : "nosql-dedicated-resource-2", "engine_name" : "cassandra", "availability_zone" : "az1,az2,az3", "architecture" : "X86", "capacity" : { "vcpus" : 192, "ram" : 1536, "volume" : 300000 }, "status" : "BUILDING" } ] }
Status Codes
For details, see Status Codes.
Error Codes
For details, 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