最近更新时间:2021-12-03 16:18:30
将参数组模板应用于实例。此接口是修改实例的相关信息,其余用法请见【实例修改】。
注意:
应用的参数模板中需重启的参数和修改前不同,重启后方可生效。
参数组应用不会修改实例对应参数组ID,只是修改对应的参数值。
所选参数组版本必须和实例版本一致。
GET
英文名称 | 中文名称 | 类型 | 是否必须 | 备注 |
---|---|---|---|---|
Action | 调用接口名称 | String | 是 | 取固定值:ModifyDBInstance |
Version | API版本号 | String | 是 | 取固定值:2016-07-01 |
DBInstanceIdentifier | 实例ID | String | 是 | |
DBParameterGroupId | 参数组ID | String | 是 | 通过参数组-列表(详情)接口获取 |
英文名称 | 中文名称 | 类型 | 备注 |
---|---|---|---|
RequestId | 请求ID | String | – |
Data.DBParameterGroups | 参数组列表 | List | - |
DBParameterGroups:
英文名称 | 中文名称 | 类型 | 备注 |
---|---|---|---|
DBParameterGroupId | 参数组ID | String | – |
DBParameterGroupName | 参数组名称 | String | - |
EngineVersion | 数据库引擎版本 | String | |
Engine | 数据库引擎 | String | |
Description | 参数组描述 | String | |
Parameters | 参数组参数值 | Map<String,Object> |
http://krds.{{region}}.api.ksyun.com/?Action=ModifyDBInstance&Version=2016-07-01&DBParameterGroupId=72855f31-2cc0-4796-b3d8-d1de76c9a3dc&DBInstanceIdentifier=4d97f65f-5603-4373-b870-48a280ecc464
{
"Data": {
"Instances": [
{
"DBInstanceClass": {
"Id": "RDSOpenAPI_a1c0d69af36b94bb",
"Iops": 2400,
"Vcpus": 1,
"Disk": 5,
"Ram": 2,
"Mem": 2,
"MaxConn": 400
},
"DBInstanceIdentifier": "4d97f65f-5603-4373-b870-48a280ecc464",
"DBInstanceName": "KingSoft_Test",
"DBInstanceStatus": "ACTIVE",
"DBInstanceType": "HRDS",
"DBParameterGroupId": "60c3de60-033f-4101-af78-24b12974ad78",
"PreferredBackupTime": "01:00-02:00",
"GroupId": "2d2e0aac-9127-4a8e-b5aa-c67d6c7ff1d5",
"SecurityGroupId": "64506",
"Vip": "10.0.1.38",
"Port": 3306,
"Engine": "mysql",
"EngineVersion": "5.7",
"InstanceCreateTime": "2021-08-04T16:21:50+0800",
"MasterUserName": "admin",
"DatastoreVersionId": "771a9409-56ae-4b55-87b4-e087a4a59437",
"VpcId": "530b5d42-1c88-4ea0-adad-1993c9902751",
"SubnetId": "953b854b-099c-41dd-9f4f-18f31ccb3936",
"PubliclyAccessible": true,
"BillType": "HourlyInstantSettlement",
"OrderType": "REGULAR",
"MultiAvailabilityZone": false,
"MasterAvailabilityZone": "cn-beijing-6a",
"SlaveAvailabilityZone": "cn-beijing-6a",
"AvailabilityZoneList": [
{
"MemberType": "master",
"AzCode": "cn-beijing-6a"
},
{
"MemberType": "standby",
"AzCode": "cn-beijing-6a"
}
],
"DiskUsed": 1.5292969,
"InnerEip": "10.69.82.88",
"InneEipPort": 30906,
"InnerAzCode": "cn-beijing-6a",
"Audit": false,
"ReadReplicaDBInstanceIdentifiers": [],
"ProductId": "e7b54d25-aa5e-497f-be77-1bac7d99755c",
"ProductWhat": 1,
"ProjectId": 0,
"ProjectName": "默认项目",
"Region": "cn-beijing-6",
"ServiceStartTime": "2021-08-04T16:21:50+0800",
"SubOrderId": "HRDS2S2108101421301413TYD8Y",
"SecurityGroups": [
{
"SecurityGroupId": "64506",
"SecurityGroupName": "安全组-金山云",
"SecurityGroupType": "IPV4"
}
],
"SupportIPV6": false,
"BillTypeId": 87
}
]
},
"RequestId": "5c04e285-12dd-4cb0-b27d-d115842a71f7"
}
纯净模式