Found 0 result in total

Content is empty
If you don't find the content you expect, please try another search term
Content Delivery Network (CDN)
API Documentation
Domain Detailed Configuration
SetForceRedirectConfig
Last updated:2021-03-17 11:07:50
You can call this operation to configure forcible redirection for a domain name.
Note:
Forcible redirection is disabled by default after a domain name is added.
The API request contains the specified directory /2016-09-01/domain/SetForceRedirectConfig, common request headers, and operation-specific request parameters. For more information, see the sample request.
| Header | Required | Type | Description |
|---|---|---|---|
| X-Version | Yes | String | The version number. Set the value to 2016-09-01. |
| X-Action | Yes | String | The operation that you want to perform. Set the value to SetForceRedirectConfig. |
| Parameter | Required | Type | Description |
|---|---|---|---|
| DomainId | Yes | String | The ID of the domain name. |
| RedirectType | Yes | String | The type of forcible redirection. Valid values: off and https (redirection from HTTP to HTTPS). Default value: off. A certificate must be configured for the domain name before you set the RedirectType parameter to https. |
Sample request
GET method:
GET /2016-09-01/domain/SetForceRedirectConfig?DomainId=2D08M8V&RedirectType=off
Host: cdn.api.ksyun.com
X-Amz-Date: date
Authorization:authorization string
x-action: SetForceRedirectConfig
x-version: 2016-09-01
POST method:
POST /2016-09-01/domain/SetForceRedirectConfig
Host: cdn.api.ksyun.com
X-Amz-Date: date
Authorization:authorization string
x-action: SetForceRedirectConfig
x-version: 2016-09-01
Content-Type: application/json
{
"DomainId":"2D08M8V",
"RedirectType":"off"
}
Sample response
Pure Mode