Bir kullanıcının ayrıntılarını sorgular.
Hata Ayıklama
İstek parametreleri
| Parametre | Tür | Gerekli | Örnek | Açıklama |
| Action | String | Evet | GetUser |
|
| Tid | Long | Evet | 3*** |
|
| Uid | String | Hayır | 22973492647626**** |
|
| UserId | String | Hayır | 51**** |
|
| RegionId | String | Hayır | cn-hangzhou |
|
Yanıt parametreleri
| Parametre | Tür | Örnek | Açıklama |
| User | Object | Kullanıcı bilgileri. | |
| State | String | NORMAL | Kullanıcının durumu. Geçerli değerler:
|
| CurResultCount | Long | 28 | Geçerli gün içinde sorgulanan satır sayısı. |
| UserId | String | 51**** | Kullanıcı kimliği. |
| LastLoginTime | String | 2021-11-08 11:26:21 | Kullanıcının konsola en son giriş yaptığı tarih ve saat. |
| MaxResultCount | Long | 10000 | Geçerli gün içinde sorgulanabilecek maksimum satır sayısı. |
| ParentUid | Long | 140692647406**** | Kullanıcının Alibaba Cloud hesabının UID'si. Not Bir Alibaba Cloud hesabı bir veya daha fazla RAM kullanıcısı içerebilir. |
| RoleIdList | Array of Integer | 1 | Kullanıcıya atanan rolün kimliği. Geçerli değerler:
|
| RoleNameList | Array of String | USER | Kullanıcıya atanan rolün adı. Geçerli değerler:
|
| NickName | String | User_NickName | Kullanıcının takma adı. |
| MaxExecuteCount | Long | 2000 | Geçerli gün içinde çalıştırılabilecek maksimum sorgu sayısı. |
| CurExecuteCount | Long | 3 | Geçerli gün içinde çalıştırılan sorgu sayısı. |
| Mobile | String | 1389223**** | Bildirimlerin alınacağı cep telefonu numarası. Not
|
| Uid | String | 22275482072787**** | Kullanıcı UID'si. |
| String | Uesr_email | Bildirimlerin alınacağı e-posta adresi. Not
| |
| DingRobot | String | https://XXX.dingtalk.com/robot/send?access_token=*** | Bildirimlerin alınacağı DingTalk sohbet botu URL'si. Not
|
| Webhook | String | http://dms-XXX.aliyun.com:8*** | Bildirimlerin alınacağı Webhook URL'si. Not
|
| SignatureMethod | String | NONE | Webhook URL'si kullanılırken bağlantıları güvence altına almak için kullanılan imzalama yöntemi. Geçerli değerler:
|
| NotificationMode | String | Bildirim yöntemi. Sistem bir veya daha fazla değer döndürür. Geçerli değerler:
| |
| RequestId | String | 804BB128-CAFA-5DD0-BA1E-43DDE488**** | İstek kimliği. |
| ErrorCode | String | UnknownError | Döndürülen hata kodu. |
| ErrorMessage | String | Unknown server error | Döndürülen hata mesajı. |
| Success | Boolean | true | İsteğin başarılı olup olmadığını belirtir. Geçerli değerler:
|
Örnekler
Örnek istekler
http(s)://dms-enterprise.aliyuncs.com/?Action=GetUser
&Tid=3***
&Uid=22973492647626****
&UserId=51****
&<Common request parameters>
Örnek başarılı yanıtlar
XML biçimi
HTTP/1.1 200 OK
Content-Type:application/xml
<GetUserResponse>
<User>
<NotificationMode/>
<Email>Uesr_email</Email>
<RoleNameList>
<RoleNames>USER</RoleNames>
<RoleNames>ADMIN</RoleNames>
</RoleNameList>
<NickName>User_NickName</NickName>
<MaxExecuteCount>2000</MaxExecuteCount>
<CurResultCount>28</CurResultCount>
<LastLoginTime>2021-11-09 13:39:21</LastLoginTime>
<Uid>22275482072787****</Uid>
<RoleIdList>
<RoleIds>1</RoleIds>
<RoleIds>3</RoleIds>
</RoleIdList>
<MaxResultCount>10000</MaxResultCount>
<State>NORMAL</State>
<UserId>51****</UserId>
<CurExecuteCount>3</CurExecuteCount>
<ParentUid>140692647406****</ParentUid>
</User>
<RequestId>804BB128-CAFA-5DD0-BA1E-43DDE488****</RequestId>
<Success>true</Success>
</GetUserResponse>
JSON biçimi
HTTP/1.1 200 OK
Content-Type:application/json
{
"User" : {
"NotificationMode" : "",
"Email" : "Uesr_email",
"RoleNameList" : {
"RoleNames" : [ "USER", "ADMIN" ]
},
"NickName" : "User_NickName",
"MaxExecuteCount" : 2000,
"CurResultCount" : 28,
"LastLoginTime" : "2021-11-09 13:39:21",
"Uid" : "22275482072787****",
"RoleIdList" : {
"RoleIds" : [ 1, 3 ]
},
"MaxResultCount" : 10000,
"State" : "NORMAL",
"UserId" : "51****",
"CurExecuteCount" : 3,
"ParentUid" : "140692647406****"
},
"RequestId" : "804BB128-CAFA-5DD0-BA1E-43DDE488****",
"Success" : true
}
Hata kodları
Hata kodlarının listesi için API Error Center sayfasını ziyaret edin.