续费数据库实例

最近更新时间:2019-05-28 15:16:06

RenewDBInstance 续费数据库实例

续费或延期MySQL实例

请求参数

英文名称 中文名称 类型 是否必须 备注
Action 调用接口名称 String 取固定值:RenewDBInstance
Version API版本号 String 取固定值:2016-07-01
DBInstanceIdentifier 实例Id String
Duration 时长 Integer
DurationUnit 时长单位 String
BillType 计费方式 String 默认值:YEAR_MONTH,取值范围:YEAR_MONTH(包年包月),DAY(按日计费)。
EndTime 结束时间 String 该参数按日计费时有效。默认值:NULL,填入日期(如:2018-03-22)代表服务结束时间。

返回值

英文名称 中文名称 类型 备注
RequestId 请求ID String --
DBInstance RDS实例信息 List --

请求示例

http://krds.api.ksyun.com/?Action=RenewDBInstance&Version=2016-07-01&DBInstanceIdentifier=bb2d111a-af44-41ee-b10d-754f23bc59e1&BillType=DAY&EndTime=2018-03-22

示例返回

{
    "Data": {
        "Instances": [
            {
                "DBInstanceClass": {
                    "Id": "RDSOpenAPI_0772c82ea87c666d",
                    "Vcpus": 1,
                    "Disk": 10,
                    "Ram": 1
                },
                "DBInstanceIdentifier": "bb2d111a-af44-41ee-b10d-754f23bc59e1",
                "PreferredBackupWindow": 1440,
                "BackupRetentionPeriod": 30,
                "PreferredBackupTime": "02:00-03:00",
                "DBInstanceName": "test-modify-name",
                "DBInstanceStatus": "ACTIVE",
                "DBInstanceType": "HA",
                "DBParameterGroupId": "3b9aeb7b-552b-4707-92b2-15f0278bb73e",
                "GroupId": "71e2bd82-423d-41ae-a9e6-2131a447d780",
                "SecurityGroupId": "55705",
                "Vip": "10.69.59.242",
                "Port": 3306,
                "Engine": "mysql",
                "EngineVersion": "5.6",
                "InstanceCreateTime": "2018-03-20T11:03:23+0800",
                "MasterUserName": "test",
                "DatastoreVersionId": "96867ed6-6f6a-4006-bbc5-46c1f22d63a9",
                "Region": "cn-beijing-6",
                "VpcId": "0f71c616-6f5e-4f24-b809-59eb84016367",
                "PubliclyAccessible": false,
                "ReadReplicaDBInstanceIdentifiers": [
                    {
                        "id": "8e706675-3e5f-4f9c-a642-c9da21744d27",
                        "Vip": "10.69.56.2",
                        "ReadReplicaDBInstanceIdentifier": "488fcb98-8706-4954-aaf8-050d79b3ea9e"
                    }
                ],
                "BillType": "DAY",
                "OrderType": "REGULAR",
                "OrderSource": "OPENAPI",
                "MultiAvailabilityZone": false,
                "MasterAvailabilityZone": "cn-beijing-6a",
                "SlaveAvailabilityZone": "cn-beijing-6b",
                "ProductId": "35dee537-9f29-43cf-81c5-074ddaa71c70",
                "ServiceEndTime": "2018-03-22T23:59:59+0800",
                "DiskUsed": 0.2705078,
                "OrderUse": "RENEW",
                "ProjectId": 0,
                "ProjectName": "默认项目"
            }
        ]
    },
    "RequestId": "b0c3dd11-8308-4e68-9148-b9d54e16923c"
}

金山云,开启您的云计算之旅

立即注册