Modifying RocketMQ Configurations
Function
This API is used to modify RocketMQ configurations.
URI
PUT /v2/{project_id}/rocketmq/instances/{instance_id}/configs
Parameter | Mandatory | Type | Description |
---|---|---|---|
project_id | Yes | String | Project ID. For details, see Obtaining a Project ID. |
instance_id | Yes | String | Instance ID. |
Request Parameters
Parameter | Mandatory | Type | Description |
---|---|---|---|
rocketmq_configs | No | Array of RocketMQConfigReq objects | RocketMQ configuration. |
Parameter | Mandatory | Type | Description |
---|---|---|---|
name | No | String | RocketMQ configuration name. |
value | No | String | RocketMQ configuration target value. |
Response Parameters
None
Example Requests
Modifying RocketMQ configurations with file retention period changed to 72 hours.
PUT https://{endpoint}/v2/{project_id}/rocketmq/instances/{instance_id}/configs{"rocketmq_configs" : [ {"name" : "fileReservedTime","value" : 72} ]}
Example Responses
None
Status Codes
Status Code | Description |
---|---|
204 | Successful. |
Error Codes
See Error Codes.
Parent topic: Managing Parameters
- URI