调用QueryAvailableInstances查询用户可用实例列表。

调试

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

请求参数

名称 类型 是否必选 示例值 描述
Action String QueryAvailableInstances

系统规定参数。取值:QueryAvailableInstances。

Region String cn-hangzhou

地域。

PageNum Integer 1

页码。

PageSize Integer 20

每页条数。

ProductCode String rds

产品代码。

ProductType String rds

产品类型。

SubscriptionType String Subscription

订阅类型。

  • Subscription:预付费。
  • PayAsYouGo:后付费。
InstanceIDs String rm-xxxxxxxxxxxx

实例ID。多个ID用英文逗号分隔,最大不超过100个。

EndTimeStart String 2016-05-23T12:00:00Z

结束时间段起,符合ISO8601标准的utc时间格式,例如2016-05-23T12:00:00Z。

EndTimeEnd String 2016-05-23T12:00:00Z

结束时间段止,符合ISO8601标准的utc时间格式,例如2016-05-23T12:00:00Z。

CreateTimeStart String 2016-05-23T12:00:00Z

创建时间段起,符合ISO8601标准的utc时间格式。

CreateTimeEnd String 2016-05-23T12:00:00Z

创建时间段止,符合ISO8601标准的utc时间格式。

RenewStatus String AutoRenewal

续费状态,取值:

  • AutoRenewal:自动续费。
  • ManualRenewal:手动续费。
  • NotRenewal:不续费。

返回数据

名称 类型 示例值 描述
Code String Success

状态码。

Data Struct

返回数据。

InstanceList Array

实例信息的列表。

CreateTime String 2019-09-08T16:00:00Z

创建时间。

EndTime String 2019-09-08T16:00:00Z

结束时间。

ExpectedReleaseTime String 2019-09-08T16:00:00Z

期望释放时间。

InstanceID String 1049056

实例ID。

OwnerId Long 325352345

所有者ID。

ProductCode String rds

产品代码。

ProductType String rds

产品类型。

Region String cn-hangzhou

地域。

ReleaseTime String 2019-09-08T16:00:00Z

释放时间。

RenewStatus String ManualRenewal

续费状态,取值:

  • AutoRenewal:自动续费。
  • ManualRenewal:手动续费。
  • NotRenewal:不续费。
RenewalDuration Integer 1

自动续费周期数量。

RenewalDurationUnit String M

自动续费周期单位,取值:

  • M:月。
  • Y:年。
Seller String 123123123

卖方。

SellerId Long 123123123

卖方ID。

Status String Creating

状态。

StopTime String 2019-09-08T16:00:00Z

停止时间。

SubStatus String Normal

子状态。

SubscriptionType String Subscription

订阅类型,取值:

  • Subscription:预付费。
  • PayAsYouGo:后付费。
PageNum Integer 1

页码。

PageSize Integer 10

每页条数。

TotalCount Integer 11

总记录数。

Message String Successful!

错误信息。

RequestId String C7C15585-8349-4C62-BEE4-5A391841B9BE

请求ID。

Success Boolean true

是否成功。

示例

请求示例

http(s)://[Endpoint]/?Action=QueryAvailableInstances
&<公共请求参数>

正常返回示例

XML 格式

