All Products
Search
Document Center

Resource Access Management:ProvisionExternalApplication

Last Updated:Jun 10, 2026

Menginstal aplikasi eksternal.

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:ProvisionExternalApplication

update

*全部资源

*

None None

Parameter permintaan

Parameter

Type

Required

Description

Example

AppId

string

Yes

ID aplikasi.

403550611646604****

Scopes

string

No

Izin yang diberikan kepada aplikasi. Pisahkan beberapa izin dengan titik koma (;).

Catatan

Untuk informasi lebih lanjut mengenai izin yang didukung, lihat Ikhtisar.

openid;aliuid

Elemen respons

Element

Type

Description

Example

object

RequestId

string

The request ID.

55535873-9A6B-5C87-853F-C7CD258826F2

ExternalApplication

object

The information about the external application.

DisplayName

string

The display name of the application.

GiteeAliyun

UpdateDate

string

The update time. The value is a timestamp.

1603693518000

DelegatedScope

object

The information about the scopes of permissions that are granted to the application.

PredefinedScopes

object

PredefinedScope

array<object>

The information about the scopes of permissions that are granted to the application.

object

Description

string

The description of the permission scope.

用于获取用户的OpenID(默认权限范围,不可移除)

Name

string

The name of the permission scope.

openid

AppPrincipalName

string

The name of the application principal. The value is in the <app_name>@app.<account_id>.onaliyun.com format.

GiteePrd@app.177242285274****.onaliyun.com

CreateDate

string

The time when the application was installed. The value is a timestamp.

1603693518000

TenantId

string

The ID of the Alibaba Cloud account to which the external application belongs.

157242285274****

ForeignAppId

string

The ID of the application.

403550611646604****

Contoh

Respons sukses

JSONformat

{
  "RequestId": "55535873-9A6B-5C87-853F-C7CD258826F2",
  "ExternalApplication": {
    "DisplayName": "GiteeAliyun\n",
    "UpdateDate": "1603693518000",
    "DelegatedScope": {
      "PredefinedScopes": {
        "PredefinedScope": [
          {
            "Description": "用于获取用户的OpenID(默认权限范围,不可移除)",
            "Name": "openid"
          }
        ]
      }
    },
    "AppPrincipalName": "GiteePrd@app.177242285274****.onaliyun.com\n",
    "CreateDate": "1603693518000",
    "TenantId": "157242285274****",
    "ForeignAppId": "403550611646604****"
  }
}

Kode kesalahan

Lihat Error Codes untuk daftar lengkap.

Catatan rilis

Lihat Release Notes untuk daftar lengkap.