DescribeOutgoingDestinationIP

Updated at:

Queries the destination IP addresses of outbound connections.

Operation description

This operation queries the destination IP addresses of outbound connections.

Before you begin

  • Make sure that Cloud Firewall is activated for your account. Both subscription and pay-as-you-go editions are supported.

  • You can call the DescribeUserBuyVersion operation to query the UserStatus parameter. A value of false indicates that Cloud Firewall is not activated.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

Action

Access level

Resource type

Condition key

Dependent action

yundun-cloudfirewall:DescribeOutgoingDestinationIP

get

*All Resource

*

None None

Request parameters

Parameter

Type

Required

Description

Example

Lang

string

No

The language of the response. Valid values:

  • zh (default): Chinese.

  • en: English.

Valid values:

  • en :

    English.

  • zh :

    Chinese.

zh

StartTime

string

Yes

The start time of the query. The value is a UNIX timestamp accurate to seconds.

1656837360

EndTime

string

Yes

The end time of the query. The value is a UNIX timestamp accurate to seconds.

1656923760

PageSize

string

No

Sets the paging settings to specify the number of entries to return on each page for a paged query.

Default value: 6, which means 6 entries are returned on each page. Maximum value: 10.

10

CurrentPage

string

No

Sets the paging settings to specify the page number to return for a paged query.

Default value: 1, which means the first page is returned.

1

CategoryId

string

No

The category ID. Default value: null. Valid values:

  • All: All categories.

  • RiskDomain: Risky domain names.

  • RiskIP: Risky IP addresses.

  • AliYun: Alibaba Cloud services.

  • NotAliYun: Non-Alibaba Cloud services.

All

DstIP

string

No

The destination IP address of the domain name for outbound connections.

10.0.XX.XX

PublicIP

string

No

The public IP address of the ECS instance that initiates the outbound connection.

192.0.XX.XX

PrivateIP

string

No

The private IP address of the ECS instance that initiates the outbound connection.

192.168.XX.XX

Port

string

No

The port number.

80

Sort

string

No

The field by which to sort the results. Valid values:

  • SessionCount (default): The number of requests.

  • TotalBytes: The total volume of traffic.

SessionCount

Order

string

No

The sort order. Valid values:

  • asc: Ascending order.

  • desc (default): Descending order.

desc

TagIdNew

string

No

The intelligence tag ID. Valid values:

  • AliYun: Alibaba Cloud services.

  • RiskDomain: Risky domain names.

  • RiskIP: Risky IP addresses.

  • TrustedDomain: Trusted websites.

  • AliPay: Alipay.

  • DingDing: DingTalk.

  • WeChat: WeChat.

  • QQ: Tencent QQ.

  • SecurityService: Security services.

  • Microsoft: Microsoft.

  • Amazon: Amazon.

  • Pan: Cloud disks.

  • Map: Maps.

  • Code: Code hosting.

  • SystemService: System services.

  • Taobao: Taobao.

  • Google: Google.

  • ThirdPartyService: Third-party platform services.

  • FirstFlow: First visit.

  • Downloader: Malicious download.

  • Alexa Top1M: Popular website.

  • Miner: Miner Pool.

  • Intelligence: Threat intelligence.

  • DDoS: DDoS Trojan.

  • Ransomware: Ransomware.

  • Spyware: Spyware.

  • Rogue: Rogue software.

  • Botnet: Botnets.

  • Suspicious: Suspicious websites.

  • C&C: Remote control.

  • Gang: Gangs.

  • CVE: CVE vulnerabilities.

  • Backdoor: Backdoor Trojans.

  • Phishing: Phishing websites.

  • APT: APT attacks.

  • Supply Chain Attack: Supply chain attacks.

  • Malicious software: Malware.

AliYun

ApplicationName

string

No

The Protocol Type supported by the access control policy. Valid values:

  • FTP

  • HTTP

  • HTTPS

  • Memcache

  • MongoDB

  • MQTT

  • MySQL

  • RDP

  • Redis

  • SMTP

  • SMTPS

  • SSH

  • SSL_No_Cert

  • SSL

  • VNC