<QueryAvailableInstancesResponse>
      <Data>
            <TotalCount>51</TotalCount>
            <PageSize>20</PageSize>
            <PageNum>1</PageNum>
            <InstanceList>
                  <Status>Creating</Status>
                  <SubStatus>Normal</SubStatus>
                  <SubscriptionType>Subscription</SubscriptionType>
                  <RenewStatus>ManualRenewal</RenewStatus>
                  <InstanceID>IFP-ji2gz****</InstanceID>
                  <ProductCode>flowpack</ProductCode>
                  <CreateTime>2999-09-08T16:00:00Z</CreateTime>
                  <OwnerId>181****</OwnerId>
                  <EndTime>2016-11-07T16:00:00Z</EndTime>
                  <Seller>26888</Seller>
            </InstanceList>
            <InstanceList>
                  <Status>Creating</Status>
                  <SubStatus>Normal</SubStatus>
                  <SubscriptionType>Subscription</SubscriptionType>
                  <RenewStatus>ManualRenewal</RenewStatus>
                  <InstanceID>IFP-6dyrc****</InstanceID>
                  <ProductCode>flowpack</ProductCode>
                  <CreateTime>2999-09-08T16:00:00Z</CreateTime>
                  <OwnerId>181****</OwnerId>
                  <EndTime>2016-11-07T16:00:00Z</EndTime>
                  <Seller>26888</Seller>
            </InstanceList>
            <InstanceList>
                  <Status>Creating</Status>
                  <SubStatus>Normal</SubStatus>
                  <SubscriptionType>Subscription</SubscriptionType>
                  <RenewStatus>ManualRenewal</RenewStatus>
                  <InstanceID>IFP-ne1nt5uw1</InstanceID>
                  <ProductCode>flowpack</ProductCode>
                  <CreateTime>2999-09-08T16:00:00Z</CreateTime>
                  <OwnerId>181****</OwnerId>
                  <EndTime>2016-11-07T16:00:00Z</EndTime>
                  <Seller>26888</Seller>
            </InstanceList>
            <InstanceList>
                  <Status>Creating</Status>
                  <SubStatus>Normal</SubStatus>
                  <SubscriptionType>Subscription</SubscriptionType>
                  <RenewStatus>ManualRenewal</RenewStatus>
                  <InstanceID>IFP-vj5ry82x1</InstanceID>
                  <ProductCode>flowpack</ProductCode>
                  <CreateTime>2999-09-08T16:00:00Z</CreateTime>
                  <OwnerId>181****</OwnerId>
                  <EndTime>2016-11-07T16:00:00Z</EndTime>
                  <Seller>26888</Seller>
            </InstanceList>
            <InstanceList>
                  <Status>Creating</Status>
                  <SubStatus>Normal</SubStatus>
                  <SubscriptionType>Subscription</SubscriptionType>
                  <RenewStatus>ManualRenewal</RenewStatus>
                  <InstanceID>IFP-e6oupf251</InstanceID>
                  <ProductCode>flowpack</ProductCode>
                  <CreateTime>2999-09-08T16:00:00Z</CreateTime>
                  <OwnerId>181****</OwnerId>
                  <EndTime>2016-11-10T16:00:00Z</EndTime>
                  <Seller>26888</Seller>
            </InstanceList>
            <InstanceList>
                  <Status>Creating</Status>
                  <SubStatus>Normal</SubStatus>
                  <SubscriptionType>PayAsYouGo</SubscriptionType>
                  <InstanceID>988643</InstanceID>
                  <ProductCode>cmjj011731</ProductCode>
                  <CreateTime>2999-09-08T16:00:00Z</CreateTime>
                  <OwnerId>181****</OwnerId>
                  <EndTime>2999-09-08T16:00:00Z</EndTime>
                  <Seller>26888</Seller>
            </InstanceList>
            <InstanceList>
                  <Status>Creating</Status>
                  <SubStatus>Normal</SubStatus>
                  <SubscriptionType>PayAsYouGo</SubscriptionType>
                  <InstanceID>988647</InstanceID>
                  <ProductCode>cmjj011731</ProductCode>
                  <CreateTime>2999-09-08T16:00:00Z</CreateTime>
                  <OwnerId>181****</OwnerId>
                  <EndTime>2999-09-08T16:00:00Z</EndTime>
                  <Seller>26888</Seller>
            </InstanceList>
            <InstanceList>
                  <Status>Creating</Status>
                  <SubStatus>Normal</SubStatus>
                  <SubscriptionType>PayAsYouGo</SubscriptionType>
                  <InstanceID>988648</InstanceID>
                  <ProductCode>cmjj011731</ProductCode>
                  <CreateTime>2999-09-08T16:00:00Z</CreateTime>
                  <OwnerId>181****</OwnerId>
                  <EndTime>2999-09-08T16:00:00Z</EndTime>
                  <Seller>26888</Seller>
            </InstanceList>
            <InstanceList>
                  <Status>Creating</Status>
                  <SubStatus>Normal</SubStatus>
                  <SubscriptionType>PayAsYouGo</SubscriptionType>
                  <InstanceID>988649</InstanceID>
                  <ProductCode>cmjj011731</ProductCode>
                  <CreateTime>2999-09-08T16:00:00Z</CreateTime>
                  <OwnerId>181****</OwnerId>
                  <EndTime>2999-09-08T16:00:00Z</EndTime>
                  <Seller>26888</Seller>
            </InstanceList>
            <InstanceList>
                  <Status>Creating</Status>
                  <SubStatus>Normal</SubStatus>
                  <SubscriptionType>PayAsYouGo</SubscriptionType>
                  <InstanceID>988651</InstanceID>
                  <ProductCode>cmjj011731</ProductCode>
                  <CreateTime>2999-09-08T16:00:00Z</CreateTime>
                  <OwnerId>181****</OwnerId>
                  <EndTime>2999-09-08T16:00:00Z</EndTime>
                  <Seller>26888</Seller>
            </InstanceList>
            <InstanceList>
                  <Status>Creating</Status>
                  <SubStatus>Normal</SubStatus>
                  <SubscriptionType>PayAsYouGo</SubscriptionType>
                  <InstanceID>1049056</InstanceID>
                  <ProductCode>cmjj011399</ProductCode>
                  <CreateTime>2999-09-08T16:00:00Z</CreateTime>
                  <OwnerId>181****</OwnerId>
                  <EndTime>2999-09-08T16:00:00Z</EndTime>
                  <Seller>26888</Seller>
            </InstanceList>
            <InstanceList>
                  <Status>Creating</Status>
                  <SubStatus>Normal</SubStatus>
                  <SubscriptionType>PayAsYouGo</SubscriptionType>
                  <InstanceID>1049052</InstanceID>
                  <ProductCode>cmjj011399</ProductCode>
                  <CreateTime>2999-09-08T16:00:00Z</CreateTime>
                  <OwnerId>181****</OwnerId>
                  <EndTime>2999-09-08T16:00:00Z</EndTime>
                  <Seller>26888</Seller>
            </InstanceList>
      </Data>
      <Message>Successful!</Message>
      <RequestId>C7C15585-8349-4C62-BEE4-5A391841B9BE</RequestId>
      <Success>true</Success>
      <Code>Success</Code>
