All Documents
Current Document

Content is empty

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

Documentation

Set log service interface

Last updated:2024-03-28 14:41:31

SetDomainLogService

Description

You can call this operation to enable or disable the log service of an accelerated domain name.

  • Batch domain name query is supported. Multiple domain names are separated by commas (half width)
  • Log service can be enabled or disabled by domain dimension

Note:

  • The interface cannot be called normally to enable the log service of accelerating domain name, if the account corresponding to the domain name is in arrears, or the domain name is in an illegal state (being audited, failed or disabled).

Request syntax

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

Request parameters

Parameter Required Type Description
ActionType Yes String Type: start: enable; Stop: disable
DomainIds Yes String Domain name IDs that need to be enabled or disabled for the log service. Batch domain names can be enabled or disabled. Multiple domain names are separated by commas (half width)
Granularity Yes String Log storage granularity type: 60: granular storage by hour; 1440: granular storage by day

Examples

Sample request

GET method:

GET /2016-09-01/log/GetDomainLogServiceStatus?ActionType=start?DomainIds=2D08M8V
Host: cdn.api.ksyun.com
X-Amz-Date: date
Authorization:authorization string
x-action: GetDomainLogServiceStatus
x-version: 2016-09-01

POST method:

POST /2016-09-01/log/GetDomainLogServiceStatus
Host: cdn.api.ksyun.com
X-Amz-Date: date
Authorization:authorization string
x-action: GetDomainLogServiceStatus
x-version: 2016-09-01
Content-Type: application/json
{
    "DomainIds": "2D08M8V",
    "ActionType":"start"
}

Sample response

{ "Datas": [ ] }

On this page
Pure ModeNormal Mode

Pure Mode

Click to preview the document content in full screen
Feedback