tencent cloud

APIs

DescribePublicIpAssets

Unduh
Mode fokus
Ukuran font
Terakhir diperbarui: 2026-06-18 18:04:34

1. API Description

Domain name for API request: csip.intl.tencentcloudapi.com.

This API is used to query the list of public IP assets.

A maximum of 20 requests can be initiated per second for this API.

We recommend you to use API Explorer
Try it
API Explorer provides a range of capabilities, including online call, signature authentication, SDK code generation, and API quick search. It enables you to view the request, response, and auto-generated examples.

2. Input Parameters

The following request parameter list only provides API request parameters and some common parameters. For the complete common parameter list, see Common Request Parameters.

Parameter Name Required Type Description
Action Yes String Common Params. The value used for this API: DescribePublicIpAssets.
Version Yes String Common Params. The value used for this API: 2022-11-21.
Region No String Common Params. This parameter is not required.
MemberId.N No Array of String Group Account Member ID
Filter No Filter Filter parameters
Tags.N No Array of AssetTag CSC tags of the asset

3. Output Parameters

Parameter Name Type Description
Data Array of IpAssetListVO List
Total Integer Total number of results
AssetLocationList Array of FilterDataObject Asset Attribution
IpTypeList Array of FilterDataObject IP List Enumeration
RegionList Array of FilterDataObject Region List Enumeration
DefenseStatusList Array of FilterDataObject Protection Enumeration
AssetTypeList Array of FilterDataObject Asset Type Enumeration
AppIdList Array of FilterDataObject AppId Enumeration
RequestId String The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.

4. Example

Example1 Querying Assets

Input Example

POST / HTTP/1.1
Host: csip.intl.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: DescribePublicIpAssets
<Common request parameters>

{
    "Filter": {
        "Filters": [
            {
                "Name": "CFWStatus",
                "Values": [
                    "1"
                ],
                "OperatorType": 7
            },
            {
                "Name": "TimeRange",
                "Values": [
                    "2"
                ],
                "OperatorType": 7
            }
        ],
        "Limit": 10,
        "Offset": 20,
        "Order": "desc",
        "By": "AssetCreateTime"
    },
    "MemberId": [
        "mem-62509c52c13c9201"
    ]
}

Output Example

