Checks whether Log Service is activated.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes GetSlsOpenStatus

The operation that you want to perform. Set the value to GetSlsOpenStatus.

RegionId String No cn-hangzhou

The ID of the region where the Anti-DDoS Origin instance resides.

For more information about the valid values of this parameter, see Regions and zones.

ResourceGroupId String No rg-acfm2pz25js****

The ID of the resource group to which the Anti-DDoS Origin instance belongs in Resource Management. This parameter is empty by default, which indicates that the Anti-DDoS Origin instance belongs to the default resource group.

For more information about resource groups, see Create a resource group.

All Alibaba Cloud API operations must include common request parameters. For more information about common request parameters, see Common parameters.

For more information about sample requests, see the "Examples" section of this topic.

Response parameters

Parameter Type Example Description
RequestId String D01666F5-541B-4C78-98A6-D29E02DAAC7C

The ID of the request.

SlsOpenStatus Boolean true

Indicates whether Log Service was activated. Valid values:

  • true: Log Service was activated.
  • false: Log Service was not activated.

Examples

Sample requests

http(s)://[Endpoint]/?Action=GetSlsOpenStatus
&<Common request parameters>

Sample success responses

XML format

<GetSlsOpenStatusResponse>
	  <RequestId>D01666F5-541B-4C78-98A6-D29E02DAAC7C</RequestId>
	  <SlsOpenStatus>true</SlsOpenStatus>
</GetSlsOpenStatusResponse>

JSON format

{
  "RequestId": "D01666F5-541B-4C78-98A6-D29E02DAAC7C",
  "SlsOpenStatus": true
}

Error codes

For a list of error codes, visit the API Error Center.