GetApplication

Updated at:

Retrieves the details of a specified EIAM application.

Operation description

Before you delete a specified EIAM application, make sure that the application is no longer in use. After the application is deleted, all configuration data is permanently removed and cannot be recovered.

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

eiam:GetApplication

get

*Application

acs:eiam:{#regionId}:{#accountId}:instance/{#InstanceId}/application/{#ApplicationId}

None None

Request parameters

Parameter

Type

Required

Description

Example

InstanceId

string

Yes

The instance ID.

idaas_ue2jvisn35ea5lmthk267xxxxx

ApplicationId

string

Yes

The application ID.

app_mkv7rgt4d7i4u7zqtzev2mxxxx

Response elements

Element

Type

Description

Example

object

RequestId

string

The request ID.

0441BD79-92F3-53AA-8657-F8CE4A2B912A

Application

object

The returned application information.

ApiInvokeStatus

string

The Developer API feature status of the application. Valid values:

  • enabled: Enabled.

  • disabled: Disabled.

disabled

ApplicationVisibility

array

The application visibility.

string

The application visibility.

[web]

ApplicationId

string

The application ID.

app_mkv7rgt4d7i4u7zqtzev2mxxxx

ApplicationName

string

The application name.

SAML Application

ApplicationSourceType

string

The source from which the application was created. Valid values:

  • urn:alibaba:idaas:app:source:template: Application template.

  • urn:alibaba:idaas:app:source:standard: Standard protocol.

urn:alibaba:idaas:app:source:template

ApplicationTemplateId

string

The application template ID associated during creation. This value is returned only when the application was created from an application template.

apt_rpa_tdsxxx

AuthorizationType

string

The access authorization type of the application. Valid values:

  • authorize_required: Explicit authorization is required for access.

  • default_all: All members have access permissions by default.

authorize_required

ClientId

string

The client ID of the application.

app_mkv7rgt4d7i4u7zqtzev2mxxxx

CreateTime

integer

The time when the application was created, in UNIX timestamp format. Unit: milliseconds.

1649830226000

Description

string

The application description.

An application for the test environment

Features

string

The features supported by the application, returned as a JSON array string. Valid values:

  • sso: Single sign-on.

  • provision: Account synchronization.

  • api_invoke: API access.

["sso", "provision"]

InstanceId

string

The instance ID.

idaas_ue2jvisn35ea5lmthk267xxxxx

LogoUrl

string

The URL of the application logo.

https://img.alicdn.com/imgextra/i4/O1CN01lvYwpv1aGowQXDML9_!!6000000003303-0-tps-580-580.jpg

ManagedServiceCode

string

The ServiceCode of the cloud service that manages the application template.

rpa

ServiceManaged

boolean

Indicates whether the application template is managed by a cloud service.

true

SsoType

string

The single sign-on protocol. Valid values:

  • saml2: SAML 2.0 protocol.

  • oidc: OpenID Connect protocol.

  • oauth2/m2m: OAuth 2.0 protocol.

  • oidc+oauth2/m2m: OpenID Connect and OAuth 2.0 protocols.

saml2

Status

string

The application status. Valid values:

  • enabled: Enabled.

  • disabled: Disabled.

enabled

UpdateTime

integer

The time when the application was last updated, in UNIX timestamp format. Unit: milliseconds.

1649830226000

M2MClientStatus

string

The M2MClient status.

enabled

ResourceServerStatus

string

The ResourceServer status.

enabled

ResourceServerIdentifier

string

The unique identifier of the ResourceServer, corresponding to the ResourceServer audience.

https://www.example.com

CustomSubjectStatus

string

Indicates whether the custom Subject field in the token is enabled. After this feature is enabled, the issued Access Token changes from to :<client.activeSubjectUrn>, where client.activeSubjectUrn is configured in the attribute mapping of the federated identity credential of the application.

enabled

ApplicationCreationType

string

The application creation type.

Valid values:

  • user_custom :

    User-created.

  • system_init :

    System-created.

user_custom

ResourceServerSourceType

string

The resource server source type.

Valid values:

  • urn:cloud:idaas:resourceserver:source:custom :

    Custom.

  • urn:cloud:idaas:resourceserver:source:system :

    System.

urn:cloud:idaas:resourceserver:source:custom

ApplicationIdentityType

string

The application identity type. Valid values:

  • application: Application.

  • agent: Agent.

Valid values:

  • agent :

    Agent.

  • application :

    Application.

application

CustomFields

array<object>

The list of application custom fields.

object

The application custom field.

FieldName

string

The identifier of the application custom field.

Valid values:

  • agentExternalId :

    Agent external identifier.

  • agentType :

    Agent platform type.

agent_source_id

FieldValue

string

The value of the application custom field. When FieldName is set to agentType, valid values are bailian, pai, dify, and volcano. When FieldName is set to agentExternalId, enter the corresponding value.

38899

ApplicationOwner

object

The application owner.

UserIds

array

The list of user IDs.

string

The user ID.

user_sdsadexxx

GroupIds

array

The list of group scopes for synchronization authorization.

string

The list of group scopes for synchronization authorization.

group_t4jbkfsv4rlm6yoyiqo3xcehgmqwe

SmartConfigCapabilities

array

The list of capabilities configured through smart configuration.

string

The capability configured through smart configuration.

sso

Examples

Success response

JSON format

{
  "RequestId": "0441BD79-92F3-53AA-8657-F8CE4A2B912A",
  "Application": {
    "ApiInvokeStatus": "disabled",
    "ApplicationVisibility": [
      "[web]"
    ],
    "ApplicationId": "app_mkv7rgt4d7i4u7zqtzev2mxxxx",
    "ApplicationName": "SAML 应用",
    "ApplicationSourceType": "urn:alibaba:idaas:app:source:template",
    "ApplicationTemplateId": "apt_rpa_tdsxxx",
    "AuthorizationType": "authorize_required",
    "ClientId": "app_mkv7rgt4d7i4u7zqtzev2mxxxx",
    "CreateTime": 1649830226000,
    "Description": "某个应用,测试环境使用",
    "Features": "[\"sso\", \"provision\"]",
    "InstanceId": "idaas_ue2jvisn35ea5lmthk267xxxxx",
    "LogoUrl": "https://img.alicdn.com/imgextra/i4/O1CN01lvYwpv1aGowQXDML9_!!6000000003303-0-tps-580-580.jpg",
    "ManagedServiceCode": "rpa",
    "ServiceManaged": true,
    "SsoType": "saml2",
    "Status": "enabled",
    "UpdateTime": 1649830226000,
    "M2MClientStatus": "enabled",
    "ResourceServerStatus": "enabled",
    "ResourceServerIdentifier": "https://www.example.com",
    "CustomSubjectStatus": "enabled",
    "ApplicationCreationType": "user_custom",
    "ResourceServerSourceType": "urn:cloud:idaas:resourceserver:source:custom",
    "ApplicationIdentityType": "application",
    "CustomFields": [
      {
        "FieldName": "agent_source_id",
        "FieldValue": "38899"
      }
    ],
    "ApplicationOwner": {
      "UserIds": [
        "user_sdsadexxx"
      ],
      "GroupIds": [
        "group_t4jbkfsv4rlm6yoyiqo3xcehgmqwe"
      ]
    },
    "SmartConfigCapabilities": [
      "sso"
    ]
  }
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.