How to generate an IBM Cloud token from an API Key
问题 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