Note

The valid values of this parameter depend on the value of the Proto parameter. If Proto is set to TCP, ApplicationNameList supports all the preceding Protocol Types. If both ApplicationNameList and ApplicationName are specified, ApplicationNameList takes precedence.

FTP

Response elements

Element

Type

Description

Example

object

TotalCount

integer

The total number of outbound IP addresses.

50

RequestId

string

The ID of the request.

F0F82705-CFC7-5F83-86C8-A063892F****

DstIPList

array<object>

The list of IP addresses for outbound connections.

array<object>

The list of IP addresses for outbound connections.

AclCoverage

string

Specifies whether to overwrite the access control policy. Valid values:

  • Uncovered: Not covered.

  • FullCoverage: Covered.

Uncovered

DstIP

string

The destination IP address of the domain name for outbound connections.

10.0.XX.XX

AclRecommendDetail

string

The recommendation information for the ACL.

Allow recommended

HasAclRecommend

boolean

Indicates whether an ACL recommendation is available. Valid values:

  • true: Yes.

  • false: No.

true

InBytes

integer

The inbound traffic. Unit: bytes.

472

CategoryName

string

The category name of the product. Valid values:

  • Alibaba Cloud service

  • Non-Alibaba Cloud service

Alibaba Cloud service

RuleName

string

The name of the ACL rule.

Default rule

RuleId

string

The UUID of the ACL rule.

fadsfd-dfadf-df****

SessionCount

integer

The number of requests.

4

GroupName

string

The name of the group in the rule.

rules_test

SecuritySuggest

string

The security policy for the domain name for outbound connections. Valid values:

  • pass: Allow.

  • alert: Deny.

  • drop: Monitor.

pass

OutBytes

integer

The outbound traffic. Unit: bytes.

965

AclStatus

string

The health status of the access control policy. Valid values:

  • Normal: Healthy.

  • Abnormal: Unhealthy.

Normal

IsMarkNormal

boolean

Indicates whether the IP address is added to the whitelist. Valid values:

  • true: Added.

  • false: Not added.

true

CategoryId

string

The category ID of the product. Valid values:

  • Aliyun: Alibaba Cloud service.

  • NotAliyun: Non-Alibaba Cloud service.

Aliyun

TagList

array<object>

The list of tags.

object

The list of tags.

RiskLevel

integer

The risk assessment level. Valid values:

  • 1: Low risk.

  • 2: Medium risk.

  • 3: High risk.

1

TagName

string

The name of the intelligence label sign.

ReleaseLabel

TagId

string

The ID of the intelligence tags label.

ReleaseLabel

TagDescribe

string

The description of the intelligence tags label.

ReleaseLabel

ClassId

string

The categorization of the intelligence tags label. Valid values:

  • Suspicious: Suspicious.

  • Malicious: Malicious.

  • Trusted: Trusted.

Trusted

ApplicationPortList

array<object>

The list of application ports.

Note

The list displays only the first 99 application ports. If the number of outbound application ports exceeds 99, only the first 99 entries are displayed.

object

The list of ports.

Port

integer

The port of the application.

80

ApplicationName

string

The Protocol Type supported by the access control policy. Valid values:

  • FTP

  • HTTP

  • HTTPS

  • Memcache

  • MongoDB

  • MQTT

  • MySQL

  • RDP

  • Redis

  • SMTP

  • SMTPS

  • SSH

  • SSL_No_Cert

  • SSL

  • VNC

Note

The valid values of this parameter depend on the value of the Proto parameter. If Proto is set to TCP, ApplicationNameList supports all the preceding Protocol Types. If both ApplicationNameList and ApplicationName are specified, ApplicationNameList takes precedence.

HTTP

UnknownReason

array

The list of reasons why the protocol is not analyzed when the identified protocol is Unknown.

string

