Set the force redirect method, and currently support HTTP and HTTPS force redirects.

Note Force redirect can be enabled only after the user has uploaded a certificate and the certificate is enabled.

Request parameters

Parameters Type Required Example values Description
Action String Yes SetForceRedirectConfig The name of this interface. Value: SetForceRedirectConfig
DomainName String Yes. Your CDN domain name.
RedirectType String Yes. Off

Force redirect type.  Value:

  • Off
  • Http
  • Https

Return parameters

Parameters Type Example values Description
RequestId String 16A96B9A-F203-4EC5-8E43-CB92E68F4CD8 The ID of the request.


Request example
&Public request parameter
Normal return example
  • JSON format

Exception return example
  • JSON format

        "Message":"The request processing has failed due to some unknown error.",
        "Requestid": "maid"