使用 SoftLayer API 的 IAM 身份验证
IAM authentication with SoftLayer API
我正在使用 SoftLayer REST API,而不是用户名和 API 密钥,我想使用我的 IAM 令牌进行身份验证。这可能吗?
现在这实际上是可能的。您现在可以使用 IAM api 密钥通过 Softlayer API 进行身份验证。为此,您可以执行以下操作。
curl --location --request GET 'https://api.softlayer.com/rest/v3/SoftLayer_Account?objectMask=networkVlanSpan' \
--header 'Authorization: bearer <your token>'
获取代币运行ibmcloud iam oauth-tokens
.
现在这实际上是可能的。您现在可以使用 IAM api 密钥通过 Softlayer API 进行身份验证。为此,您可以执行以下操作。
curl --location --request GET 'https://api.softlayer.com/rest/v3/SoftLayer_Account?objectMask=networkVlanSpan' \
--header 'Authorization: bearer <your token>'
获取代币运行ibmcloud iam oauth-tokens
.
我正在使用 SoftLayer REST API,而不是用户名和 API 密钥,我想使用我的 IAM 令牌进行身份验证。这可能吗?
现在这实际上是可能的。您现在可以使用 IAM api 密钥通过 Softlayer API 进行身份验证。为此,您可以执行以下操作。
curl --location --request GET 'https://api.softlayer.com/rest/v3/SoftLayer_Account?objectMask=networkVlanSpan' \
--header 'Authorization: bearer <your token>'
获取代币运行ibmcloud iam oauth-tokens
.
现在这实际上是可能的。您现在可以使用 IAM api 密钥通过 Softlayer API 进行身份验证。为此,您可以执行以下操作。
curl --location --request GET 'https://api.softlayer.com/rest/v3/SoftLayer_Account?objectMask=networkVlanSpan' \
--header 'Authorization: bearer <your token>'
获取代币运行ibmcloud iam oauth-tokens
.