The reason for the protocol analysis failure.

tcp_not_establish

CategoryClassId

string

The categorization of the intelligence tags label. Valid values:

  • Suspicious: Suspicious.

  • Malicious: Malicious.

  • Trusted: Trusted.

Trusted

SecurityReason

string

The security reason.

Intelligent policy: The organization to which the destination domain name belongs is Alibaba Cloud Computing Ltd. Its main business is Alibaba Cloud. No security risks are found. It can be used to configure an outbound whitelist.

TotalBytes

string

The total traffic. Unit: bytes.

800

HasAcl

string

Indicates whether an access control rule exists. Valid values:

  • true: Yes.

  • false: No.

true

AddressGroupList

array<object>

The address book information.

object

AddressGroupUUID

string

The UUID of the address book.

f04ac7ce-628b-4cb7-be61-310222b7****

AddressGroupName

string

The name of the address book.

IP address book

AssetCount

integer

The total number of assets that initiate outbound connections.

20

PrivateAssetCount

integer

The total number of private network assets that initiate outbound connections.

20

LocationName

string

The region name.

Qingdao, Shandong Province

Examples

Success response

JSON format

{
  "TotalCount": 50,
  "RequestId": "F0F82705-CFC7-5F83-86C8-A063892F****",
  "DstIPList": [
    {
      "AclCoverage": "Uncovered",
      "DstIP": "10.0.XX.XX",
      "AclRecommendDetail": "Allow recommended",
      "HasAclRecommend": true,
      "InBytes": 472,
      "CategoryName": "阿里云产品",
      "RuleName": "Default rule",
      "RuleId": "fadsfd-dfadf-df****",
      "SessionCount": 4,
      "GroupName": "rules_test",
      "SecuritySuggest": "pass",
      "OutBytes": 965,
      "AclStatus": "Normal",
      "IsMarkNormal": true,
      "CategoryId": "Aliyun",
      "TagList": [
        {
          "RiskLevel": 1,
          "TagName": "ReleaseLabel",
          "TagId": "ReleaseLabel",
          "TagDescribe": "ReleaseLabel",
          "ClassId": "Trusted"
        }
      ],
      "ApplicationPortList": [
        {
          "Port": 80,
          "ApplicationName": "HTTP",
          "UnknownReason": [
            "tcp_not_establish"
          ]
        }
      ],
      "CategoryClassId": "Trusted",
      "SecurityReason": "Intelligent policy: The organization to which the destination domain name belongs is Alibaba Cloud Computing Ltd. Its main business is Alibaba Cloud. No security risks are found. It can be used to configure a whitelist for outbound connections.",
      "TotalBytes": "800",
      "HasAcl": "true",
      "AddressGroupList": [
        {
          "AddressGroupUUID": "f04ac7ce-628b-4cb7-be61-310222b7****",
          "AddressGroupName": "IP address book"
        }
      ],
      "AssetCount": 20,
      "PrivateAssetCount": 20,
      "LocationName": "Qingdao, Shandong Province"
    }
  ]
}

Error codes

HTTP status code

Error code

Error message

Description

400 ErrorAliUid Aliuid invalid. The aliuid is invalid.
400 ErrorTimeError The time is invalid. The time is invalid.
400 ErrorIpFormat The IP address is invalid. The IP address is invalid.
400 ErrorDBSelectError A database select error occurred. The error message returned because an internal error has occurred in querying the database.
400 ErrorPortError The port is invalid. The port is invalid.
400 ErrorSecuritySuggest The security suggest is invalid. The security suggest is invalid.
400 ErrorSortError The sort is invalid. The sort is invalid.
400 ErrorOrderFailed The order is invalid. The order is invalid.
400 ErrorPageNo Either page number or page size is invalid. Either page number or page size is invalid.
400 ErrorIntervalError The interval is invalid. The interval is invalid.
400 ErrorDataTypeError The data type is invalid. The data type is invalid.
400 ErrorMarshalJSON internal error. Internal error.

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.