Mengubah informasi tentang Pengguna RAM.
Deskripsi operasi
This topic provides an example on how to change the name of a RAM user from zhangq**** to xiaoq****.
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 |
| UserName |
string |
No |
Nama pengguna Pengguna RAM. |
zhangq**** |
| NewUserName |
string |
No |
Nama pengguna baru Pengguna RAM. Nama pengguna harus memiliki panjang 1 hingga 64 karakter, dan dapat berisi huruf, digit, titik (.), tanda hubung (-), dan garis bawah (_). |
xiaoq**** |
| NewDisplayName |
string |
No |
Nama tampilan baru Pengguna RAM. Nama harus memiliki panjang 1 hingga 128 karakter. |
xiaoq**** |
| NewMobilePhone |
string |
No |
Nomor telepon seluler baru Pengguna RAM. Format: <Kode negara>-<Nomor telepon seluler>. Catatan
Parameter ini hanya berlaku untuk situs Tiongkok (aliyun.com). |
86-1860000**** |
| NewEmail |
string |
No |
Alamat email baru Pengguna RAM. Catatan
Parameter ini hanya berlaku untuk situs Tiongkok (aliyun.com). |
xiaoq****@example.com |
| NewComments |
string |
No |
Deskripsi baru Pengguna RAM. Deskripsi harus memiliki panjang 1 hingga 128 karakter. |
This is a cloud computing engineer. |
Untuk informasi selengkapnya tentang parameter permintaan umum, lihat Parameter umum.
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. |
xiaoq**** |
|
string |
The email address of the RAM user. Catatan
This parameter can be returned only on the China site (aliyun.com). |
xiaoq****@example.com |
|
| UpdateDate |
string |
The point in time when the information about the RAM user was last modified. The time is displayed in UTC. |
2015-02-11T03:15:21Z |
| MobilePhone |
string |
The mobile phone number of the RAM user. Catatan
This parameter can be returned only on the China site (aliyun.com). |
86-1860000**** |
| UserId |
string |
The ID of the RAM user. |
122748924538**** |
| Comments |
string |
The description of the RAM user. |
This is a cloud computing engineer. |
| CreateDate |
string |
The point in time when the RAM user was created. The time is displayed in UTC. |
2015-01-23T12:33:18Z |
| UserName |
string |
The username of the RAM user. |
xiaoq**** |
| RequestId |
string |
The request ID. |
04F0F334-1335-436C-A1D7-6C044FE73368 |
Contoh
Respons sukses
JSONformat
{
"User": {
"DisplayName": "xiaoq****",
"Email": "xiaoq****@example.com",
"UpdateDate": "2015-02-11T03:15:21Z",
"MobilePhone": "86-1860000****",
"UserId": "122748924538****",
"Comments": "This is a cloud computing engineer.",
"CreateDate": "2015-01-23T12:33:18Z",
"UserName": "xiaoq****"
},
"RequestId": "04F0F334-1335-436C-A1D7-6C044FE73368"
}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.