无法通过 Softlayer Rest 查看 Softlayer 中的多 Vlan 防火墙列表 Api

Can't See the List of Multi-Vlan-Firewalls in Softlayer via Softlayer Rest Api

您好,我正在尝试使用 softlayer rest api 列出我帐户中存在的多 Vlan 防火墙。在 softlayer ui 上,我可以看到 Multi-Vlan-Firewall 列表,但使用 softlayer rest api 看不到同样的东西。其余 api 我尝试使用查看列表是

https://api.softlayer.com/rest/v3/SoftLayer_Account/getNetworkVlans?objectMask=mask[id,name,vlanNumber,networkSpace,note,primaryRouter[id,hostname,datacenter[id,name,longName]],networkVlanFirewall[id,fullyQualifiedDomainName],attachedNetworkGateway[id,name],attachedNetworkGatewayVlan[bypassFlag],billingItem[id,cancellationDate],type,firewallNetworkComponentCount,firewallGuestNetworkComponentCount]

发回的所有详细信息都属于 single-vlan-firewall。我什至尝试使用 slcli(Softlayer 命令行界面)查看我帐户中的多 vlan 防火墙列表。我得到了一个防火墙列表,但它们都是单个 vlan 防火墙。我错过了什么吗?谁能告诉我使用哪个 api 来列出 Softlayer 中的多 vlan 防火墙。我什至试图在 chrome 的检查模式下查看 Softlayer UI 用来获取多 Vlan 防火墙列表的 api 是什么?我得到了这样的东西 https://control.softlayer.com/security/firewalls/getmultivlanlist 。这是剩余的 api Softlayer UI 用于获取多 Vlan 防火墙列表。作为对此的回应,我得到了防火墙列表

{name: "Checkdelete1", id: 13573, firewallType: "FortiGate Security Appliance",…}
associatedVlan
:
"0 VLANs"
configuration
:
"HA"
firewallType
:
"FortiGate Security Appliance"
id
:
13573
location
:
"dal13.pod01"
name
:
"Checkdelete1"
status
:
"Active"

我试图将此 ID 与我之前用于获取防火墙列表的其余 api 相关联。我在该回复中的任何地方都找不到这个 ID。因此我得出结论,也许我使用了错误的 api 来获取 Multi-Vlan-Firewalls 列表,或者 softlayer 没有响应该列表中的 Multi-Vlan-Firewalls。

这是请求:

GET https://api.softlayer.com/rest/v3/SoftLayer_Account/getNetworkGateways?objectMask=mask[id,name,networkFirewall[id,customerManagedFlag,datacenter.name],publicIpAddress.ipAddress,publicVlan[id,primaryRouter.hostname],privateIpAddress.ipAddress,insideVlans[id],memberCount,status.keyName]

但控制门户过滤了上述请求获取的数据,您只需要考虑具有 "NetworkFirewall" 属性 的对象,例如

{
        "id": 1111,
        "name": "Provisioning",
        "memberCount": 1,
        "insideVlans": [],
        "networkFirewall": {
            "customerManagedFlag": true,
            "id": 11222,
            "datacenter": {
                "name": "dal10"
            }
        },
        "privateIpAddress": {
            "ipAddress": "10.11.11.111"
        },
        "publicIpAddress": {
            "ipAddress": "169.22.22.2222"
        },
        "publicVlan": {
            "id": 11111,
            "primaryRouter": {
                "hostname": "fcr01a.dal10"
            }
        },
        "status": {
            "keyName": "UPDATING"
        }
    },