Extends the retention period of the classic network endpoint of an ApsaraDB for MongoDB instance.
Operation description
Before you call this operation, make sure that the instance meets the following requirements:
The instance is in the Running state.
The network of the instance is in hybrid access mode.
This operation is supported by replica set instances and sharded cluster instances. This operation is not supported by standalone instances.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
dds:ModifyDBInstanceNetExpireTime |
update |
*Instance
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| DBInstanceId |
string |
Yes |
The instance ID. |
dds-bpxxxxxxxx |
| ConnectionString |
string |
No |
The endpoint of the instance. |
dds-bpxxxxxxxx.mongodb.rds.aliyuncs.com |
| ClassicExpendExpiredDays |
integer |
Yes |
The retention period of the classic network endpoint of the instance. Valid values: 14, 30, 60, and 120. Unit: day. |
30 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
459E7D5C-38DA-4E14-9C82-5B5AF693DBAB |
Examples
Success response
JSON format
{
"RequestId": "459E7D5C-38DA-4E14-9C82-5B5AF693DBAB"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidConnectionString.NotFound | Specified connection string or net type is not found. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.