ibm-cloud-iam

How to generate an IBM Cloud token from an API Key

六月ゝ 毕业季﹏ 提交于 2020-04-18 04:42:12
问题 I have generated an API key for IBM Cloud, how do I programmatically generate a token from the API key? 回答1: Here is a curl request to do that. curl --location --request POST 'https://iam.cloud.ibm.com/identity/token' \ --header 'Content-Type: application/x-www-form-urlencoded' \ --header 'Authorization: Basic Yng6Yng=' \ --data-urlencode 'apikey=xxx' \ --data-urlencode 'response_type=cloud_iam' \ --data-urlencode 'grant_type=urn:ibm:params:oauth:grant-type:apikey' Replace xxx with your API

How to generate an IBM Cloud token from an API Key

蹲街弑〆低调 提交于 2020-04-18 04:42:05
问题 I have generated an API key for IBM Cloud, how do I programmatically generate a token from the API key? 回答1: Here is a curl request to do that. curl --location --request POST 'https://iam.cloud.ibm.com/identity/token' \ --header 'Content-Type: application/x-www-form-urlencoded' \ --header 'Authorization: Basic Yng6Yng=' \ --data-urlencode 'apikey=xxx' \ --data-urlencode 'response_type=cloud_iam' \ --data-urlencode 'grant_type=urn:ibm:params:oauth:grant-type:apikey' Replace xxx with your API