Updated on 2025-11-19 GMT+08:00

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.

Authorization Information

Each account has all the permissions required to call all APIs, but IAM users must be assigned the required permissions.

  • If you are using role/policy-based authorization, see Permissions Policies and Supported Actions for details on the required permissions.
  • If you are using identity policy-based authorization, no identity policy-based permission required for calling this API.

URI

GET /v2/kafka/products/cores

Table 1 Query Parameters

Parameter

Mandatory

Type

Description

instance_id

Yes

String

Instance ID.

product_id

Yes

String

Product ID.

broker_num

Yes

String

Definition

Broker quantity.

Constraints

N/A

Range

  • For kafka.2u4g.cluster.small instances, the number range is 3–30.

  • For kafka.2u4g.cluster instances, the number range is 3–30.

  • For kafka.4u8g.cluster instances, the number range is 3–30.

  • For kafka.8u16g.cluster instances, the number range is 3–50.

  • For kafka.12u24g.cluster instances, the number range is 3–50.

  • For kafka.16u32g.cluster instances, the number range is 3–50.

Default Value

N/A

Request Parameters

None

Response Parameters

Status code: 200

Table 2 Response body parameters

Parameter

Type

Description

core_num

Integer

Number of vCPUs.

Example Requests

GET https://{endpoint}/v2/kafka/products/cores

Example Responses

Status code: 200

Successful

{
  "core_num" : 100
}

Status Codes

Status Code

Description

200

Successful

Error Codes

See Error Codes.