All Products
Search
Document Center

Resource Access Management:ListApplications

Last Updated:Jun 10, 2026

Mencantumkan aplikasi yang telah Anda buat.

Deskripsi operasi

Topik ini memberikan contoh cara melakukan kueri terhadap aplikasi di akun Alibaba Cloud Anda. Respons menunjukkan bahwa hanya ada satu aplikasi, bernama myapp, di akun tersebut.

Coba sekarang

Coba API ini di OpenAPI Explorer tanpa perlu penandatanganan manual. Panggilan yang berhasil akan secara otomatis menghasilkan contoh kode SDK sesuai dengan parameter Anda. Unduh kode tersebut dengan kredensial bawaan yang aman untuk penggunaan lokal.

Test

RAM authorization

Tabel berikut menjelaskan otorisasi yang diperlukan untuk memanggil API ini. Anda dapat menentukannya dalam kebijakan Resource Access Management (RAM). Kolom pada tabel dijelaskan sebagai berikut:

  • Action: Aksi yang dapat digunakan dalam elemen Action pada pernyataan kebijakan izin RAM untuk memberikan izin guna melakukan operasi tersebut.

  • API: API yang dapat Anda panggil untuk melakukan aksi tersebut.

  • Access level: Tingkat akses yang telah ditentukan untuk setiap API. Nilai yang valid: create, list, get, update, dan delete.

  • Resource type: Jenis resource yang mendukung otorisasi untuk melakukan aksi tersebut. Ini menunjukkan apakah aksi tersebut mendukung izin tingkat resource. Resource yang ditentukan harus kompatibel dengan aksi tersebut. Jika tidak, kebijakan tersebut tidak akan berlaku.

    • Untuk API dengan izin tingkat resource, jenis resource yang diperlukan ditandai dengan tanda bintang (*). Tentukan Nama Sumber Daya Alibaba Cloud (ARN) yang sesuai dalam elemen Resource pada kebijakan.

    • Untuk API tanpa izin tingkat resource, ditampilkan sebagai All Resources. Gunakan tanda bintang (*) dalam elemen Resource pada kebijakan.

  • Condition key: Kunci kondisi yang didefinisikan oleh layanan. Kunci ini memungkinkan kontrol granular, berlaku baik hanya untuk aksi maupun untuk aksi yang terkait dengan resource tertentu. Selain kunci kondisi spesifik layanan, Alibaba Cloud menyediakan serangkaian common condition keys yang berlaku di semua layanan yang didukung RAM.

  • Dependent action: Aksi dependen yang diperlukan untuk menjalankan aksi tersebut. Untuk menyelesaikan aksi tersebut, pengguna RAM atau role RAM harus memiliki izin untuk melakukan semua aksi dependen.

Action

Access level

Resource type

Condition key

Dependent action

ram:ListApplications

get

*全部资源

*

None None

Parameter permintaan

Parameter

Type

Required

Description

Example

Tidak ada parameter yang diperlukan.

Untuk informasi selengkapnya tentang parameter umum, lihat Parameter umum.

Elemen respons

Element

Type

Description

Example

object

Respons yang dikembalikan.

RequestId

string

ID permintaan.

CE458B58-8C40-46F7-A9D4-CB85136B0C06

Applications

object

Application

array<object>

Informasi aplikasi.

array<object>

Informasi aplikasi.

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 an application 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-23T09:33:22Z

AppName

string

The name of the application.

myapp

RedirectUris

object

RedirectUri

array

The redirect URI.

string

The redirect URI.

https://www.example.com

UpdateDate

string

The time when the application was last updated.

2020-10-23T09:33:22Z

DelegatedScope

object

The permission scopes of the application.

PredefinedScopes

object

PredefinedScope

array<object>

The permission scopes of the application.

object

The permission scopes of the application.

Description

string

The description of the scope.

Obtain the OpenID of the user. This is the default permission that you cannot remove.

Name

string

The name of the scope.

openid

Required

boolean

Indicates whether this permission scope is required by default when the application is installed. Valid values:

  • true: The permission scope is required.

  • false: The permission scope is not required.

The openid scope is required by default.

true

AppId

string

The application ID.

441442900344560****

RefreshTokenValidity

integer

The validity period of the refresh token. Unit: seconds.

7776000

IsMultiTenant

boolean

Indicates whether the application can be installed by other accounts.

true

AppType

string

The application type. Valid values:

  • WebApp: a web application that runs in a browser.

  • NativeApp: a native application that runs on a desktop or mobile operating system.

  • ServerApp: an application that can directly access Alibaba Cloud services without logon credentials. This type of application is available only for user synchronization based on the System for Cross-domain Identity Management (SCIM) protocol.

WebApp

ProtocolVersion

string

The OAuth protocol version of the application. Valid values:

  • 2.0: OAuth 2.0

  • 2.1: OAuth 2.1

2.0

Contoh

Respons sukses

JSONformat

{
  "RequestId": "CE458B58-8C40-46F7-A9D4-CB85136B0C06",
  "Applications": {
    "Application": [
      {
        "DisplayName": "myapp",
        "AccessTokenValidity": 3600,
        "SecretRequired": true,
        "AccountId": "177242285274****",
        "CreateDate": "2020-10-23T09:33:22Z",
        "AppName": "myapp",
        "RedirectUris": {
          "RedirectUri": [
            "https://www.example.com"
          ]
        },
        "UpdateDate": "2020-10-23T09:33:22Z",
        "DelegatedScope": {
          "PredefinedScopes": {
            "PredefinedScope": [
              {
                "Description": "Obtain the OpenID of the user. This is the default permission that you cannot remove.",
                "Name": "openid",
                "Required": true
              }
            ]
          }
        },
        "AppId": "441442900344560****",
        "RefreshTokenValidity": 7776000,
        "IsMultiTenant": true,
        "AppType": "WebApp",
        "ProtocolVersion": "2.0"
      }
    ]
  }
}

Kode kesalahan

Lihat Error Codes untuk daftar lengkap.

Catatan rilis

Lihat Release Notes untuk daftar lengkap.