Query the structure of a DRDS instance

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 DescribeDrdsDbRdsRelationInfo

The parameter specified by the system. Value: DescribeDrdsDbRdsRelationInfo

DbName String Yes drds_test

DRDS database name

DrdsInstanceId String Yes drdssen******

DRDS instance ID

AccessKeyId String No ASU678UDIN9Hd******

Access Key

Response parameters

Prameter Type Sample response Description
Data

The list of Distributed Relational Database Service (DRDS) storage instance structures. Each item corresponds to a primary storage instance.

Data

The list of Distributed Relational Database Service (DRDS) storage instance structures. Each item corresponds to a primary storage instance.

RdsInstanceId String rm-m5xxxxxxxxx82

Storage instance ID

ReadOnlyInstanceInfo rm-m5xxxxxxxxx82

Read-only storage instance IDs

ReadOnlyInstanceIds

Read-only storage instance IDs

UsedInstanceId String rm-m5xxxxxxxxx82

The storage instance ID in use, which is used for the primary DRDS instance as the primary storage instance and for the read-only DRDS instance as the selected storage instance.

UsedInstanceType String RDS

Storage Instance types in use

RequestId String 2F7F8080-9132-4279-85D0-B7E5C4******

The ID of the request.

Success Boolean true

Indicates whether the call is successful.

Examples

Sample request


http(s)://[Endpoint]/? Action=DescribeDrdsDbRdsRelationInfo
&DbName=drds_test
&DrdsInstanceId=drdssen******
& <Common request parameters>

Sample success responses

XML format

<DescribeDrdsDbRdsRelationInfo>
	  <RequestId>E827BEE8-A8BE-4E86-992A-E6400B******</RequestId>
	  <Data>
		    <Data>
			      <ReadOnlyInstanceInfo>
				        <ReadOnlyInstanceIds>rm-m5xxxxxxxxx82</ReadOnlyInstanceIds>
			      </ReadOnlyInstanceInfo>
			      <UsedInstanceId>rm-m5xxxxxxxxx82</UsedInstanceId>
			      <UsedInstanceType>RDS</UsedInstanceType>
			      <RdsInstanceId>rm-m5xxxxxxxxx82</RdsInstanceId>
		    </Data>
	  </Data>
	  <Success>true</Success>
</DescribeDrdsDbRdsRelationInfo>

JSON format

{
	"Data":{
		"Data":[
			{
				"UsedInstanceType":"RDS",
				"RdsInstanceId":"rm-m5xxxxxxxxx82",
				"UsedInstanceId":"rm-m5xxxxxxxxx82",
				"ReadOnlyInstanceInfo":{
					"ReadOnlyInstanceIds":[
						"rm-m5xxxxxxxxx82"
					]
				}
			}
		]
	},
	"RequestId":"E827BEE8-A8BE-4E86-992A-E6400B******",
	"Success":true
}

Error codes

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