All Documents
Current Document

Content is empty

If you don't find the content you expect, please try another search term

Documentation

StartStopCdnDomain

Last updated:2021-03-17 10:53:35

StartStopCdnDomain

Description

You can call this operation to enable or disable a domain name.

  • After you enable an offline domain name, the status of the domain name changes to online.
  • After you disable an online domain name, the status of the domain name changes to offline.

Notes:

  • A domain name of an overdue account or an invalid domain name cannot be enabled.
  • After a domain name is disabled, related configurations are retained, but the domain name is out of service.
  • A domain name in the icp_check_failed, icp_checking, or configuring state cannot be disabled. You can disable it after the review or configuration is complete.

Request syntax

The API request contains the specified directory /2016-09-01/domain/StartStopCdnDomain, common request headers, and operation-specific request parameters. For more information, see the sample request.

Request parameters

Parameter Required Type Description
ActionType Yes String The type of the operation. Valid values: start and stop.
DomainId Yes String The ID of the domain name to be enabled or disabled. You can specify only one ID at a time.

Examples

Sample request

GET method:

GET /2016-09-01/domain/StartStopCdnDomain?ActionType=stop&DomainId=xxxxxx 1.1
Host: cdn.api.ksyun.com
X-Amz-Date: date
Authorization:authorization string
x-action: StartStopCdnDomain
x-version: 2016-09-01

POST method:

POST /2016-09-01/domain/StartStopCdnDomain 1.1
Host: cdn.api.ksyun.com
X-Amz-Date: date
Authorization:authorization string
x-action: StartStopCdnDomain
x-version: 2016-09-01
Content-Type: application/x-www-form-urlencoded

ActionType=stop&DomainId=xxxxxx
On this page
Pure ModeNormal Mode

Pure Mode

Click to preview the document content in full screen
Feedback