All Products
Search
Document Center

QueryAccountList

Last Updated: Mar 05, 2019

Description

You can call this operation to query the list of database accounts based on input parameters.

Request parameters

Name Type Required Description
Action String Yes The operation that you want to perform. Set the value to QueryAccountList.
RegionID String Yes The ID of the region where you make the request. For more information, see DLA regions in Appendix.
PageSize Integer Yes The number of returned data records per page, which is greater than 0.
PageNumber Integer Yes The page number used to query data, starting from 1.

Response parameters

Name Type Description
Common response parameters - For more information, see Common parameters.
RequestId String The GUID generated by Alibaba Cloud for the request.
RegionId String The ID of the region where you make the request.
PageNumber String The value of PageNumber in the request is directly returned.
PageSize String The value of PageSize in the request is directly returned.
TotalCount String The total number of database accounts you have.
Data QueryAccount The query account list response.

QueryAccount type

Name Type Description
role String User type. Fixed value: user.
userName String The integrated database account used to log on to the database.

Sample requests

  1. http://openanalytics.cn-hangzhou.aliyuncs.com/?Action=QueryAccountList
  2. &RegionID=<RegionID>, for example, cn-hangzhou
  3. &PageSize=10
  4. &PageNumber=1
  5. &<Common request parameters>

Sample responses

XML format

  1. <QueryAccountListResponse>
  2. <RequestId>9120DD99-1D22-4579-9C07-1E20D5B8656D</RequestId>
  3. <RegionId>cn-hangzhou</RegionId>
  4. <Data>
  5. <role>user</RegionId>
  6. <userName>admin_s1863300811000000</RegionId>
  7. </Data>
  8. <PageNumber>1</PageNumber>
  9. <TotalCount>1</TotalCount>
  10. <PageSize>10</PageSize>
  11. </QueryAccountListResponse>

JSON format

  1. {
  2. "RequestId": "9120DD99-1D22-4579-9C07-1E20D5B8656D",
  3. "RegionId": "cn-hangzhou",
  4. "Data": [
  5. {
  6. "role": "user",
  7. "userName": "admin_s1863300811000000"
  8. }
  9. ],
  10. "PageNumber": 1,
  11. "TotalCount": 1,
  12. "PageSize": 10
  13. }