Querying vCPUs of a Kafka Flavor
Function
This API is used to query the number of vCPUs of a Kafka flavor.
Calling Method
For details, see Calling APIs.
URI
GET /v2/kafka/products/cores
Request Parameters
None
Response Parameters
Status code: 200
|
Parameter |
Type |
Description |
|---|---|---|
|
core_num |
Integer |
Definition Number of cores. Range N/A |
|
total_extend_storage_space |
Integer |
Definition Estimated storage space. If the entered broker_num is less than or equal to the actual value of the current instance, the storage space of the current instance is displayed. Otherwise, the estimated storage space of the instance with the entered broker_num is displayed. Range N/A |
Example Requests
GET https://{endpoint}/v2/kafka/products/cores?instance_id={instance_id}&product_id={product_id}&broker_num={broker_num}
Example Responses
Status code: 200
Successful
{
"core_num" : 100,
"total_extend_storage_space" : 300
}
Status Codes
|
Status Code |
Description |
|---|---|
|
200 |
Successful |
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.