If the network type of an ApsaraDB for Redis instance is switched from classic network to virtual private cloud (VPC) and the endpoint of the classic network is retained, you can call this operation to prolong the retention period of the endpoint in the classic network.
For more information about how to perform the corresponding operation in the console, see Change the expiration time for the endpoint of the classic network.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | ModifyInstanceNetExpireTime |
The operation that you want to perform. Set the value to ModifyInstanceNetExpireTime. |
ClassicExpiredDays | Integer | Yes | 14 |
The retention period of the endpoint of the classic network. Valid values: 14, 30, 60, and 120. Unit: days. |
ConnectionString | String | Yes | r-bp1zxszhcgatnx****.redis.rds.aliyuncs.com |
The endpoint of the classic network. |
InstanceId | String | Yes | r-bp1zxszhcgatnx**** |
The ID of the instance. |
RegionId | String | No | cn-hangzhou |
The ID of the region where the instance is deployed. |
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
InstanceId | String | r-bp1zxszhcgatnx**** |
The ID of the instance. |
NetInfoItems | Array of NetInfoItem |
The details of the retention period of the endpoint in the classic network. |
|
NetInfoItem | |||
ConnectionString | String | r-bp1zxszhcgatnx****.redis.rds.aliyuncs.com |
The endpoint of the classic network. |
DBInstanceNetType | String | Classic |
The network type. The returned value is Classic. |
ExpiredTime | String | 2019-08-01T09:29:18Z |
The expiration time of the endpoint of the classic network. |
IPAddress | String | 100.118.142.*** |
The IP address of the instance in the classic network. |
Port | String | 6379 |
The service port of the instance. |
RequestId | String | 9C4AF387-1EA3-4C84-8013-3F6B973EDDF5 |
The ID of the request. |
Examples
Sample requests
https://r-kvstore.aliyuncs.com/?Action=ModifyInstanceNetExpireTime
&ClassicExpiredDays=14
&ConnectionString=r-bp1zxszhcgatnx****.redis.rds.aliyuncs.com
&InstanceId=r-bp1zxszhcgatnx****
&<Common request parameters>
Sample success responses
XML
format
<ModifyInstanceNetExpireTimeResponse>
<InstanceId>r-bp1zxszhcgatnx****</InstanceId>
<RequestId>9C4AF387-1EA3-4C84-8013-3F6B973EDDF5</RequestId>
<NetInfoItems>
<NetInfoItem>
<ConnectionString>r-bp1zxszhcgatnx****.redis.rds.aliyuncs.com</ConnectionString>
<Port>6379</Port>
<DBInstanceNetType>Classic</DBInstanceNetType>
<IPAddress>100.118.142. ***</IPAddress>
<ExpiredTime>2019-08-01T09:29:18Z</ExpiredTime>
</NetInfoItem>
</NetInfoItems>
</ModifyInstanceNetExpireTimeResponse>
JSON
format
{
"InstanceId": "r-bp1zxszhcgatnx****",
"RequestId": "9C4AF387-1EA3-4C84-8013-3F6B973EDDF5",
"NetInfoItems": {
"NetInfoItem": [
{
"ConnectionString": "r-bp1zxszhcgatnx****.redis.rds.aliyuncs.com",
"Port": "6379",
"DBInstanceNetType": "Classic",
"IPAddress": "100.118.142. ***",
"ExpiredTime": "2019-08-01T09:29:18Z"
}
]
}
}
Error codes
For a list of error codes, visit the API Error Center.