Increasing Instance Specifications
Function
This API is used to modify instance specifications. Currently, this API can be only used to increase the specifications of pay-per-use instances.
Calling Method
For details, see Calling APIs.
URI
POST /v2/{project_id}/kafka/instances/{instance_id}/extend
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
project_id |
Yes |
String |
Project ID. For details about how to obtain it, see Obtaining a Project ID. |
|
instance_id |
Yes |
String |
Instance ID. |
Request Parameters
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
oper_type |
Yes |
String |
Change type. Value range:
|
|
new_storage_space |
No |
Integer |
New storage space. Note that the disk capacity can only be set to an integer multiple of 100. Instance storage space = Number of brokers × Storage space of each broker. This parameter is valid and mandatory when oper_type is set to storage or horizontal.
|
|
new_broker_num |
No |
Integer |
This parameter is valid only when oper_type is set to horizontal. Range: A maximum of 50 brokers are supported. |
|
new_product_id |
No |
String |
New product ID for scale-up. This parameter is valid and mandatory when oper_type is set to vertical. Obtain the product ID from Querying Product Specifications List. |
|
publicip_id |
No |
String |
ID of the EIP bound to the instance. To obtain the EIP ID, call the API for querying the EIP list by referring to Elastic IP API Reference. Use commas (,) to separate multiple EIP IDs. This parameter is mandatory when oper_type is set to horizontal. |
|
tenant_ips |
No |
Array of strings |
Specified IPv4 private IP addresses. The number of specified IP addresses must be less than or equal to the number of new brokers. If the number of specified IP addresses is less than the number of brokers, the unspecified brokers are randomly assigned private IP addresses. |
|
second_tenant_subnet_id |
No |
String |
New brokers use the standby subnet ID in instance expansion. This value is transferred when a standby subnet is used in instance expansion. Contact customer service to use the value. |
Response Parameters
Status code: 200
|
Parameter |
Type |
Description |
|---|---|---|
|
job_id |
String |
ID of the specification modification task. |
Example Requests
-
Expanding the storage space (pay-per-use)
POST https://{endpoint}/v2/{engine}/{project_id}/instances/{instance_id}/extend { "oper_type" : "storage", "new_storage_space" : 600 } -
Adding brokers (pay-per-use)
POST https://{endpoint}/v2/{engine}/{project_id}/instances/{instance_id}/extend { "oper_type" : "horizontal", "new_storage_space" : 1600, "new_broker_num" : 4, "tenant_ips" : [ "127.xx.xx.x", "127.xx.xx.x", "127.xx.xx.x" ] } -
Increasing the broker flavor (pay-per-use)
POST https://{endpoint}/v2/{engine}/{project_id}/instances/{instance_id}/extend { "oper_type" : "vertical", "new_product_id" : "c6.4u8g.cluster" }
Example Responses
Status code: 200
Instance specifications increased.
{
"job_id" : "93b94287-728d-4bb1-a158-cb66cb0854e7"
}
Status Codes
|
Status Code |
Description |
|---|---|
|
200 |
Instance specifications increased. |
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.