Last updated: 2019-09-09 14:59:27

1. API Description

API domain name:

This API (DescribeAccounts) pulls the list of instance accounts.

API request rate limit: 20 requests/sec.

2. Input Parameters

The following parameters are required for requesting this API, including action-specific parameters and common parameters. For more information about common parameters for all requests, see Common Request Parameters.

Parameter name Required Type Description
Action Yes String Common parameter. The name of this API: DescribeAccounts
Version Yes String Common parameter. The version of this API: 2018-03-28
Region Yes String Common parameter. For more information, see the list of regions supported by the product.
InstanceId Yes String Instance ID
Limit No Integer Number of results per page; value range: 1-100; 20 by default
Offset No Integer Page number start value; starting at 0; 0 by default

3. Output Parameters

Parameter name Type Description
InstanceId String Instance ID
Accounts Array of AccountDetail Account information List
RequestId String The ID of the request. Each request returns a unique ID. The RequestId is required to troubleshoot issues.

4. Samples

Sample 1. Pulling the List of Instance Accounts

Input Sample Code
&<Common request parameter>

Output Sample Code

  "Response": {
    "RequestId": "5729760c-db94-4c71-a1ee-ebd43adae189",
    "InstanceId": "mssql-632eyp63",
    "Accounts": [
        "Name": "wang",
        "Remark": "wang test account",
        "CreateTime": "2018-07-27 22:24:54",
        "Status": 2,
        "UpdateTime": "2018-07-27 22:25:25",
        "PassTime": "2018-07-27 22:25:25",
        "Dbs": [],
        "InternalStatus": "enable"
        "Name": "test",
        "Remark": "N/A",
        "CreateTime": "2018-08-07 15:28:00",
        "Status": 2,
        "UpdateTime": "2018-08-07 15:28:00",
        "PassTime": "0000-00-00 00:00:00",
        "Dbs": [],
        "InternalStatus": "enable"

5. Developer Resources

API Explorer

This tool provides various capabilities such as online call, signature verification, SDK code generation, and quick API retrieval that significantly reduce the difficulty of using TencentCloud API.

6. Error Codes

The following only lists the error codes related to this API. For other error codes, see Common Error Codes.

Error Code Description
InternalError.DBError Database error.
InternalError.SystemError System error.
InvalidParameter.ParamsAssertFailed Parameter assertion conversion error.
ResourceNotFound.InstanceNotFound The instance does not exist.