View instance account information

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes DescribeInstanceAccounts

The operation that you want to perform. Set the value to DescribeInstanceAccounts.

DrdsInstanceId String Yes drdshbga7******

The ID of the DRDS instance.

AccessKeyId String No test

AccessKey ID.

Response parameters

Prameter Type Sample response Description
InstanceAccounts

The returned list of instance accounts.

InstanceAccount

The details about an instance account.

AccountName String drds_flashback

The name of the account.

AccountType Integer 1

The type of the account.

DbPrivileges

The database permissions that the account has.

DbPrivilege

The details about a database permission.

DbName String drds_flashback

The name of the database.

Privilege String root

The permission.

Description String Permission

The permission description.

Host String %

The IP address of the associated host.

RequestId String 2D77B55F-50C4-4FC5-A89A-7746B7******

The ID of the request.

Success Boolean true

Indicates whether the request was successful.

Examples

Sample request


http(s)://[Endpoint]/? Action=DescribeInstanceAccounts
& <Common request parameters>

Sample success responses

XML format

<DescribeInstanceAccountsResponse>
      <InstanceAccounts>
            <InstanceAccount>
                  <Description>Created by DRDS</Description>
                  <DbPrivileges>
                        <DbPrivilege>
                              <DbName>drds_flashback</DbName>
                              <Privilege>ROOT</Privilege>
                        </DbPrivilege>
                  </DbPrivileges>
                  <Host>%</Host>
                  <AccountName>drds**********</AccountName>
                  <AccountType>0</AccountType>
            </InstanceAccount>
    
      </InstanceAccounts>
      <RequestId>2D77B55F-50C4-4FC5-A89A-7746B7******</RequestId>
      <Success>true</Success>
</DescribeInstanceAccountsResponse>

Error codes

HTTP status code Error code Error message Description
400 ActionUnauthorized The specified action is not available for you The error message returned because you are not authorized to perform this action. Perform RAM authorization first.

For a list of error codes, visit the API Error Center.