Configures features for a user.
Operation description
Note
You can call this operation up to 30 times per second per account.
Debugging
Authorization information
The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action
policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:
- Operation: the value that you can use in the Action element to specify the operation on a resource.
- Access level: the access level of each operation. The levels are read, write, and list.
- Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
- The required resource types are displayed in bold characters.
- If the permissions cannot be granted at the resource level,
All Resources
is used in the Resource type column of the operation.
- Condition Key: the condition key that is defined by the cloud service.
- Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
Operation | Access level | Resource type | Condition key | Associated operation |
---|---|---|---|---|
dcdn:SetDcdnUserConfig | Write |
|
| none |
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 the 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