All Products
Search
Document Center

Edge Security Acceleration:SetDcdnUserConfig

Last Updated:Oct 17, 2024

Configures features for a user.

Operation description

Note You can call this operation up to 30 times per second per account.

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
FunctionIdintegerYes

The ID of the feature.

6
ConfigsstringYes

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.

FunctionIDFeatureConfiguration parameter
6websocket: WebSocketenabled (12): specifies whether to enable the feature. Valid values: on and off.
16domain_business_control: domain configurationallow_function (22): specifies whether features such as rate limiting, region blacklisting, and precise access control are available to users. Valid values: on and off.
23ddos: DDoS mitigationrdomestic (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

ParameterTypeDescriptionExample
object
RequestIdstring

The ID of the request.

F8AA0364-0FDB-4AD5-AC74-D69FAB8924ED

Examples

Sample success responses

JSONformat

{
  "RequestId": "F8AA0364-0FDB-4AD5-AC74-D69FAB8924ED"
}

Error codes

HTTP status codeError codeError messageDescription
400InvalidFunctions.MalformedThe specified Functions is invalid.The specified configuration is invalid.
400InvalidArgValue.MalformedThe specified ArgValue is invalid.The value specified for the ArgValue parameter is invalid.
400Invalid%s.ValueNotSupported[%s] is not supported.The specified value is not supported.
400Invalid%s.MalformedThe 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 timeSummary of changesOperation
No change history