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 |
Explanation: Project ID of a tenant in a region. To obtain this value, see Obtaining a Project ID. Constraints: N/A Values: N/A Default value: N/A |
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
offset |
No |
Integer |
Explanation: Index offset. The query starts from the next dedicated resource creation time indexed by this parameter under a specified project. If offset is set to N, the resource query starts from the N+1 piece of data. Constraints: The value must be greater than or equal to 0. Values: N/A Default value: If this parameter is not transferred, offset is set to 0 by default, which indicates that the query starts from the latest created dedicated resource. |
limit |
No |
Integer |
Explanation: Maximum dedicated resources to be queried Constraints: N/A Values: 1–100 Default value: If this parameter is not transferred, the first 100 instances are queried by default. |
Request Parameters
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
x-auth-token |
Yes |
String |
Explanation: User token To obtain this value, call the IAM API for obtaining a user token. Constraints: N/A Values: N/A Default value: N/A |
Response Parameters
Status code: 200
Parameter |
Type |
Description |
---|---|---|
total_count |
Integer |
Explanation: Total number of records Values: N/A |
resources |
Array of DedicatedResource objects |
Explanation: Dedicated resource information Values: N/A |
Parameter |
Type |
Description |
---|---|---|
id |
String |
Explanation: Dedicated resource ID Values: N/A |
resource_name |
String |
Explanation: Dedicated resource name Values: N/A |
engine_name |
String |
Explanation: API name Values: N/A |
availability_zone |
String |
Explanation: AZ information Values: N/A |
architecture |
String |
Explanation: Type of the compute host in the dedicated resource Values: x86: x86 ARM: Kunpeng |
capacity |
DedicatedResourceCapacity object |
Explanation: Capacity of a dedicated resource Values: N/A |
status |
String |
Explanation: Status of a dedicated resource Values:
|
Example Request
GET https://gaussdb-nosql.ap-southeast-1.myhuaweicloud.com/v3/375d8d8fad1f43039e23d3b6c0f60a19/dedicated-resources?offset=0&limit=10
Example Response
Status code: 200
Successful request
{ "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