{
    "Response": {
        "AppIdList": [
            {
                "Text": "1302396212401",
                "Value": "1302396212401"
            }
        ],
        "AssetLocationList": [
            {
"Text": "Tencent Cloud",
                "Value": "1"
            },
            {
"Text": "Other",
                "Value": "2"
            }
        ],
        "AssetTypeList": [
            {
"Text": "non-Tencent Cloud host"
                "Value": "OTHER"
            },
            {
                "Text": "CVM",
                "Value": "CVM"
            },
            {
                "Text": "HAVIP",
                "Value": "HAVIP"
            },
            {
                "Text": "CLB",
                "Value": "CLB"
            },
            {
"Text": "Unknown",
                "Value": "unknown"
            }
        ],
        "Data": [
            {
                "AssetId": "ins-mlyxc7ds",
                "AssetName": "cluster-node-10.26",
                "PublicIp": "106.52.96.220",
                "PublicIpType": 1,
                "Region": "ap-guangzhou",
                "AssetType": "CVM",
                "InBandwidth": "0bps",
                "OutBandwidth": "0bps",
                "InFlow": "0B",
                "OutFlow": "0B",
                "Access": 0,
                "Attack": 0,
                "PortRisk": 0,
                "VulnerabilityRisk": 2,
                "WeakPassword": 0,
                "WebContentRisk": 0,
                "RiskExposure": 0,
                "CFWStatus": 1,
                "AssetCreateTime": "2023-10-26 15:56:48",
                "VpcId": "vpc-ommo5hlv",
                "VpcName": "Default-VPC",
                "AppId": 1302396212401,
                "Uin": "10001459211278",
"NickName": "Sheng Sheng Oolong"
                "IsCore": 2,
                "IsCloud": 1,
                "Intercept": 0,
                "LastScanTime": "2024-10-30 05:02:29",
                "ConfigurationRisk": 3,
                "ScanTask": 31,
                "Tag": [
                    {
                        "Name": "name1",
                        "Value": "value1"
                    }
                ],
                "AddressId": "eip-26c8hjt6",
                "MemberId": "mem-625c522c0913c901",
                "IsNewAsset": 0,
                "VerifyStatus": 0
            },
            {
                "AssetId": "asset-k2vqoh1",
                "AssetName": "asset-k2vqoh1",
                "PublicIp": "43.138.240.106",
                "PublicIpType": 0,
                "Region": "other",
"AssetType": "Unknown",
                "InBandwidth": "0bps",
                "OutBandwidth": "0bps",
                "InFlow": "0B",
                "OutFlow": "0B",
                "Access": 0,
                "Attack": 0,
                "PortRisk": 0,
                "VulnerabilityRisk": 0,
                "WeakPassword": 0,
                "WebContentRisk": 0,
                "RiskExposure": 0,
                "CFWStatus": 1,
                "AssetCreateTime": "2023-10-11 17:23:31",
                "VpcId": "asset-k2vqoh1",
                "VpcName": "asset-k2vqoh1",
                "AppId": 1302396212401,
                "Uin": "10001459211278",
"NickName": "Sheng Sheng Oolong"
                "IsCore": 2,
                "IsCloud": 2,
                "Intercept": 0,
                "LastScanTime": "2024-10-30 05:02:29",
                "ConfigurationRisk": 0,
                "ScanTask": 31,
                "Tag": [
                    {
                        "Name": "name1",
                        "Value": "value1"
                    }
                ],
                "AddressId": "asset-k2vqoh1",
                "MemberId": "mem-625c522c0913c901",
                "IsNewAsset": 0,
                "VerifyStatus": 0
            },
            {
                "AssetId": "asset-k2vqoh1",
                "AssetName": "asset-k2vqoh1",
                "PublicIp": "39.108.14.10",
                "PublicIpType": 0,
                "Region": "other",
"AssetType": "Unknown",
                "InBandwidth": "0bps",
                "OutBandwidth": "0bps",
                "InFlow": "0B",
                "OutFlow": "0B",
                "Access": 0,
                "Attack": 0,
                "PortRisk": 0,
                "VulnerabilityRisk": 0,
                "WeakPassword": 0,
                "WebContentRisk": 0,
                "RiskExposure": 0,
                "CFWStatus": 1,
                "AssetCreateTime": "2023-09-06 11:03:28",
                "VpcId": "asset-k2vqoh1",
                "VpcName": "asset-k2vqoh1",
                "AppId": 1302396212401,
                "Uin": "10001459211278",
"NickName": "Sheng Sheng Oolong"
                "IsCore": 2,
                "IsCloud": 3,
                "Intercept": 0,
                "LastScanTime": "2024-10-30 05:02:29",
                "ConfigurationRisk": 0,
                "ScanTask": 0,
                "Tag": [
                    {
                        "Name": "name1",
                        "Value": "value1"
                    }
                ],
                "AddressId": "asset-k2vqoh1",
                "MemberId": "mem-625c522c0913c901",
                "IsNewAsset": 0,
                "VerifyStatus": 0
            },
            {
                "AssetId": "havip-8h56wnzs",
"AssetName": "NAT Security Gateway HaVip_Do not delete or modify"
                "PublicIp": "114.132.124.142",
                "PublicIpType": 2,
                "Region": "ap-guangzhou",
                "AssetType": "HAVIP",
                "InBandwidth": "0bps",
                "OutBandwidth": "0bps",
                "InFlow": "0B",
                "OutFlow": "0B",
                "Access": 0,
                "Attack": 0,
                "PortRisk": 0,
                "VulnerabilityRisk": 0,
                "WeakPassword": 0,
                "WebContentRisk": 0,
                "RiskExposure": 0,
                "CFWStatus": 1,
                "AssetCreateTime": "2023-06-02 10:16:33",
                "VpcId": "asset-k2vqoh1",
                "VpcName": "asset-k2vqoh1",
                "AppId": 1302396212401,
                "Uin": "10001459211278",
"NickName": "Sheng Sheng Oolong"
                "IsCore": 1,
                "IsCloud": 1,
                "Intercept": 0,
                "LastScanTime": "2024-10-30 05:02:29",
                "ConfigurationRisk": 0,
                "ScanTask": 35,
                "Tag": [
                    {
                        "Name": "name1",
                        "Value": "value1"
                    }
                ],
                "AddressId": "eip-egkkeona",
                "MemberId": "mem-625c522c0913c901",
                "IsNewAsset": 0,
                "VerifyStatus": 0
            }
        ],
        "DefenseStatusList": [
            {
unprotected
                "Value": "1"
            }
        ],
        "IpTypeList": [
            {
"Text": "Public IP"
                "Value": "1"
            },
            {
"Text": "Elastic IP",
                "Value": "2"
            },
            {
"Text": "Unknown",
                "Value": "0"
            }
        ],
        "RegionList": [
            {
"Text": "Guangzhou"
                "Value": "ap-guangzhou"
            },
            {
Chengdu
                "Value": "ap-chengdu"
            },
            {
"Text": "Shanghai"
                "Value": "ap-shanghai"
            },
            {
"Text": "Unknown",
                "Value": "other"
            },
            {
Silicon Valley
                "Value": "na-siliconvalley"
            }
        ],
        "RequestId": "27eb54eb-f654-4bae-bcce-278568d140bb",
        "Total": 4
    }
}

5. Developer Resources

SDK

TencentCloud API 3.0 integrates SDKs that support various programming languages to make it easier for you to call APIs.

Command Line Interface

6. Error Code

There is no error code related to the API business logic. For other error codes, please see Common Error Codes.

Bantuan dan Dukungan

Apakah halaman ini membantu?

masukan