All Products
Search
Document Center

Dynamic Content Delivery Network:SetDcdnUserConfig

Last Updated:Apr 11, 2024

Configures features for a user.

Operation description

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

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

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.
OperationAccess levelResource typeCondition keyAssociated operation
dcdn:SetDcdnUserConfigWrite
  • All Resources
    *
    none
none

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 the 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