Mengkueri detail otorisasi proyek.
Coba sekarang
Test
RAM authorization
Sintaks permintaan
POST HTTP/1.1
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
ID instans bastion host. Catatan
Anda dapat memanggil operasi DescribeInstances untuk mendapatkan parameter ini. |
bastionhost-cn-st220aw**** |
| RegionId |
string |
No |
ID wilayah bastion host. Catatan
Untuk pemetaan antara ID wilayah dan nama wilayah, lihat Wilayah dan zona. |
cn-hangzhou |
| AuthorizationId |
integer |
Yes |
ID otorisasi proyek yang akan dikueri. Catatan
Anda dapat memanggil operasi ListProjectAuthorizations untuk mendapatkan parameter ini. |
1 |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
Skema respons. |
||
| ProjectAuthorization |
object |
Detail otorisasi proyek. |
|
| AuthorizationId |
integer |
ID otorisasi proyek. |
1 |
| Name |
string |
Nama otorisasi proyek. |
name |
| Description |
string |
Deskripsi otorisasi proyek. |
description |
| ScopeType |
integer |
Cakupan (dalam OAuth) aset yang dapat dikelola yang terkait dengan otorisasi. Nilai valid:
|
1 |
| Principals |
array<object> |
Informasi tentang administrator proyek yang ditentukan dalam otorisasi proyek. |
|
|
object |
Informasi administrator proyek. |
||
| PrincipalType |
string |
RamRole |
|
| PrincipalId |
string |
2036****6767 |
|
| PrincipalName |
string |
name |
|
| ProjectIds |
array |
Daftar ID proyek yang terkait dengan otorisasi proyek. |
|
|
integer |
Array ID proyek. |
1,2,3 |
|
| Projects |
array<object> |
Informasi tentang proyek yang terkait dengan otorisasi proyek. |
|
|
object |
Detail proyek. |
||
| ProjectId |
integer |
1 |
|
| Name |
string |
project1 |
|
| Description |
string |
comment |
|
| IsDefault |
boolean |
false |
|
| RequestId |
string |
ID permintaan yang dihasilkan oleh Alibaba Cloud untuk permintaan ini. |
EC9BF0F4-8983-491A-BC8C-1B4DD94976DE |
Contoh
Respons sukses
JSONformat
{
"ProjectAuthorization": {
"AuthorizationId": 1,
"Name": "name",
"Description": "description",
"ScopeType": 1,
"Principals": [
{
"PrincipalType": "RamRole",
"PrincipalId": "2036****6767",
"PrincipalName": "name"
}
],
"ProjectIds": [
0
],
"Projects": [
{
"ProjectId": 1,
"Name": "project1",
"Description": "comment",
"IsDefault": false
}
]
},
"RequestId": "EC9BF0F4-8983-491A-BC8C-1B4DD94976DE"
}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.