Configures features for a user.
Operation description
Note
You can call this operation up to 30 times per second per account.
Debugging
Authorization information
There is currently no authorization information disclosed in the API.
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
FunctionId | integer | Yes | The ID of the feature. | 6 |
Configs | string | Yes | The configuration parameters of the feature. | \"argId\":12,\"argValue\":\"on\" |
The following table describes the IDs of the features and the configuration parameters of the features.
FunctionID | Feature | Configuration parameter |
---|---|---|
6 | websocket: WebSocket | enabled (12): specifies whether to enable the feature. Valid values: on and off. |
16 | domain_business_control: domain configuration | allow_function (22): specifies whether features such as rate limiting, region blacklisting, and precise access control are available to users. Valid values: on and off. |
23 | ddos: DDoS mitigation | rdomestic (42): specifies whether DDoS mitigation is enabled in the Chinese mainland. Valid values: on and off. overseas (43): specifies whether DDoS mitigation is enabled in Hong Kong (China), Macao (China), Taiwan (China), and regions outside China. Valid values: on and off. |
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "F8AA0364-0FDB-4AD5-AC74-D69FAB8924ED"
}
Error codes
HTTP status code | Error code | Error message | Description |
---|---|---|---|
400 | InvalidFunctions.Malformed | The specified Functions is invalid. | The specified configuration is invalid. |
400 | InvalidArgValue.Malformed | The specified ArgValue is invalid. | The value specified for the ArgValue parameter is invalid. |
400 | Invalid%s.ValueNotSupported | [%s] is not supported. | The specified value is not supported. |
400 | Invalid%s.Malformed | The specified ArgValue [%s] is invalid. | The value specified for the ArgValue parameter is invalid. |
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|
No change history