如何使用 BAP/Agent 帐户访问 API?
How to access the API using a BAP/Agent account?
例如,如果您想使用 "SoftLayer_Brand" API,并调用 "SoftLayer_Brand::getAllOwnedAccounts",我认为只要您有BAP/Agent 帐户?
但我找不到任何地方列出进行 API 调用所需的 API 密钥,就像您在正常客户门户中登录其中一个帐户后找到的那个.
基本上我想要实现的目标是能够列出(例如)我们的客户在其 SoftLayer 帐户中拥有的所有硬件,或者提取所有帐户的发票,但就是找不到API 密钥已为我的 BAP/Agent 帐户列出。
还是我想错了?
and make a call to "SoftLayer_Brand::getAllOwnedAccounts", I would
assume that you could do that as long as you have a BAP/Agent account?
是的,您需要有一个 BAP/Agent 帐户
But I can't find any place that lists the API key needed to make the
API calls
列出您需要模拟该帐户的 API 密钥并调用 http://sldn.softlayer.com/reference/services/softlayer_user_customer/getapiauthenticationkeys. the impersonation only can be done using SOAP request see this for an example
获得用户的 API 密钥后,您可以列出该帐户的所有硬件机器或发票
例如,如果您想使用 "SoftLayer_Brand" API,并调用 "SoftLayer_Brand::getAllOwnedAccounts",我认为只要您有BAP/Agent 帐户?
但我找不到任何地方列出进行 API 调用所需的 API 密钥,就像您在正常客户门户中登录其中一个帐户后找到的那个.
基本上我想要实现的目标是能够列出(例如)我们的客户在其 SoftLayer 帐户中拥有的所有硬件,或者提取所有帐户的发票,但就是找不到API 密钥已为我的 BAP/Agent 帐户列出。
还是我想错了?
and make a call to "SoftLayer_Brand::getAllOwnedAccounts", I would assume that you could do that as long as you have a BAP/Agent account?
是的,您需要有一个 BAP/Agent 帐户
But I can't find any place that lists the API key needed to make the API calls
列出您需要模拟该帐户的 API 密钥并调用 http://sldn.softlayer.com/reference/services/softlayer_user_customer/getapiauthenticationkeys. the impersonation only can be done using SOAP request see this for an example
获得用户的 API 密钥后,您可以列出该帐户的所有硬件机器或发票