如何使用 Softlayer API 检索 SoftLayer_Network_Gateway 凭据?
How to retrieve the SoftLayer_Network_Gateway credentials using Softlayer API?
我想检索网络网关(Vyatta 路由器)凭据以通过 REST 进行配置。
我可以使用以下 REST 调用查看与我的帐户关联的网络网关列表:
curl -s https://username:apiKey@api.softlayer.com/rest/v3/SoftLayer_Account/getNetworkGateways
尝试以下 REST 调用以将所有成员的密码获取到每个网关:
https://[username]:[apiKey]@api.softlayer.com/rest/v3/SoftLayer_Account/getNetworkGateways?objectMask=mask[id,name,networkSpace,status.name,members[priority,hardware[id,fullyQualifiedDomainName,operatingSystem[id,passwords[username,password]]]]]
我想检索网络网关(Vyatta 路由器)凭据以通过 REST 进行配置。
我可以使用以下 REST 调用查看与我的帐户关联的网络网关列表: curl -s https://username:apiKey@api.softlayer.com/rest/v3/SoftLayer_Account/getNetworkGateways
尝试以下 REST 调用以将所有成员的密码获取到每个网关:
https://[username]:[apiKey]@api.softlayer.com/rest/v3/SoftLayer_Account/getNetworkGateways?objectMask=mask[id,name,networkSpace,status.name,members[priority,hardware[id,fullyQualifiedDomainName,operatingSystem[id,passwords[username,password]]]]]