You can call this operation to modify the expiration time of a connection address.

Note When an instance is in the hybrid access mode which includes a VPC network address and classic network address, this operation is used to extend the expiration time of the classic network address.

Debugging

You can use API Explorer to perform debugging. API Explorer allows you to perform various operations to simplify API usage. For example, you can retrieve APIs, call APIs, and dynamically generate SDK example code.

Request parameters

Parameter Type Required? Example Description
Action String Yes ModifyDBInstanceNetworkExpireTime

The operation that you want to perform. Set the value to ModifyDBInstanceNetworkExpireTime.

DBInstanceId String Yes rm-uf6wjk5xxxxxxx

The ID of the instance.

ConnectionString String Yes rm-uf6wjk5xxxxx.mysql.rds.aliyuncs.com

The classic network address to be extended. Two types of classic network addresses are provided:

  • The internal address of the classic network.
  • The read/write splitting address of the classic network.
ClassicExpiredDays Integer Yes 7

The retention days of the classic network address. Valid values:1 to 120. Unit: day.

AccessKeyId String No LTAIfCxxxxxxx

The AccessKey ID issued by Alibaba Cloud for users to access services.

Response parameters

Parameter Type Example Description
RequestId String 4C467B38-3910-447D-87BC-AC049166F216

The ID of the request.

Examples

Sample requests


http(s)://rds.aliyuncs.com/? Action=ModifyDBInstanceNetworkExpireTime
&DBInstanceId=rm-uf6wjk5xxxxxxx 
&ConnectionString=rm-uf6wjk5xxxxx.mysql.rds.aliyuncs.com 
&ClassicExpiredDays=7 
&<Common request parameters>

Successful response examples

XML format

<ModifyDBInstanceNetworkExpireTimeResponse>
  <RequestId>4C467B38-3910-447D-87BC-AC049166F216</RequestId> 
</ModifyDBInstanceNetworkExpireTimeResponse>

JSON format

{
	"RequestId":"4C467B38-3910-447D-87BC-AC049166F216"
}

Error codes

View error codes