You can call this operation to extend the retention period of the classic network of a MongoDB instance.

Ensure that the instance meet the following conditions when you call this operation:

  • The instance must be running.
  • The network of the instance is in hybrid access mode.
Note This operation is applicable to replica set instances and sharded cluster instances. ModifyDBInstanceNetExpireTime cannot be performed on standalone instances.


OpenAPI Explorer simplifies API usage. You can use OpenAPI Explorer to perform debugging operations, such as retrieve APIs, call APIs, and dynamically generate SDK example code.

Request parameters

Parameter Type Required Example Description
Action String Yes ModifyDBInstanceNetExpireTime

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

ClassicExpendExpiredDays Integer Yes 30

The retention period of the original classic network address. Valid values: 14, 30, 60, and 120. Unit: day.

DBInstanceId String Yes dds-bpxxxxxxxx

The ID of the instance.

ConnectionString String No

The connection address of the instance

AccessKeyId String No LTAIgbTGpxxxxxx

The AccessKey ID provided to you by Alibaba Cloud.

Response parameters

Parameter Type Example Description
RequestId String 459E7D5C-38DA-4E14-9C82-5B5AF693DBAB

The ID of the request.


Sample requests

http(s):// Action=ModifyDBInstanceNetExpireTime
&<Common request parameters>

Successful response examples

XML format


JSON format


Error codes

View error codes