Queries the Anti-DDoS Origin instances for which log analysis is enabled.

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 ListOpenedAccessLogInstances

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

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.

PageNumber Integer No 1

The number of the page to return. Pages start from page 1. Default value: 1.

PageSize Integer No 10

The number of entries to return on each page. Default value: 10.

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 4DB64811-70A1-41C9-A0CE-CD8B260ED551

The ID of the request.

SlsConfigStatus Array of OpenedInstance

The configuration of log analysis for the Anti-DDoS Origin instance.

Enable Boolean true

Indicates whether log analysis was enabled for the Anti-DDoS Origin instance. Valid values:

  • true: Log analysis was enabled.
  • false: Log analysis was disabled.
InstanceId String ddosbgp-cn-m7r1zce2****

The ID of the Anti-DDoS Origin instance.

TotalCount Integer 1

The number of the Anti-DDoS Origin instances for which log analysis was enabled.

Examples

Sample requests

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

Sample success responses

XML format

<ListOpenedAccessLogInstancesResponse>
	  <TotalCount>1</TotalCount>
	  <RequestId>4DB64811-70A1-41C9-A0CE-CD8B260ED551</RequestId>
	  <SlsConfigStatus>
		    <InstanceId>ddosbgp-cn-m7r1zce2****</InstanceId>
		    <Enable>true</Enable>
	  </SlsConfigStatus>
</ListOpenedAccessLogInstancesResponse>

JSON format

{
  "TotalCount": 1,
  "RequestId": "4DB64811-70A1-41C9-A0CE-CD8B260ED551",
  "SlsConfigStatus": [
    {
      "InstanceId": "ddosbgp-cn-m7r1zce2****",
      "Enable": true
    }
  ]
}

Error codes

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