获取防火墙绑定资源-DescribeFirewallResource

获取防火墙组所绑定资源的外网IP

Request Parameters

Parameter nameTypeDescriptionRequired
Regionstring地域。 参见 地域和可用区列表Yes
ProjectIdstring项目ID。不填写为默认项目,子帐号必须填写。 请参考GetProjectList接口No
FWIdstring防火墙IDYes
Limitint返回数据长度,默认为20,最大10000000No
Offsetint列表起始位置偏移量,默认为0No

Response Elements

Parameter nameTypeDescriptionRequired
RetCodeint操作返回码Yes
Actionstring操作名称Yes
ResourceSetarray资源列表,见 ResourceSetNo
TotalCountint绑定资源总数No

ResourceSet

Parameter nameTypeDescriptionRequired
Zoneint可用区No
Namestring名称No
PrivateIPstring内网IPNo
Remarkstring备注No
ResourceIDstring绑定该防火墙的资源idNo
ResourceTypestring绑定防火墙组的资源类型。"unatgw",NAT网关; "uhost",云主机; "upm",物理云主机; "hadoophost",hadoop节点; "fortresshost",堡垒机; "udhost",私有专区主机;"udockhost",容器;"dbaudit",数据库审计.No
Statusint状态No
Tagstring业务组No

Request Example

https://api.auto-ai.com.cn/?Action=DescribeFirewallResource
&ProjectId=org-xxx
&Region=xxx
&FWId=fw-xxx
&Limit=20
&Offset=0

Response Example

{
    "Action": "DescribeFirewallResourceResponse",
    "ResourceSet": [
        {
            "ResourceType": "uhost",
            "ResourceID": "uhost-XXXXXX",
            "Zone": 8200,
            "PrivateIP": "10.23.XX.XX",
            "Name": "hc_host",
            "Tag": "Default",
            "Remark": "",
            "Status": 1
        }
    ],
    "RetCode": 0,
    "TotalCount": 6
}