Mengubah informasi tentang Pengguna RAM.
Deskripsi operasi
This topic provides an example to show how to modify the name of a RAM user from test@example.onaliyun.com to new@example.onaliyun.com.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ram:UpdateUser |
update |
*User
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| UserPrincipalName |
string |
No |
Nama login Pengguna RAM. Catatan
Anda harus menentukan hanya salah satu dari parameter berikut: |
test@example.onaliyun.com |
| UserId |
string |
No |
ID Pengguna RAM. Catatan
Anda harus menentukan hanya salah satu dari parameter berikut: |
20732900249392**** |
| NewUserPrincipalName |
string |
No |
Nama login baru Pengguna RAM. Nama tersebut menggunakan format Nilai |
new@example.onaliyun.com |
| NewDisplayName |
string |
No |
Nama tampilan baru Pengguna RAM. Nama tersebut harus memiliki panjang 1 hingga 24 karakter. |
new |
| NewMobilePhone |
string |
No |
Nomor ponsel baru Pengguna RAM. Format: <Kode negara>-<Nomor ponsel>. Catatan
Parameter ini hanya berlaku di situs Tiongkok (aliyun.com). |
86-1868888**** |
| NewEmail |
string |
No |
Alamat email baru Pengguna RAM. Catatan
Parameter ini hanya berlaku di situs Tiongkok (aliyun.com). |
alice@example.com |
| NewComments |
string |
No |
Deskripsi baru Pengguna RAM. Deskripsi tersebut harus memiliki panjang 1 hingga 128 karakter. |
This is a cloud computing engineer. |
Untuk informasi selengkapnya tentang parameter permintaan umum, lihat Referensi API.
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| User |
object |
The information about the RAM user. |
|
| DisplayName |
string |
The display name of the RAM user. |
new |
| UserPrincipalName |
string |
The logon name of the RAM user. |
new@example.onaliyun.com |
|
string |
The email address of the RAM user. Catatan
This parameter is valid only on the China site (aliyun.com). |
alice@example.com |
|
| UpdateDate |
string |
The time when the information about the RAM user was updated. |
2020-10-13T09:19:49Z |
| MobilePhone |
string |
The mobile phone number of the RAM user. Catatan
This parameter is valid only on the China site (aliyun.com). |
86-1868888**** |
| UserId |
string |
The ID of the RAM user. |
20732900249392**** |
| Comments |
string |
The description. |
This is a cloud computing engineer. |
| LastLoginDate |
string |
The last time when the RAM user logged on to the Alibaba Cloud Management Console. |
2020-10-12T09:12:00Z |
| CreateDate |
string |
The time when the RAM user was created. |
2020-10-12T09:12:00Z |
| ProvisionType |
string |
The source of the RAM user. Valid values:
|
Manual |
| RequestId |
string |
The request ID. |
1B56DD42-6962-4F89-A19C-079EED1F0FE3 |
Contoh
Respons sukses
JSONformat
{
"User": {
"DisplayName": "new",
"UserPrincipalName": "new@example.onaliyun.com",
"Email": "alice@example.com",
"UpdateDate": "2020-10-13T09:19:49Z",
"MobilePhone": "86-1868888****",
"UserId": "20732900249392****",
"Comments": "This is a cloud computing engineer.",
"LastLoginDate": "2020-10-12T09:12:00Z",
"CreateDate": "2020-10-12T09:12:00Z",
"ProvisionType": "Manual"
},
"RequestId": "1B56DD42-6962-4F89-A19C-079EED1F0FE3"
}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.