Queries the Internet service providers (ISPs) from which requests are sent to one or more Anti-DDoS Pro or Anti-DDoS Premium instances within a specific period of time.

Usage notes

You can call the DescribePortViewSourceIsps operation to query the ISPs from which requests are sent to one or more Anti-DDoS Pro or Anti-DDoS Premium instances within a specific period of time.

Note The data returned for this operation cannot reflect the actual traffic volume because Layer 4 identity authentication algorithms are updated for Anti-DDoS Pro and Anti-DDoS Premium. You can call this operation to calculate only the proportion of requests sent from different ISPs. If you want to query the request traffic volume, we recommend that you call the DescribePortFlowList operation.

Limits

You can call this operation up to 10 times per second per account. If the number of the calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.

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 DescribePortViewSourceIsps

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

RegionId String No cn-hangzhou

The region ID of the instance. Valid values:

  • cn-hangzhou: Chinese mainland, which indicates Anti-DDoS Pro instances. This is the default value.
  • ap-southeast-1: outside the Chinese mainland, which indicates Anti-DDoS Premium instances.
ResourceGroupId String No rg-acfm2pz25js****

The ID of the resource group to which the Anti-DDoS Premium instance belongs in Resource Management.

If you do not specify this parameter, the instance belongs to the default resource group.

EndTime Long Yes 1583683200

The end of the time range to query. This value is a UNIX timestamp. Unit: seconds.

Note This UNIX timestamp must indicate a point in time that is accurate to the minute.
StartTime Long Yes 1582992000

The beginning of the time range to query. This value is a UNIX timestamp. Unit: seconds.

Note This UNIX timestamp must indicate a point in time that is accurate to the minute.
InstanceIds.N String Yes ddoscoo-cn-zvp2eibz****

The ID of the instance to query.

Note You can call the DescribeInstanceIds operation to query the IDs of all instances.

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 C33EB3D5-AF96-43CA-9C7E-37A81BC06A1E

The ID of the request.

Isps Array of Isp

An array that consists of the detail about the ISP.

Count Long 3390671

The total number of requests that are sent from the ISP.

Note This parameter does not indicate the accurate number of requests. You can use this parameter to calculate the proportion of requests from different ISPs.
IspId String 100017

The ID of the ISP. For more information, see the "ISP codes" table.

ISP codes

Code

ISP

100017

China Telecom

100026

China Unicom

100025

China Mobile

100027

China Education and Research Network (CERNET)

100020

China Mobile Tietong

1000143

Dr.Peng Group

100080

Beijing Gehua CATV

1000139

National Radio and Television Administration (NRTA)

100023

Oriental Cable Network

100063

Founder Broadband

1000337

China Internet Exchange

100021

21Vianet Group

1000333

Wasu Media Holding

100093

Wangsu Science & Technology

1000401

Tencent

100099

Baidu

1000323

Alibaba Cloud

100098

Alibaba Group

Examples

Sample requests

http(s)://[Endpoint]/?Action=DescribePortViewSourceIsps
&EndTime=1583683200
&StartTime=1582992000
&InstanceIds=["ddoscoo-cn-zvp2eibz****"]
&<Common request parameters>

Sample success response

XML format

HTTP/1.1 200 OK
Content-Type:application/xml

<DescribePortViewSourceIspsResponse>
    <RequestId>C33EB3D5-AF96-43CA-9C7E-37A81BC06A1E</RequestId>
    <Isps>
        <Count>3390671</Count>
        <IspId>100017</IspId>
    </Isps>
</DescribePortViewSourceIspsResponse>

JSON format

HTTP/1.1 200 OK
Content-Type:application/json

{
  "RequestId" : "C33EB3D5-AF96-43CA-9C7E-37A81BC06A1E",
  "Isps" : [ {
    "Count" : 3390671,
    "IspId" : "100017"
  } ]
}

Error codes

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