GetApplication
Queries the configuration information of an application.
Operation description
This topic provides an example on how to query the configurations of an application named 472457090344041****.
Try it now
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ram:GetApplication |
get |
*Application
|
None |
None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
|
AppId |
string |
Yes |
The application ID. |
472457090344041**** |
For more information about common request parameters, see Common parameters.
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
|
RequestId |
string |
The request ID. |
6616F09B-2768-4C11-8866-A8EE4C4A583E |
| Application |
object |
The information about the application. |
|
|
DisplayName |
string |
The display name of the application. |
myapp |
|
AccessTokenValidity |
integer |
The validity period of the access token. Unit: seconds. |
3600 |
|
SecretRequired |
boolean |
Indicates whether a secret is required. |
true |
|
AccountId |
string |
The ID of the Alibaba Cloud account to which the application belongs. |
177242285274**** |
|
CreateDate |
string |
The time when the application was created. |
2020-10-23T08:06:57Z |
|
AppName |
string |
The application name. |
myapp |
| RedirectUris |
object |
The redirect URLs. |
|
| RedirectUri |
array |
The redirect URL. |
|
|
string |
The redirect URL. |
https://www.example.com |
|
|
UpdateDate |
string |
The time when the application was last updated. |
2020-10-23T08:06:57Z |
| DelegatedScope |
object |
The information about the permissions that are granted on the application. |
|
| PredefinedScopes |
object |
The information about the permissions that are granted on the application. |
|
| PredefinedScope |
array<object> |
The information about the permissions that are granted on the application. |
|
|
object |
The information about the permissions that are granted on the application. |
||
|
Description |
string |
The description of the permission. |
Obtain the OpenID of the user. This is the default permission that you cannot remove. |
|
Name |
string |
The name of the permission. |
openid |
|
Required |
boolean |
Indicates whether the permission is automatically selected by default when you install the application. Valid values:
|
true |
|
AppId |
string |
The application ID. |
472457090344041**** |
|
RefreshTokenValidity |
integer |
The validity period of the refresh token. Unit: seconds. |
7776000 |
|
IsMultiTenant |
boolean |
Indicates whether the application can be installed by using other Alibaba Cloud accounts. |
true |
|
AppType |
string |
The application type. Valid values:
|
WebApp |
|
ProtocolVersion |
string |
The OAuth protocol version of the application. Valid values:
|
2.0 |
Examples
Success response
JSON format
{
"RequestId": "6616F09B-2768-4C11-8866-A8EE4C4A583E",
"Application": {
"DisplayName": "myapp",
"AccessTokenValidity": 3600,
"SecretRequired": true,
"AccountId": "177242285274****",
"CreateDate": "2020-10-23T08:06:57Z",
"AppName": "myapp",
"RedirectUris": {
"RedirectUri": [
"https://www.example.com"
]
},
"UpdateDate": "2020-10-23T08:06:57Z",
"DelegatedScope": {
"PredefinedScopes": {
"PredefinedScope": [
{
"Description": "Obtain the OpenID of the user. This is the default permission that you cannot remove.",
"Name": "openid",
"Required": true
}
]
}
},
"AppId": "472457090344041****",
"RefreshTokenValidity": 7776000,
"IsMultiTenant": true,
"AppType": "WebApp",
"ProtocolVersion": "2.0"
}
}
Error codes
See Error Codes for a complete list.
Release notes
See 变更详情 for a complete list.