Checking StarRocks Resources
Function
This API is used to check StarRocks resources. Before calling this API:
- Learn how to authorize and authenticate it.
- Obtain the required region and endpoint.
URI
POST /v3/{project_id}/starrocks/resource-check
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. |
Request Parameters
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
X-Auth-Token |
Yes |
String |
User token. To obtain this value, call the IAM API for obtaining a user token. The value of X-Subject-Token in the response header is the token value. |
Content-Type |
Yes |
String |
Content type. Value: application/json |
X-Language |
No |
String |
Request language type. The default value is en-us. Values:
|
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
action |
Yes |
String |
Verification type. Only instance creation can be verified. Enumerated value: createInstance |
resource |
Yes |
resource object |
Resource information. |
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
enterprise_project_id |
Yes |
String |
Enterprise project ID. |
instance_num |
Yes |
Integer |
Number of instances. |
mode |
Yes |
String |
Instance deployment mode. Enumerated values:
|
availability_zone_mode |
Yes |
String |
AZ type. Currently, only single AZ is supported. |
fe_node_num |
Yes |
Integer |
Number of frontend nodes. |
be_node_num |
Yes |
Integer |
Number of backend nodes. |
fe_flavor_ref |
Yes |
String |
Specification code of the frontend node. |
be_flavor_ref |
Yes |
String |
Specification code of the backend node. |
availability_zone |
No |
String |
AZ code. This parameter is optional. The AZ code correctness is verified. |
subnet_id |
Yes |
String |
Subnet ID. The HTAP instance subnet is also the GaussDB(for MySQL) instance subnet. |
Response Parameters
Status code: 200
Parameter |
Type |
Description |
---|---|---|
result |
Boolean |
Check result. |
Status code: 400
Parameter |
Type |
Description |
---|---|---|
error_code |
String |
Error code. |
error_msg |
String |
Error message. |
Status code: 500
Parameter |
Type |
Description |
---|---|---|
error_code |
String |
Error code. |
error_msg |
String |
Error message. |
Example Request
Checking StarRocks instance resources
POST https://{endpoint}/v3/8f26bcbd59e84e1d9e0569c32545cee9/starrocks/resource-check
Example Response
Status code: 200
Success.
{ "result" : true }
Status Code
For details, see Status Codes.
Error Code
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