Generating a Token Using the API Fabric
Scenario
The API Fabric generates a token.
URL: https://Domain Address/apigovernance/api/oauth/tokenByAkSk
Replace Domain Address with the actual address or domain name of the AICC.
For example, in the Huawei public cloud production environment, replace Domain Address with service.besclouds.com. The invoking URL is https://service.besclouds.com/apigovernance/api/oauth/tokenByAkSk.
Request Header
{
Content-Type: application/json
X-Token-Expire:600
}
X-Token-Expire indicates the token expiration time, which is set to 600.
Request Parameters
{
"app_key": "xxxxxxxxxxxxxxxx",
"app_secret": "yyyyyyyyyyyyyyyyyy"
}
app_key indicates the app ID, and app_secret indicates the key. The two values are fixed.
Response Parameters
{
"AccessToken": "zzzzzzzzzzzzzzzzzz",
"ApplyType": "Bearer",
"CreateTime": "1545650171",
"Expires": "600",
"Scope": "46fb027c8b4f1541e459cadea096495a",
"AppKey": "xxxxxxxxxxxxxxxxx",
"UserID": "Anonymous"
}
AccessToken indicates the token of the API.
What is your overall rating for this page?
Thank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot