インターフェイス説明
すべての RAM ユーザーの一覧を表示します。
リクエストパラメータ
Action- 名称:Action
- データ型:String
- 必須項目:はい
- 説明:システムパラメータ、必須。 パラメータ値:「ListUsers」。
- 名称:Marker
- データ型:String
- 必須項目:いいえ
- 説明:返された結果がインターセプトされた場合は、「Marker」を使用して、インターセプトされた続きのコンテンツを取得できます。
- 名称:MaxItems
- データ型:Integer
- 必須項目:いいえ
- 値の範囲:[1 - 1000]
- デフォルト値:「100」。
- 説明:戻り値項目の数。 返された結果が「MaxItems」の制限に達して、インターセプトされた場合、リターンパラメータ
IsTruncated
の値はtrue
になります。
リターンパラメータ
IsTruncated- データ型:Boolean
- 説明:返された結果がインターセプトされているかどうかを判断します。
- データ型:String
- 説明:このパラメータは、
IsTruncated
の値がtrue
の場合にのみ使用できます。true
の場合はMarker
を使用して、返された結果のインターセプトされたコンテンツの続きを取得する必要があります。
- データ型:User型の配列User
- 説明:ユーザー情報の集合
必要な権限
Action
ram:ListUsers
ResourceACS: Ram: *: $ {accountant}: User /*
操作の例
リクエストの例https://ram.aliyuncs.com/?Action=ListUsers
&<Public request parameters>
戻り値の例- XML形式
<ListUsersResponse> <RequestId>4B450CA1-36E8-4AA2-8461-86B42BF4CC4E</RequestId> <Users> <User> <UserId>1227489245380721</UserId> <UserName>zhangqiang</UserName> <DisplayName>zhangqiang</DisplayName> <MobilePhone>86-18600008888</MobilePhone> <Email> zhangqiang@example.com </Email> <Comments>This is a cloud computing engineer.</Comments> <CreateDate>2015-01-23T12:33:18Z</CreateDate> <UpdateDate>2015-01-23T12:33:18Z</UpdateDate> </User> <User> <UserId>1406498224724456</UserId> <UserName>lili</UserName> <DisplayName>lili</DisplayName> <MobilePhone>86-18600009999</MobilePhone> <Email>lili@example.com</Email> <Comments>Permission administrator</Comments> <CreateDate>2015-02-18T17:22:08Z</CreateDate> <UpdateDate>2015-02-18T17:22:08Z</UpdateDate> </User> </Users> <IsTruncated>true</IsTruncated> <Marker>EXAMPLE</Marker> </ListUsersResponse>
- JSON形式
{ "RequestId" : "4B450CA1-36E8-4AA2-8461-86B42BF4CC4E", "IsTruncated": true, "Marker": "EXAMPLE", "Users" : { "User" : [ { "UserId" : "1227489245380721", "UserName" : "zhangqiang", "DisplayName": "zhangqiang", "MobilePhone": "86-18600008888", "Email": "zhangqiang@example.com", "Comments": "This is a cloud computing engineer". "CreateDate" : "2015-01-23T12:33:18Z", "UpdateDate" : "2015-01-23T12:33:18Z" }, { "UserId" : "1406498224724456", "UserName" : "lili", "DisplayName": "lili", "MobilePhone": "86-18600009999", "Email": "lili@example.com", "Comments": "Permission administrator" "CreateDate" : "2015-02-18T17:22:08Z", "UpdateDate" : "2015-02-18T17:22:08Z" } ] } }