GetApplicationProvisionInfo

Updated at:

Queries the installation information of a specified installed application.

Operation description

Before calling this operation, the target application must already be installed. You can call ProvisionApplication to install the application and use the AppId of the installed application. Calling this operation with an application ID that was only returned by CreateApplication but has not been installed will fail.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

Action

Access level

Resource type

Condition key

Dependent action

ram:GetApplicationProvisionInfo

get

*All Resource

*

None None

Request parameters

Parameter

Type

Required

Description

Example

AppId

string

Yes

The application ID.

452392483381546****

Response elements

Element

Type

Description

Example

object

ApplicationProvisionInfo

object

The application installation information.

AccountId

string

The Alibaba Cloud account ID.

177242285274****

AppCategory

string

The application category. Valid values:

  • Official: Official application.

  • ThirdParty: Third-party application.

ThirdParty

AppId

string

The application ID.

452392483381546****

AppName

string

The application name.

GiteePrd

AssignmentType

string

The application assignment type. Valid values:

  • AllowAll: No assignment required. All RAM users and roles are allowed to access the application.

  • OnDemand: On-demand assignment. RAM users and roles must be assigned the application before they can access it.

AllowAll

CreateDate

string

The installation timestamp.

1603693518000

DelegatedScope

object

The application permission scope information.

PredefinedScopes

object

PredefinedScope

array<object>

The application permission scope information.

object

Description

string

The scope description.

Used to obtain the OpenID of the user (default permission scope, cannot be removed)

Name

string

The scope name.

openid

DisplayName

string

The display name of the application.

GiteeAliyun

NeedPrincipalConsent

boolean

Indicates whether user consent is required.

true

UpdateDate

string

The update timestamp.

1603693518000

RequestId

string

The request ID.

936E1D9C-157D-45BD-8A3B-81C0716EB078

Examples

Success response

JSON format

{
  "ApplicationProvisionInfo": {
    "AccountId": "177242285274****",
    "AppCategory": "ThirdParty",
    "AppId": "452392483381546****",
    "AppName": "GiteePrd",
    "AssignmentType": "AllowAll",
    "CreateDate": "1603693518000",
    "DelegatedScope": {
      "PredefinedScopes": {
        "PredefinedScope": [
          {
            "Description": "用于获取用户的OpenID(默认权限范围,不可移除)",
            "Name": "openid"
          }
        ]
      }
    },
    "DisplayName": "GiteeAliyun",
    "NeedPrincipalConsent": true,
    "UpdateDate": "1603693518000"
  },
  "RequestId": "936E1D9C-157D-45BD-8A3B-81C0716EB078"
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.