</QueryAvailableInstancesResponse>

JSON 格式

{
    "Data": {
        "TotalCount": 51,
        "PageSize": 20,
        "PageNum": 1,
        "InstanceList": [
            {
                "Status": "Creating",
                "SubStatus": "Normal",
                "SubscriptionType": "Subscription",
                "RenewStatus": "ManualRenewal",
                "InstanceID": "IFP-ji2gz****",
                "ProductCode": "flowpack",
                "CreateTime": "2999-09-08T16:00:00Z",
                "OwnerId": "181****",
                "EndTime": "2016-11-07T16:00:00Z",
                "Seller": 26888
            },
            {
                "Status": "Creating",
                "SubStatus": "Normal",
                "SubscriptionType": "Subscription",
                "RenewStatus": "ManualRenewal",
                "InstanceID": "IFP-6dyrc****",
                "ProductCode": "flowpack",
                "CreateTime": "2999-09-08T16:00:00Z",
                "OwnerId": "181****",
                "EndTime": "2016-11-07T16:00:00Z",
                "Seller": 26888
            },
            {
                "Status": "Creating",
                "SubStatus": "Normal",
                "SubscriptionType": "Subscription",
                "RenewStatus": "ManualRenewal",
                "InstanceID": "IFP-ne1nt5uw1",
                "ProductCode": "flowpack",
                "CreateTime": "2999-09-08T16:00:00Z",
                "OwnerId": "181****",
                "EndTime": "2016-11-07T16:00:00Z",
                "Seller": 26888
            },
            {
                "Status": "Creating",
                "SubStatus": "Normal",
                "SubscriptionType": "Subscription",
                "RenewStatus": "ManualRenewal",
                "InstanceID": "IFP-vj5ry82x1",
                "ProductCode": "flowpack",
                "CreateTime": "2999-09-08T16:00:00Z",
                "OwnerId": "181****",
                "EndTime": "2016-11-07T16:00:00Z",
                "Seller": 26888
            },
            {
                "Status": "Creating",
                "SubStatus": "Normal",
                "SubscriptionType": "Subscription",
                "RenewStatus": "ManualRenewal",
                "InstanceID": "IFP-e6oupf251",
                "ProductCode": "flowpack",
                "CreateTime": "2999-09-08T16:00:00Z",
                "OwnerId": "181****",
                "EndTime": "2016-11-10T16:00:00Z",
                "Seller": 26888
            },
            {
                "Status": "Creating",
                "SubStatus": "Normal",
                "SubscriptionType": "PayAsYouGo",
                "InstanceID": 988643,
                "ProductCode": "cmjj011731",
                "CreateTime": "2999-09-08T16:00:00Z",
                "OwnerId": "181****",
                "EndTime": "2999-09-08T16:00:00Z",
                "Seller": 26888
            },
            {
                "Status": "Creating",
                "SubStatus": "Normal",
                "SubscriptionType": "PayAsYouGo",
                "InstanceID": 988647,
                "ProductCode": "cmjj011731",
                "CreateTime": "2999-09-08T16:00:00Z",
                "OwnerId": "181****",
                "EndTime": "2999-09-08T16:00:00Z",
                "Seller": 26888
            },
            {
                "Status": "Creating",
                "SubStatus": "Normal",
                "SubscriptionType": "PayAsYouGo",
                "InstanceID": 988648,
                "ProductCode": "cmjj011731",
                "CreateTime": "2999-09-08T16:00:00Z",
                "OwnerId": "181****",
                "EndTime": "2999-09-08T16:00:00Z",
                "Seller": 26888
            },
            {
                "Status": "Creating",
                "SubStatus": "Normal",
                "SubscriptionType": "PayAsYouGo",
                "InstanceID": 988649,
                "ProductCode": "cmjj011731",
                "CreateTime": "2999-09-08T16:00:00Z",
                "OwnerId": "181****",
                "EndTime": "2999-09-08T16:00:00Z",
                "Seller": 26888
            },
            {
                "Status": "Creating",
                "SubStatus": "Normal",
                "SubscriptionType": "PayAsYouGo",
                "InstanceID": 988651,
                "ProductCode": "cmjj011731",
                "CreateTime": "2999-09-08T16:00:00Z",
                "OwnerId": "181****",
                "EndTime": "2999-09-08T16:00:00Z",
                "Seller": 26888
            },
            {
                "Status": "Creating",
                "SubStatus": "Normal",
                "SubscriptionType": "PayAsYouGo",
                "InstanceID": 1049056,
                "ProductCode": "cmjj011399",
                "CreateTime": "2999-09-08T16:00:00Z",
                "OwnerId": "181****",
                "EndTime": "2999-09-08T16:00:00Z",
                "Seller": 26888
            },
            {
                "Status": "Creating",
                "SubStatus": "Normal",
                "SubscriptionType": "PayAsYouGo",
                "InstanceID": 1049052,
                "ProductCode": "cmjj011399",
                "CreateTime": "2999-09-08T16:00:00Z",
                "OwnerId": "181****",
                "EndTime": "2999-09-08T16:00:00Z",
                "Seller": 26888
            }
        ]
    },
    "Message": "Successful!",
    "RequestId": "C7C15585-8349-4C62-BEE4-5A391841B9BE",
    "Success": true,
    "Code": "Success"
}

错误码

访问错误中心查看更多错误码。