Queries all endpoints of an instance.
Operation description
Debugging
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:DescribeDBInstanceNetInfoForChannel | get | *DBInstance acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId} |
| none |
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
ClientToken | string | No | The client token that is used to ensure the idempotence of the request. You can use the client to generate the token, but you must make sure that the token is unique among different requests. The token can contain only ASCII characters and cannot exceed 64 characters in length. | 0c593ea1-3bea-11e9-b96b-88********** |
DBInstanceId | string | Yes | The ID of the instance. You can call the DescribeDBInstances operation to query the instance ID. | rm-bp1k8s41l2o52**** |
Flag | string | No | An internal parameter. You do not need to specify this parameter. | None |
DBInstanceNetRWSplitType | string | No | The type of the endpoint to query. Valid values:
| 0 |
Response parameters
Examples
Sample success responses
JSON
format
{
"InstanceNetworkType": "VPC",
"RequestId": "61DF1F28-F409-50C0-B90A-CCE82D44****",
"DBInstanceNetInfos": {
"DBInstanceNetInfo": [
{
"Upgradeable": "Disabled",
"expiredTime": "5183779",
"IPType": "Inner",
"Port": "6379",
"VPCId": "vpc-bp1nme44gek34slfc****",
"Availability": "Unavailable",
"VSwitchId": "vsw-bp1e7clcw529l773d****",
"ConnectionStringType": "Normal",
"ConnectionString": "rm-uf6w*****.mysql.rds.aliyuncs.com",
"MaxDelayTime": "12",
"IPAddress": "172.16.XX.XX",
"DistributionType": "Standard",
"SecurityIPGroups": {
"securityIPGroup": [
{
"SecurityIPs": "127.0.XX.XX",
"SecurityIPGroupName": "Default"
}
]
},
"DBInstanceWeights": {
"DBInstanceWeight": [
{
"Availability": "Unavailable",
"Weight": "100",
"DBInstanceId": "rm-uf6wjk5*****",
"DBInstanceType": "Master"
}
]
}
}
]
}
}
Error codes
HTTP status code | Error code | Error message | Description |
---|---|---|---|
400 | Forbidden.RAM | User not authorized to operate on the specified resource, or this API does not support RAM. | - |
403 | IncorrectDBInstanceCharacterType | Current DB Instance character_type does not support this operation. | This operation is not supported for the character type of the current instance. |
404 | InvalidDBInstanceName.NotFound | The database instance does not exist. | The name of the RDS instance cannot be found. Check the name of the RDS instance. |
404 | Readins.NotFound | The current instance does not contain any read only instance. The operation is not supported. | The operation failed. The RDS instance is not attached with read-only RDS instances. |
404 | InvalidRwSplitNetType.NotFound | The RwSplitNetType is not found. | The operation failed. Create an RDS instance for which read/write splitting is enabled and try again. |
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|---|---|
2024-11-20 | API Description Update. The Error code has changed | View Change Details |
2022-10-28 | The Error code has changed | View Change Details |
2022-06-20 | Add Operation | View Change Details |