调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
请求参数
名称 | 类型 | 是否必选 | 示例值 | 描述 |
Action | String | 是 | DescribeDrdsInstance | 系统规定参数,取值:DescribeDrdsInstance |
DrdsInstanceId | String | 是 | drdssen1243as | DRDS 实例 ID |
AccessKeyId | String | 否 | ASU678UDIN9HdlahDHH | Access Key |
返回数据
名称 | 类型 | 示例值 | 描述 |
Data | DRDS 实例详情 |
||
RequestId | String | B4F76641-BA45-4320-BE7C-9C62CFDAC9B2 | 请求 ID |
Success | Boolean | true | 是否成功 |
示例
请求示例
http(s)://[Endpoint]/?Action=DescribeDrdsInstance &DrdsInstanceId=drdssen1243as &<公共请求参数>
正常返回示例
XML
格式
<DescribeDrdsInstance> <RequestId>B4F76641-BA45-4320-BE7C-9C62CFDAC9B2</RequestId> <Data> <Status>RUN</Status> <Description>drds_test</Description> <InstanceSpec>drds.sn2.4c16g.8C32G</InstanceSpec> <ZoneId>cn-hangzhou-e</ZoneId> <ExpireDate>4724323200000</ExpireDate> <CreateTime>1568620311000</CreateTime> <MachineType>ecs</MachineType> <Label>NORMAL</Label> <InstanceSeries>drds.sn2.4c16g</InstanceSeries> <VersionAction>Can_Be_Rolled_Back</VersionAction> <Type>PRIVATE</Type> <DrdsInstanceId>drdssen1243as</DrdsInstanceId> <OrderInstanceId>drdssen1243as</OrderInstanceId> <InstRole>MASTER</InstRole> <NetworkType>CLASSIC</NetworkType> <CommodityCode>drdsPost</CommodityCode> <RegionId>cn-hangzhou</RegionId> <Vips> <Vip> <Type>intranet</Type> <VpcId></VpcId> <Port>3306</Port> <Dns>drdssen1243as.drds.aliyuncs.com</Dns> </Vip> </Vips> </Data> <Success>true</Success> </DescribeDrdsInstance>
JSON
格式
{ "Data":{ "MachineType":"ecs", "Description":"drds_test", "OrderInstanceId":"drdssen1243as", "Type":"PRIVATE", "ZoneId":"cn-hangzhou-e", "InstRole":"MASTER", "NetworkType":"CLASSIC", "Status":"RUN", "ExpireDate":4724323200000, "Vips":{ "Vip":[ { "Dns":"drdssen1243as.drds.aliyuncs.com", "Port":3306, "Type":"intranet", "VpcId":"" } ] }, "VersionAction":"Can_Be_Rolled_Back", "RegionId":"cn-hangzhou", "CommodityCode":"drdsPost", "InstanceSpec":"drds.sn2.4c16g.8C32G", "CreateTime":1568620311000, "InstanceSeries":"drds.sn2.4c16g", "Label":"NORMAL", "DrdsInstanceId":"drdssen1243as" }, "RequestId":"B4F76641-BA45-4320-BE7C-9C62CFDAC9B2", "Success":true }
错误码
HttpCode | 错误码 | 错误信息 | 描述 |
400 | ActionUnauthorized | The specified action is not available for you | 指定的action未授权,请您先做RAM授权再进行操作。 |
访问错误中心查看更多错误码。