You can call the DescribeDBInstancesAsCsv operation to query information about an instance.
Operation Description
This operation is no longer available. You can call the DescribeDBInstanceAttribute operation to query information about an instance.
Authorization information
The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action
policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:
- Operation: the value that you can use in the Action element to specify the operation on a resource.
- Access level: the access level of each operation. The levels are read, write, and list.
- Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
- The required resource types are displayed in bold characters.
- If the permissions cannot be granted at the resource level,
All Resources
is used in the Resource type column of the operation.
- Condition Key: the condition key that is defined by the cloud service.
- Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
Operation | Access level | Resource type | Condition key | Associated operation |
---|---|---|---|---|
rds:DescribeDBInstancesAsCsv | READ |
|
| none |
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
RegionId | string | Yes | The region ID of the instance. You can call the DescribeRegions operation to query the most recent region list. | cn-hangzhou |
DBInstanceId | string | No | The ID of the instance. You can call the DescribeDBInstances operation to query the ID of the instance. | rm-uf6wjk5xxxxxxxxxx |
ResourceGroupId | string | No | The ID of the resource group to which the instance belongs. | rg-acfmy***** |
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "1AD222E9-E606-4A42-BF6D-8A444291****\t",
"Items": {
"DBInstanceAttribute": [
{
"VpcId": "vpc-uf6f7l4fg90xxxxxxxxxx\t ",
"CreationTime": "2011-05-30T12:11:04Z",
"TempDBInstanceId": "rm-uf64zsuxxxxxxxxxx",
"SupportUpgradeAccountType": "No",
"IncrementSourceDBInstanceId": "rm-uf6wjk5xxxxxxxxxx",
"DBInstanceMemory": 4096,
"MaintainTime": "00:00Z-02:00Z",
"PayType": "Postpaid",
"Tags": "0",
"AvailabilityValue": "100",
"ReadDelayTime": "0",
"ConnectionMode": "Performance",
"Port": "3306",
"AccountType": "super",
"LockMode": "Unlock",
"EngineVersion": "8.0",
"MaxIOPS": 150,
"ConnectionString": "rm-uf6wjk5xxxxxxxxxx.mysql.rds.aliyuncs.com",
"InstanceNetworkType": "VPC",
"SecurityIPList": "42.xx.xx.xx",
"MasterInstanceId": "rm-uf6wjk5xxxxxxxxxx",
"DBInstanceClassType": "s",
"DBInstanceDescription": "0",
"DBInstanceCPU": "2",
"ExpireTime": "2019-03-27T16:00:00Z",
"DBInstanceNetType": "Internet",
"DBInstanceType": "Primary",
"AccountMaxQuantity": 500,
"LockReason": "instance_expired",
"DBInstanceStatus": "Running",
"DBMaxQuantity": 200,
"GuardDBInstanceId": "rm-uf64zsuxxxxxxxxxx",
"RegionId": "cn-hangzhou",
"DBInstanceStorage": 10,
"VSwitchId": "vsw-uf6adz52c2pxxxxxxxxxx\t",
"ZoneId": "cn-hangzhou-h",
"Category": "0",
"MaxConnections": 60,
"DBInstanceId": "rm-uf6wjk5xxxxxxxxxx",
"DBInstanceClass": "rds.mys2.small",
"Engine": "MySQL"
}
]
}
}
Error codes
HTTP status code | Error code | Error message | Description |
---|---|---|---|
400 | InstanceNames.Malformed | instance number of Instance Names should be less than 3000 | The operation failed. The instance name must be less than 3,000 characters in length. |
400 | 400 | Export all instances more than 6 times in an hour, please try 1 hour later. | - |
403 | Export.InProcess | There is already a task running, please try later | A task is running. Please try again later. |
For a list of error codes, visit the Service error codes.