You can call this operation to enable or disable the illicit content moderation feature for a CDN domain.

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 SetDomainGreenManagerConfig

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

DomainName String Yes xxx

The name of the CDN domain to configure illicit content moderation for.

Enable String Yes on

Specifies whether to enable illicit content moderation. Valid values: on and off.

Response parameters

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

The ID of the request.

Examples

Sample requests

http://cdn.aliyuncs.com/?Action=SetDomainGreenManagerConfig
&DomainName=xxx
&Enable=on
&<Common request parameters>

Sample success responses

XML format

<SetDomainGreenManagerConfigResponse>
      <RequestId>AED00EC1-32A8-4D48-BEB9-BD782AF3C6BD</RequestId>
</SetDomainGreenManagerConfigResponse>

JSON format

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

Error codes

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