Checks whether Anti-DDoS Pro or Anti-DDoS Premium is authorized to access Log Service.

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 DescribeSlsAuthStatus

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

RegionId String No cn-hangzhou

The region ID of the instance. Valid values:

  • cn-hangzhou: mainland China, which indicates an Anti-DDoS Pro instance
  • ap-southeast-1: outside mainland China, which indicates an Anti-DDoS Premium instance
ResourceGroupId String No default

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

Response parameters

Parameter Type Example Description
RequestId String CF33B4C3-196E-4015-AADD-5CAD00057B80

The ID of the request.

SlsAuthStatus Boolean true

Indicates whether Anti-DDoS Pro or Anti-DDoS Premium is authorized to access Log Service. Valid values:

  • true
  • false

Examples

Sample requests

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

Sample success responses

XML format

<DescribeSlsAuthStatusResponse>
	  <RequestId>CF33B4C3-196E-4015-AADD-5CAD00057B80</RequestId>
	  <SlsAuthStatus>true</SlsAuthStatus>
</DescribeSlsAuthStatusResponse>

JSON format

{
    "RequestId": "CF33B4C3-196E-4015-AADD-5CAD00057B80",
    "SlsAuthStatus": true
}

Error codes

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