GetApplication
Queries the configuration information of a specified application.
Operation description
This topic provides an example to query the configuration information of the application 472457090344041****.
Try it now
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 returned result. |
||
| Application |
object |
The application information. |
|
| AccessTokenValidity |
integer |
The validity period of the access token. Unit: seconds. |
3600 |
| AccountId |
string |
The Alibaba Cloud account ID to which the application belongs. |
177242285274**** |
| AppId |
string |
The application ID. |
472457090344041**** |
| AppName |
string |
The application name. |
myapp |
| AppType |
string |
The application type. Valid values:
|
WebApp |
| AssignmentType |
string |
The application assignment type. Valid values:
|
AllowAll |
| CreateDate |
string |
The creation time. Format: RFC 3339 (UTC). Example: 2020-10-23T08:06:57Z. |
2020-10-23T08:06:57Z |
| DelegatedScope |
object |
The delegated scope information of the application. |
|
| PredefinedScopes |
object |
||
| PredefinedScope |
array<object> |
The delegated scope information of the application. |
|
|
object |
The delegated scope information of the application. |
||
| Description |
string |
The scope description. |
Obtain the OpenID of the user. This is the default permission that you cannot remove. |
| Name |
string |
The scope name. |
openid |
| Required |
boolean |
Specifies whether this permission scope is required by default when the application is installed. Valid values:
The |
true |
| DisplayName |
string |
The display name of the application. |
myapp |
| IsMultiTenant |
boolean |
Specifies whether the application can be installed by other accounts. |
true |
| NeedPrincipalConsent |
boolean |
Specifies whether user authorization is required. Valid values:
|
true |
| ProtocolVersion |
string |
The OAuth protocol version of the application. Valid values:
|
2.0 |
| RedirectUris |
object |
||
| RedirectUri |
array |
The redirect URI. |
|
|
string |
The redirect URI. |
https://www.example.com |
|
| RefreshTokenValidity |
integer |
The validity period of the refresh token. Unit: seconds. |
7776000 |
| SecretRequired |
boolean |
Specifies whether an application secret is required. |
true |
| UpdateDate |
string |
The update time. Format: RFC 3339 (UTC). Example: 2020-10-23T08:06:57Z. |
2020-10-23T08:06:57Z |
| RequestId |
string |
The request ID. |
6616F09B-2768-4C11-8866-A8EE4C4A583E |
Examples
Success response
JSON format
{
"Application": {
"AccessTokenValidity": 3600,
"AccountId": "177242285274****",
"AppId": "472457090344041****",
"AppName": "myapp",
"AppType": "WebApp",
"AssignmentType": "AllowAll",
"CreateDate": "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
}
]
}
},
"DisplayName": "myapp",
"IsMultiTenant": true,
"NeedPrincipalConsent": true,
"ProtocolVersion": "2.0",
"RedirectUris": {
"RedirectUri": [
"https://www.example.com"
]
},
"RefreshTokenValidity": 7776000,
"SecretRequired": true,
"UpdateDate": "2020-10-23T08:06:57Z"
},
"RequestId": "6616F09B-2768-4C11-8866-A8EE4C4A583E"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.