All Documents
Current Document

Content is empty

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

Documentation

Query log service status

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

GetDomainLogServiceStatus

Description

You can call this operation to obtain the domain name log service status.

  • Batch domain name query is supported. Multiple domain names are separated by commas (half width).

Request syntax

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

Request parameters

Parameter Required Type Description
DomainIds Yes String You need to query the domain name ID of the log service. Batch domain name query is supported. Multiple domain names are separated by commas (half width)

Response parameters

Parameter Type Description
Datas Data[] Domain name log status information

Data

Parameter Type Description
DomainId String ID Domain ID
Status String status: start: enable; Stop: disable
Granularity Long 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?DomainIds=2D09QNJ,2D09VP6,2D09QVE,2D09X6F 1.1
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 1.1
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": "2D09QNJ,2D09VP6,2D09QVE,2D09X6F"
}

Sample response

{
  "Datas": [
    {
      "DomainId": "2D09X6F",
      "Status": "start",
      "Granularity": 1440
    },
    {
      "DomainId": "2D09QNJ",
      "Status": "start",
      "Granularity": 1440
    }
  ]
}
On this page
Pure ModeNormal Mode

Pure Mode

Click to preview the document content in full screen
Feedback