Jika instans ApsaraDB for Redis (Tair, Redis OSS-Compatible) sebelumnya telah dialihkan dari jaringan klasik ke VPC dan endpoint jaringan klasik telah dipertahankan, Anda dapat memanggil operasi ini untuk memperpanjang periode retensi endpoint jaringan klasik.
Deskripsi operasi
Untuk informasi tentang operasi konsol yang sesuai, lihat Mengubah periode retensi endpoint jaringan klasik.
Untuk informasi tentang cara mengalihkan instans dari jaringan klasik ke VPC, lihat SwitchNetwork.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
kvstore:ModifyInstanceNetExpireTime |
update |
*DBInstance
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
ID instans. |
r-bp1zxszhcgatnx**** |
| ConnectionString |
string |
Yes |
Endpoint jaringan klasik instans. |
r-bp1zxszhcgatnx****.redis.rds.aliyuncs.com |
| ClassicExpiredDays |
integer |
Yes |
Periode retensi yang diperpanjang dari endpoint jaringan klasik. Nilai yang valid: 14, 30, 60, dan 120. Satuan: hari. |
14 |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| InstanceId |
string |
ID instans. |
r-bp1zxszhcgatnx**** |
| RequestId |
string |
ID permintaan. |
9C4AF387-1EA3-4C84-8013-3F6B973EDDF5 |
| NetInfoItems |
object |
||
| NetInfoItem |
array<object> |
Detail periode retensi yang diperpanjang dari endpoint jaringan klasik. |
|
|
object |
Daftar informasi jaringan klasik instans. |
||
| Port |
string |
The port number that is used to connect to the instance. |
6379 |
| DBInstanceNetType |
string |
The network type of the instance. The returned value is Classic. |
Classic |
| ConnectionString |
string |
The endpoint of the classic network. |
r-bp1zxszhcgatnx****.redis.rds.aliyuncs.com |
| ExpiredTime |
string |
The expiration time of the classic network endpoint. |
2019-08-01T09:29:18Z |
| IPAddress |
string |
The IP address of the instance in the classic network. |
100.118.142.*** |
Contoh
Respons sukses
JSONformat
{
"InstanceId": "r-bp1zxszhcgatnx****",
"RequestId": "9C4AF387-1EA3-4C84-8013-3F6B973EDDF5",
"NetInfoItems": {
"NetInfoItem": [
{
"Port": "6379",
"DBInstanceNetType": "Classic",
"ConnectionString": "r-bp1zxszhcgatnx****.redis.rds.aliyuncs.com",
"ExpiredTime": "2019-08-01T09:29:18Z",
"IPAddress": "100.118.142.***"
}
]
}
}
Respons error
JSONformat
{
"InstanceId": "r-xxxxxxxxxxxxxxx",
"RequestId": "9C4AF387-1EA3-4C84-8013-3F6B973EDDF5",
"NetInfoItems": {
"NetInfoItem": [{
"ConnectionString": "r-xxxxxxxxxxxxxxx.redis.rds.aliyuncs.com",
"Port": "6379",
"DBInstanceNetType": "Classic",
"IPAddress": "xxx.xxx.xxx.xxx",
"ExpiredTime": "2018-11-18T08:04:46Z"
}
]
}
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | ClassicExpiredDaysError | The ClassicExpiredDays can not set to 0. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.