Queries the information about the gateway assets, ports, server components, or public IP addresses that are exposed on the Internet.

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 DescribeExposedStatisticsDetail

The operation that you want to perform.

Set the value to DescribeExposedStatisticsDetail.

StatisticsType String Yes exposureType

The type of the exposed asset. Valid values:

  • exposureType: the gateway asset that is exposed on the Internet.
  • exposurePort: the port that is exposed on the Internet.
  • exposureComponent: the server component that is exposed on the Internet.
  • exposureIp: the IP address that is exposed on the Internet.
PageSize Integer No 20

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

Note We recommend that you do not leave this parameter empty.
CurrentPage Integer No 1

The page number of the current page.

StatisticsTypeInstanceValue String No lb-2ze4rso39h4nczcqs****

The ID of the gateway asset. This parameter takes effect only when StatisticsType is set to exposureType.

StatisticsTypeGatewayType String No SLB

The type of the gateway asset. This parameter takes effect only when StatisticsType is set to exposureType. Valid values:

  • SLB: the public IP address of a Server Load Balancer (SLB) instance
  • DNAT: the Network Address Translation (NAT) gateway that connects to the Internet by using the Destination Network Address Translation (DNAT) feature

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
PageInfo Struct

The page information.

Count Integer 2

The number of entries returned on the current page.

CurrentPage Integer 1

The page number of the current page.

PageSize Integer 20

The number of entries returned per page.

TotalCount Integer 2

The total number of entries returned.

RequestId String 7CBAFB3F-1ED7-4A23-986A-6F67F0466BD1

The ID of the request.

StatisticsDetails Array of StatisticsDetail

The information about the gateway assets, ports, server components, or public IP addresses that are exposed on the Internet.

ExposureComponent String tomcat

The server component that is exposed on the Internet.

ExposureIp String 123.57.XX.XX

The public IP address that is exposed to the Internet.

ExposurePort String 22

The port that is exposed on the Internet.

ExposureType String SLB

The resource from which the asset is exposed. Valid values:

  • INTERNET_IP: the public IP address of an Elastic Compute Service (ECS) instance
  • SLB: the public IP address of an SLB instance
  • EIP: the elastic IP address (EIP)
  • DNAT: the NAT gateway that connects to the Internet by using the DNAT feature
ExposureTypeId String lb-2ze4rso39h4nczcqs****

The ID of the instance to which the resource belongs. The valid values of this parameter vary based on the ExposureType parameter.

  • If the value of the ExposureType parameter is INTERNET_IP, this parameter is empty.
  • If the value of the ExposureType parameter is SLB, the value of this parameter is the ID of the SLB instance.
  • If the value of the ExposureType parameter is EIP, the value of this parameter is the ID of the EIP.
  • If the value of the ExposureType parameter is DNAT, the value of this parameter is the ID of the NAT gateway.
ExposureTypeInstanceName String ngw-bp1vkbju8f3w87c9v****

The name of the gateway asset that is exposed on the Internet.

Examples

Sample requests

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

Sample success responses

XML format

<DescribeExposedStatisticsDetailResponse>
      <PageInfo>
            <TotalCount>2</TotalCount>
            <PageSize>20</PageSize>
            <CurrentPage>1</CurrentPage>
            <Count>2</Count>
      </PageInfo>
      <RequestId>7CBAFB3F-1ED7-4A23-986A-6F67F0466BD1</RequestId>
      <StatisticsDetails>
            <ExposureType>SLB</ExposureType>
            <ExposureTypeId>lb-2ze4rso39h4nczcqs****</ExposureTypeId>
      </StatisticsDetails>
      <StatisticsDetails>
            <ExposureType>SLB</ExposureType>
            <ExposureTypeId>lb-bp1g61a2sdn01n5k8****</ExposureTypeId>
      </StatisticsDetails>
</DescribeExposedStatisticsDetailResponse>

JSON format

{
    "PageInfo": {
        "TotalCount": 2,
        "PageSize": 20,
        "CurrentPage": 1,
        "Count": 2
    },
    "RequestId": "7CBAFB3F-1ED7-4A23-986A-6F67F0466BD1",
    "StatisticsDetails": [
        {
            "ExposureType": "SLB",
            "ExposureTypeId": "lb-2ze4rso39h4nczcqs****"
        },
        {
            "ExposureType": "SLB",
            "ExposureTypeId": "lb-bp1g61a2sdn01n5k8****"
        }
    ]
}

Error codes

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