Creates an application secret for an application.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ram:CreateAppSecret |
create |
*Application
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| AppId |
string |
Yes |
The ID of the application. |
472457090344041**** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
EE46FC3C-3BDE-4771-B531-27B7B6EB533D |
| AppSecret |
object |
The details of the application secret. |
|
| AppSecretValue |
string |
The content of the application secret. This value can be used as the client secret for open authorization (OAuth). |
ai78ZmmxnlUG1jXlBZRDFKos9DIjY4m17Q7dCpMwn1rqXsTGb1X1XmrmveMp**** |
| AppId |
string |
The ID of the application. |
472457090344041**** |
| AppSecretId |
string |
The ID of the application secret. |
2efd5004-005c-4f05-83c6-5b1dd176**** |
| CreateDate |
string |
The creation time. |
2020-10-26T02:52:31Z |
Examples
Success response
JSON format
{
"RequestId": "EE46FC3C-3BDE-4771-B531-27B7B6EB533D",
"AppSecret": {
"AppSecretValue": "ai78ZmmxnlUG1jXlBZRDFKos9DIjY4m17Q7dCpMwn1rqXsTGb1X1XmrmveMp****",
"AppId": "472457090344041****",
"AppSecretId": "2efd5004-005c-4f05-83c6-5b1dd176****",
"CreateDate": "2020-10-26T02:52:31Z"
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.