Querying an event stream
Operation description
Updates the billing method, compute unit (CU) resources, and other configurations of an event stream.
Try it now
Test
RAM authorization
Request syntax
POST HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| EventStreamingName |
string |
Yes |
The name of the event stream. |
rocketmq-sync |
| BusinessMode |
string |
Yes |
The billing mode. Valid values are CapacityUnitMode for the CU mode and EventNumMode for the pay-by-event mode. |
CapacityUnitMode |
| MinCapacityUnitCount |
integer |
No |
The minimum number of CUs. |
1 |
| MaxCapacityUnitCount |
integer |
No |
The maximum number of CUs. |
2 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The data returned. |
||
| Message |
string |
The error message returned if the request fails. |
Success |
| RequestId |
string |
The ID of the request. |
34AD682D-5B91-5773-8132-AA38C130**** |
| Code |
string |
The status code returned.
|
Success |
| Success |
boolean |
Indicates whether the request was successful. Valid values: true and false. |
true |
| Data |
boolean |
Indicates whether the configuration was updated. Valid values: true and false. |
true |
Examples
Success response
JSON format
{
"Message": "Success",
"RequestId": "34AD682D-5B91-5773-8132-AA38C130****",
"Code": "Success",
"Success": true,
"Data": true
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 403 | ServiceNotEnable | Service not enable | |
| 404 | EventStreamingNotExisted | the event streaming is not existed. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.