You can call this operation to configure parameter filtering for a CDN domain by removing specific parameters from URLs.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes SetRemoveQueryStringConfig

The operation that you want to perform. Set the value to SetRemoveQueryStringConfig.

DomainName String Yes www.macaron.org.cn

The name of the CDN domain to configure parameter filtering for.

AliRemoveArgs String Yes time

The parameter to be removed. You can specify multiple parameters and separate them with spaces. The remaining parameters are used as the URL parameters in the hashkey.

KeepOssArgs String No off

Specifies whether to retain all origin parameters. Valid values:

  • on: retains all origin parameters.
  • off: disables this function.

Response parameters

Parameter Type Example Description
RequestId String 04F0F334-1335-436C-A1D7-6C044FE73368

The ID of the request.

Examples

Sample requests

http(s)://cdn.aliyuncs.com? Action=SetRemoveQueryStringConfig
&DomainName=www.macaron.org.cn
&AliRemoveArgs=time
&<Common request parameters>

Sample success responses

XML format

<SetRemoveQueryStringConfigResponse>
	  <RequestId>04F0F334-1335-436C-A1D7-6C044FE73368</RequestId>
</SetRemoveQueryStringConfigResponse>

JSON format

{
	"RequestId":"04F0F334-1335-436C-A1D7-6C044FE73368"
}

Error codes

HTTP status code Error code Error message Description
400 MissingParameter The input parameter aliRemoveArgs that is mandatory for processing this request is not supplied. The error message returned because the AliRemoveArgs parameter is not specified.
400 InvalidKeepOssArgs.ValueNotSupported The specified value of parameter KeepOssArgs is not supported. The error message returned because the specified KeepOssArgs parameter is not supported.

For more information about error codes, visit API Error Center.