@alicloud/dds20151201 5.0.1 → 5.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client.d.ts +63 -40
- package/dist/client.js +73 -40
- package/dist/client.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +79 -40
package/dist/client.d.ts
CHANGED
|
@@ -1099,6 +1099,7 @@ export declare class DescribeAvailabilityZonesRequest extends $tea.Model {
|
|
|
1099
1099
|
ownerAccount?: string;
|
|
1100
1100
|
ownerId?: number;
|
|
1101
1101
|
regionId?: string;
|
|
1102
|
+
replicationFactor?: string;
|
|
1102
1103
|
resourceGroupId?: string;
|
|
1103
1104
|
resourceOwnerAccount?: string;
|
|
1104
1105
|
resourceOwnerId?: number;
|
|
@@ -1197,6 +1198,7 @@ export declare class DescribeAvailableResourceRequest extends $tea.Model {
|
|
|
1197
1198
|
ownerAccount?: string;
|
|
1198
1199
|
ownerId?: number;
|
|
1199
1200
|
regionId?: string;
|
|
1201
|
+
replicationFactor?: string;
|
|
1200
1202
|
resourceGroupId?: string;
|
|
1201
1203
|
resourceOwnerAccount?: string;
|
|
1202
1204
|
resourceOwnerId?: number;
|
|
@@ -5882,6 +5884,7 @@ export declare class DescribeDBInstanceAttributeResponseBodyDBInstancesDBInstanc
|
|
|
5882
5884
|
export declare class DescribeDBInstanceAttributeResponseBodyDBInstancesDBInstanceShardListShardAttribute extends $tea.Model {
|
|
5883
5885
|
connectString?: string;
|
|
5884
5886
|
maxConnections?: number;
|
|
5887
|
+
maxDiskMbps?: string;
|
|
5885
5888
|
maxIOPS?: number;
|
|
5886
5889
|
nodeClass?: string;
|
|
5887
5890
|
nodeDescription?: string;
|
|
@@ -5966,6 +5969,7 @@ export declare class DescribeDBInstanceAttributeResponseBodyDBInstancesDBInstanc
|
|
|
5966
5969
|
maintainStartTime?: string;
|
|
5967
5970
|
maxConnections?: number;
|
|
5968
5971
|
maxIOPS?: number;
|
|
5972
|
+
maxMBPS?: number;
|
|
5969
5973
|
mongosList?: DescribeDBInstanceAttributeResponseBodyDBInstancesDBInstanceMongosList;
|
|
5970
5974
|
networkType?: string;
|
|
5971
5975
|
protocolType?: string;
|
|
@@ -7229,8 +7233,8 @@ export default class Client extends OpenApi {
|
|
|
7229
7233
|
[key: string]: string;
|
|
7230
7234
|
}, endpoint: string): string;
|
|
7231
7235
|
/**
|
|
7232
|
-
* This operation
|
|
7233
|
-
* > The
|
|
7236
|
+
* This operation is applicable only to sharded cluster instances. For more information, see [Apply for an endpoint for a shard or Configserver node](~~134037~~).
|
|
7237
|
+
* > The allocated endpoints can be used only for internal access. To gain Internet access, you must call the [AllocatePublicNetworkAddress](~~67602~~) operation to apply for public endpoints.
|
|
7234
7238
|
*
|
|
7235
7239
|
* @param request AllocateNodePrivateNetworkAddressRequest
|
|
7236
7240
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -7238,8 +7242,8 @@ export default class Client extends OpenApi {
|
|
|
7238
7242
|
*/
|
|
7239
7243
|
allocateNodePrivateNetworkAddressWithOptions(request: AllocateNodePrivateNetworkAddressRequest, runtime: $Util.RuntimeOptions): Promise<AllocateNodePrivateNetworkAddressResponse>;
|
|
7240
7244
|
/**
|
|
7241
|
-
* This operation
|
|
7242
|
-
* > The
|
|
7245
|
+
* This operation is applicable only to sharded cluster instances. For more information, see [Apply for an endpoint for a shard or Configserver node](~~134037~~).
|
|
7246
|
+
* > The allocated endpoints can be used only for internal access. To gain Internet access, you must call the [AllocatePublicNetworkAddress](~~67602~~) operation to apply for public endpoints.
|
|
7243
7247
|
*
|
|
7244
7248
|
* @param request AllocateNodePrivateNetworkAddressRequest
|
|
7245
7249
|
* @return AllocateNodePrivateNetworkAddressResponse
|
|
@@ -7263,8 +7267,8 @@ export default class Client extends OpenApi {
|
|
|
7263
7267
|
*/
|
|
7264
7268
|
checkCloudResourceAuthorized(request: CheckCloudResourceAuthorizedRequest): Promise<CheckCloudResourceAuthorizedResponse>;
|
|
7265
7269
|
/**
|
|
7266
|
-
* This operation is applicable to replica set instances
|
|
7267
|
-
* > After you confirm that the data
|
|
7270
|
+
* This operation is applicable to replica set instances and sharded cluster instances.
|
|
7271
|
+
* > After you call this operation to confirm that the data of the instance can be restored, you can call the [CreateDBInstance](~~61763~~) operation to restore data to a new instance.
|
|
7268
7272
|
*
|
|
7269
7273
|
* @param request CheckRecoveryConditionRequest
|
|
7270
7274
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -7272,8 +7276,8 @@ export default class Client extends OpenApi {
|
|
|
7272
7276
|
*/
|
|
7273
7277
|
checkRecoveryConditionWithOptions(request: CheckRecoveryConditionRequest, runtime: $Util.RuntimeOptions): Promise<CheckRecoveryConditionResponse>;
|
|
7274
7278
|
/**
|
|
7275
|
-
* This operation is applicable to replica set instances
|
|
7276
|
-
* > After you confirm that the data
|
|
7279
|
+
* This operation is applicable to replica set instances and sharded cluster instances.
|
|
7280
|
+
* > After you call this operation to confirm that the data of the instance can be restored, you can call the [CreateDBInstance](~~61763~~) operation to restore data to a new instance.
|
|
7277
7281
|
*
|
|
7278
7282
|
* @param request CheckRecoveryConditionRequest
|
|
7279
7283
|
* @return CheckRecoveryConditionResponse
|
|
@@ -7442,7 +7446,20 @@ export default class Client extends OpenApi {
|
|
|
7442
7446
|
describeAccounts(request: DescribeAccountsRequest): Promise<DescribeAccountsResponse>;
|
|
7443
7447
|
describeActiveOperationTaskCountWithOptions(request: DescribeActiveOperationTaskCountRequest, runtime: $Util.RuntimeOptions): Promise<DescribeActiveOperationTaskCountResponse>;
|
|
7444
7448
|
describeActiveOperationTaskCount(request: DescribeActiveOperationTaskCountRequest): Promise<DescribeActiveOperationTaskCountResponse>;
|
|
7449
|
+
/**
|
|
7450
|
+
* This operation is no longer updated and will be unavailable.
|
|
7451
|
+
*
|
|
7452
|
+
* @param request DescribeActiveOperationTaskTypeRequest
|
|
7453
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
7454
|
+
* @return DescribeActiveOperationTaskTypeResponse
|
|
7455
|
+
*/
|
|
7445
7456
|
describeActiveOperationTaskTypeWithOptions(request: DescribeActiveOperationTaskTypeRequest, runtime: $Util.RuntimeOptions): Promise<DescribeActiveOperationTaskTypeResponse>;
|
|
7457
|
+
/**
|
|
7458
|
+
* This operation is no longer updated and will be unavailable.
|
|
7459
|
+
*
|
|
7460
|
+
* @param request DescribeActiveOperationTaskTypeRequest
|
|
7461
|
+
* @return DescribeActiveOperationTaskTypeResponse
|
|
7462
|
+
*/
|
|
7446
7463
|
describeActiveOperationTaskType(request: DescribeActiveOperationTaskTypeRequest): Promise<DescribeActiveOperationTaskTypeResponse>;
|
|
7447
7464
|
describeActiveOperationTasksWithOptions(request: DescribeActiveOperationTasksRequest, runtime: $Util.RuntimeOptions): Promise<DescribeActiveOperationTasksResponse>;
|
|
7448
7465
|
describeActiveOperationTasks(request: DescribeActiveOperationTasksRequest): Promise<DescribeActiveOperationTasksResponse>;
|
|
@@ -7504,7 +7521,7 @@ export default class Client extends OpenApi {
|
|
|
7504
7521
|
*/
|
|
7505
7522
|
describeAuditRecords(request: DescribeAuditRecordsRequest): Promise<DescribeAuditRecordsResponse>;
|
|
7506
7523
|
/**
|
|
7507
|
-
*
|
|
7524
|
+
* Queries the zones in which an ApsaraDB for MongoDB instance can be deployed under specified purchase conditions. The region ID is required in the purchase condition.
|
|
7508
7525
|
*
|
|
7509
7526
|
* @param request DescribeAvailabilityZonesRequest
|
|
7510
7527
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -7512,7 +7529,7 @@ export default class Client extends OpenApi {
|
|
|
7512
7529
|
*/
|
|
7513
7530
|
describeAvailabilityZonesWithOptions(request: DescribeAvailabilityZonesRequest, runtime: $Util.RuntimeOptions): Promise<DescribeAvailabilityZonesResponse>;
|
|
7514
7531
|
/**
|
|
7515
|
-
*
|
|
7532
|
+
* Queries the zones in which an ApsaraDB for MongoDB instance can be deployed under specified purchase conditions. The region ID is required in the purchase condition.
|
|
7516
7533
|
*
|
|
7517
7534
|
* @param request DescribeAvailabilityZonesRequest
|
|
7518
7535
|
* @return DescribeAvailabilityZonesResponse
|
|
@@ -7766,9 +7783,9 @@ export default class Client extends OpenApi {
|
|
|
7766
7783
|
describeKmsKeys(request: DescribeKmsKeysRequest): Promise<DescribeKmsKeysResponse>;
|
|
7767
7784
|
/**
|
|
7768
7785
|
* This operation is applicable only to **general-purpose local-disk** and **dedicated local-disk** instances.
|
|
7769
|
-
* This operation depends on the audit log feature of ApsaraDB for MongoDB. You can enable the audit log feature based on your business
|
|
7786
|
+
* This operation depends on the audit log feature of ApsaraDB for MongoDB. You can enable the audit log feature based on your business requirements. For more information, see [Enable the audit log feature](~~59903~~).
|
|
7770
7787
|
* * Starting from January 6, 2022, the official edition of the audit log feature has been launched in all regions, and new applications for the free trial edition have ended. For more information, see [Notice on official launch of the pay-as-you-go audit log feature and no more application for the free trial edition](~~377480~~)
|
|
7771
|
-
* *
|
|
7788
|
+
* * You are charged for the official edition of the audit log feature based on the storage capacity that is consumed by audit logs and the retention period of the audit logs. For more information, see [Pricing of ApsaraDB for MongoDB instances](https://www.alibabacloud.com/zh/product/apsaradb-for-mongodb/pricing).
|
|
7772
7789
|
*
|
|
7773
7790
|
* @param request DescribeMongoDBLogConfigRequest
|
|
7774
7791
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -7777,9 +7794,9 @@ export default class Client extends OpenApi {
|
|
|
7777
7794
|
describeMongoDBLogConfigWithOptions(request: DescribeMongoDBLogConfigRequest, runtime: $Util.RuntimeOptions): Promise<DescribeMongoDBLogConfigResponse>;
|
|
7778
7795
|
/**
|
|
7779
7796
|
* This operation is applicable only to **general-purpose local-disk** and **dedicated local-disk** instances.
|
|
7780
|
-
* This operation depends on the audit log feature of ApsaraDB for MongoDB. You can enable the audit log feature based on your business
|
|
7797
|
+
* This operation depends on the audit log feature of ApsaraDB for MongoDB. You can enable the audit log feature based on your business requirements. For more information, see [Enable the audit log feature](~~59903~~).
|
|
7781
7798
|
* * Starting from January 6, 2022, the official edition of the audit log feature has been launched in all regions, and new applications for the free trial edition have ended. For more information, see [Notice on official launch of the pay-as-you-go audit log feature and no more application for the free trial edition](~~377480~~)
|
|
7782
|
-
* *
|
|
7799
|
+
* * You are charged for the official edition of the audit log feature based on the storage capacity that is consumed by audit logs and the retention period of the audit logs. For more information, see [Pricing of ApsaraDB for MongoDB instances](https://www.alibabacloud.com/zh/product/apsaradb-for-mongodb/pricing).
|
|
7783
7800
|
*
|
|
7784
7801
|
* @param request DescribeMongoDBLogConfigRequest
|
|
7785
7802
|
* @return DescribeMongoDBLogConfigResponse
|
|
@@ -7877,7 +7894,7 @@ export default class Client extends OpenApi {
|
|
|
7877
7894
|
describeSecurityIpsWithOptions(request: DescribeSecurityIpsRequest, runtime: $Util.RuntimeOptions): Promise<DescribeSecurityIpsResponse>;
|
|
7878
7895
|
describeSecurityIps(request: DescribeSecurityIpsRequest): Promise<DescribeSecurityIpsResponse>;
|
|
7879
7896
|
/**
|
|
7880
|
-
* This operation
|
|
7897
|
+
* This operation is applicable only to sharded cluster instances.
|
|
7881
7898
|
*
|
|
7882
7899
|
* @param request DescribeShardingNetworkAddressRequest
|
|
7883
7900
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -7885,7 +7902,7 @@ export default class Client extends OpenApi {
|
|
|
7885
7902
|
*/
|
|
7886
7903
|
describeShardingNetworkAddressWithOptions(request: DescribeShardingNetworkAddressRequest, runtime: $Util.RuntimeOptions): Promise<DescribeShardingNetworkAddressResponse>;
|
|
7887
7904
|
/**
|
|
7888
|
-
* This operation
|
|
7905
|
+
* This operation is applicable only to sharded cluster instances.
|
|
7889
7906
|
*
|
|
7890
7907
|
* @param request DescribeShardingNetworkAddressRequest
|
|
7891
7908
|
* @return DescribeShardingNetworkAddressResponse
|
|
@@ -8071,10 +8088,10 @@ export default class Client extends OpenApi {
|
|
|
8071
8088
|
*/
|
|
8072
8089
|
modifyDBInstanceMonitor(request: ModifyDBInstanceMonitorRequest): Promise<ModifyDBInstanceMonitorResponse>;
|
|
8073
8090
|
/**
|
|
8074
|
-
* Before you call this operation, make sure that the following requirements
|
|
8075
|
-
* * The instance is in the
|
|
8091
|
+
* Before you call this operation, make sure that the instance meets the following requirements:
|
|
8092
|
+
* * The instance is in the Running state.
|
|
8076
8093
|
* * The network of the instance is in hybrid access mode.
|
|
8077
|
-
* > This operation is
|
|
8094
|
+
* > This operation is supported by replica set instances and sharded cluster instances. This operation is not supported by standalone instances.
|
|
8078
8095
|
*
|
|
8079
8096
|
* @param request ModifyDBInstanceNetExpireTimeRequest
|
|
8080
8097
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -8082,10 +8099,10 @@ export default class Client extends OpenApi {
|
|
|
8082
8099
|
*/
|
|
8083
8100
|
modifyDBInstanceNetExpireTimeWithOptions(request: ModifyDBInstanceNetExpireTimeRequest, runtime: $Util.RuntimeOptions): Promise<ModifyDBInstanceNetExpireTimeResponse>;
|
|
8084
8101
|
/**
|
|
8085
|
-
* Before you call this operation, make sure that the following requirements
|
|
8086
|
-
* * The instance is in the
|
|
8102
|
+
* Before you call this operation, make sure that the instance meets the following requirements:
|
|
8103
|
+
* * The instance is in the Running state.
|
|
8087
8104
|
* * The network of the instance is in hybrid access mode.
|
|
8088
|
-
* > This operation is
|
|
8105
|
+
* > This operation is supported by replica set instances and sharded cluster instances. This operation is not supported by standalone instances.
|
|
8089
8106
|
*
|
|
8090
8107
|
* @param request ModifyDBInstanceNetExpireTimeRequest
|
|
8091
8108
|
* @return ModifyDBInstanceNetExpireTimeResponse
|
|
@@ -8150,10 +8167,11 @@ export default class Client extends OpenApi {
|
|
|
8150
8167
|
modifyDBInstanceSpec(request: ModifyDBInstanceSpecRequest): Promise<ModifyDBInstanceSpecResponse>;
|
|
8151
8168
|
/**
|
|
8152
8169
|
* TDE allows you to perform real-time I/O encryption and decryption on data files. Data is encrypted before it is written to a disk and is decrypted when it is read from the disk to the memory. For more information, see [Configure TDE](~~131048~~).
|
|
8153
|
-
* >
|
|
8154
|
-
* Before you call this
|
|
8155
|
-
* *
|
|
8170
|
+
* > TDE cannot be disabled after it is enabled.
|
|
8171
|
+
* Before you call this operation, make sure that the ApsaraDB for MongoDB instance meets the following requirements:
|
|
8172
|
+
* * A replica set or sharded cluster instance is used.
|
|
8156
8173
|
* * The storage engine of the instance is WiredTiger.
|
|
8174
|
+
* * The instance uses local disks to store data.
|
|
8157
8175
|
* * The database engine version of the instance is 4.0 or 4.2. If the database engine version is earlier than 4.0, you can call the [UpgradeDBInstanceEngineVersion](~~67608~~) operation to upgrade the database engine.
|
|
8158
8176
|
*
|
|
8159
8177
|
* @param request ModifyDBInstanceTDERequest
|
|
@@ -8163,10 +8181,11 @@ export default class Client extends OpenApi {
|
|
|
8163
8181
|
modifyDBInstanceTDEWithOptions(request: ModifyDBInstanceTDERequest, runtime: $Util.RuntimeOptions): Promise<ModifyDBInstanceTDEResponse>;
|
|
8164
8182
|
/**
|
|
8165
8183
|
* TDE allows you to perform real-time I/O encryption and decryption on data files. Data is encrypted before it is written to a disk and is decrypted when it is read from the disk to the memory. For more information, see [Configure TDE](~~131048~~).
|
|
8166
|
-
* >
|
|
8167
|
-
* Before you call this
|
|
8168
|
-
* *
|
|
8184
|
+
* > TDE cannot be disabled after it is enabled.
|
|
8185
|
+
* Before you call this operation, make sure that the ApsaraDB for MongoDB instance meets the following requirements:
|
|
8186
|
+
* * A replica set or sharded cluster instance is used.
|
|
8169
8187
|
* * The storage engine of the instance is WiredTiger.
|
|
8188
|
+
* * The instance uses local disks to store data.
|
|
8170
8189
|
* * The database engine version of the instance is 4.0 or 4.2. If the database engine version is earlier than 4.0, you can call the [UpgradeDBInstanceEngineVersion](~~67608~~) operation to upgrade the database engine.
|
|
8171
8190
|
*
|
|
8172
8191
|
* @param request ModifyDBInstanceTDERequest
|
|
@@ -8199,10 +8218,11 @@ export default class Client extends OpenApi {
|
|
|
8199
8218
|
*/
|
|
8200
8219
|
modifyInstanceAutoRenewalAttribute(request: ModifyInstanceAutoRenewalAttributeRequest): Promise<ModifyInstanceAutoRenewalAttributeResponse>;
|
|
8201
8220
|
/**
|
|
8202
|
-
* Before you call this operation, make sure that the following requirements
|
|
8203
|
-
* *
|
|
8204
|
-
* * The database version of the instance is 4.0 (with the minor version of mongodb\\_20190408\\_3.0.11 or later) or 4.2. You can call the [DescribeDBInstanceAttribute](~~62010~~) operation to view the database engine version of the instance. If necessary, you can call the [UpgradeDBInstanceEngineVersion](~~67608~~) operation to upgrade the database engine.
|
|
8205
|
-
* * The instance
|
|
8221
|
+
* Before you call this operation, make sure that the ApsaraDB for MongoDB instance meets the following requirements:
|
|
8222
|
+
* * The instance is a replica set or sharded cluster instance.
|
|
8223
|
+
* * The database engine version of the instance is 4.0 (with the minor version of mongodb\\_20190408\\_3.0.11 or later) or 4.2. You can call the [DescribeDBInstanceAttribute](~~62010~~) operation to view the database engine version of the instance. If necessary, you can call the [UpgradeDBInstanceEngineVersion](~~67608~~) operation to upgrade the database engine version of the instance.
|
|
8224
|
+
* * The network type of the instance must be VPC. If the network type of the instance is classic network, you must call the [ModifyDBInstanceNetworkType](~~62138~~) operation to change the network type to VPC.
|
|
8225
|
+
* * You can only disable but not enable password-free access over VPC.
|
|
8206
8226
|
*
|
|
8207
8227
|
* @param request ModifyInstanceVpcAuthModeRequest
|
|
8208
8228
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -8210,10 +8230,11 @@ export default class Client extends OpenApi {
|
|
|
8210
8230
|
*/
|
|
8211
8231
|
modifyInstanceVpcAuthModeWithOptions(request: ModifyInstanceVpcAuthModeRequest, runtime: $Util.RuntimeOptions): Promise<ModifyInstanceVpcAuthModeResponse>;
|
|
8212
8232
|
/**
|
|
8213
|
-
* Before you call this operation, make sure that the following requirements
|
|
8214
|
-
* *
|
|
8215
|
-
* * The database version of the instance is 4.0 (with the minor version of mongodb\\_20190408\\_3.0.11 or later) or 4.2. You can call the [DescribeDBInstanceAttribute](~~62010~~) operation to view the database engine version of the instance. If necessary, you can call the [UpgradeDBInstanceEngineVersion](~~67608~~) operation to upgrade the database engine.
|
|
8216
|
-
* * The instance
|
|
8233
|
+
* Before you call this operation, make sure that the ApsaraDB for MongoDB instance meets the following requirements:
|
|
8234
|
+
* * The instance is a replica set or sharded cluster instance.
|
|
8235
|
+
* * The database engine version of the instance is 4.0 (with the minor version of mongodb\\_20190408\\_3.0.11 or later) or 4.2. You can call the [DescribeDBInstanceAttribute](~~62010~~) operation to view the database engine version of the instance. If necessary, you can call the [UpgradeDBInstanceEngineVersion](~~67608~~) operation to upgrade the database engine version of the instance.
|
|
8236
|
+
* * The network type of the instance must be VPC. If the network type of the instance is classic network, you must call the [ModifyDBInstanceNetworkType](~~62138~~) operation to change the network type to VPC.
|
|
8237
|
+
* * You can only disable but not enable password-free access over VPC.
|
|
8217
8238
|
*
|
|
8218
8239
|
* @param request ModifyInstanceVpcAuthModeRequest
|
|
8219
8240
|
* @return ModifyInstanceVpcAuthModeResponse
|
|
@@ -8386,8 +8407,9 @@ export default class Client extends OpenApi {
|
|
|
8386
8407
|
*/
|
|
8387
8408
|
restartDBInstance(request: RestartDBInstanceRequest): Promise<RestartDBInstanceResponse>;
|
|
8388
8409
|
/**
|
|
8389
|
-
* This operation is
|
|
8390
|
-
*
|
|
8410
|
+
* This operation is no longer maintained and will be unavailable.
|
|
8411
|
+
* This operation is applicable only to replica set instances. You can clone a standalone instance by [creating an instance from a backup set](~~55013~~). You can clone a sharded cluster instance by calling the [CreateShardingDBInstance](~~61884~~) operation.
|
|
8412
|
+
* > This operation overwrites the data of the current instance, and the data cannot be recovered. Proceed with caution.
|
|
8391
8413
|
*
|
|
8392
8414
|
* @param request RestoreDBInstanceRequest
|
|
8393
8415
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -8395,8 +8417,9 @@ export default class Client extends OpenApi {
|
|
|
8395
8417
|
*/
|
|
8396
8418
|
restoreDBInstanceWithOptions(request: RestoreDBInstanceRequest, runtime: $Util.RuntimeOptions): Promise<RestoreDBInstanceResponse>;
|
|
8397
8419
|
/**
|
|
8398
|
-
* This operation is
|
|
8399
|
-
*
|
|
8420
|
+
* This operation is no longer maintained and will be unavailable.
|
|
8421
|
+
* This operation is applicable only to replica set instances. You can clone a standalone instance by [creating an instance from a backup set](~~55013~~). You can clone a sharded cluster instance by calling the [CreateShardingDBInstance](~~61884~~) operation.
|
|
8422
|
+
* > This operation overwrites the data of the current instance, and the data cannot be recovered. Proceed with caution.
|
|
8400
8423
|
*
|
|
8401
8424
|
* @param request RestoreDBInstanceRequest
|
|
8402
8425
|
* @return RestoreDBInstanceResponse
|
package/dist/client.js
CHANGED
|
@@ -1614,6 +1614,7 @@ class DescribeAvailabilityZonesRequest extends $tea.Model {
|
|
|
1614
1614
|
ownerAccount: 'OwnerAccount',
|
|
1615
1615
|
ownerId: 'OwnerId',
|
|
1616
1616
|
regionId: 'RegionId',
|
|
1617
|
+
replicationFactor: 'ReplicationFactor',
|
|
1617
1618
|
resourceGroupId: 'ResourceGroupId',
|
|
1618
1619
|
resourceOwnerAccount: 'ResourceOwnerAccount',
|
|
1619
1620
|
resourceOwnerId: 'ResourceOwnerId',
|
|
@@ -1635,6 +1636,7 @@ class DescribeAvailabilityZonesRequest extends $tea.Model {
|
|
|
1635
1636
|
ownerAccount: 'string',
|
|
1636
1637
|
ownerId: 'number',
|
|
1637
1638
|
regionId: 'string',
|
|
1639
|
+
replicationFactor: 'string',
|
|
1638
1640
|
resourceGroupId: 'string',
|
|
1639
1641
|
resourceOwnerAccount: 'string',
|
|
1640
1642
|
resourceOwnerId: 'number',
|
|
@@ -1758,6 +1760,7 @@ class DescribeAvailableResourceRequest extends $tea.Model {
|
|
|
1758
1760
|
ownerAccount: 'OwnerAccount',
|
|
1759
1761
|
ownerId: 'OwnerId',
|
|
1760
1762
|
regionId: 'RegionId',
|
|
1763
|
+
replicationFactor: 'ReplicationFactor',
|
|
1761
1764
|
resourceGroupId: 'ResourceGroupId',
|
|
1762
1765
|
resourceOwnerAccount: 'ResourceOwnerAccount',
|
|
1763
1766
|
resourceOwnerId: 'ResourceOwnerId',
|
|
@@ -1774,6 +1777,7 @@ class DescribeAvailableResourceRequest extends $tea.Model {
|
|
|
1774
1777
|
ownerAccount: 'string',
|
|
1775
1778
|
ownerId: 'number',
|
|
1776
1779
|
regionId: 'string',
|
|
1780
|
+
replicationFactor: 'string',
|
|
1777
1781
|
resourceGroupId: 'string',
|
|
1778
1782
|
resourceOwnerAccount: 'string',
|
|
1779
1783
|
resourceOwnerId: 'number',
|
|
@@ -8481,6 +8485,7 @@ class DescribeDBInstanceAttributeResponseBodyDBInstancesDBInstanceShardListShard
|
|
|
8481
8485
|
return {
|
|
8482
8486
|
connectString: 'ConnectString',
|
|
8483
8487
|
maxConnections: 'MaxConnections',
|
|
8488
|
+
maxDiskMbps: 'MaxDiskMbps',
|
|
8484
8489
|
maxIOPS: 'MaxIOPS',
|
|
8485
8490
|
nodeClass: 'NodeClass',
|
|
8486
8491
|
nodeDescription: 'NodeDescription',
|
|
@@ -8495,6 +8500,7 @@ class DescribeDBInstanceAttributeResponseBodyDBInstancesDBInstanceShardListShard
|
|
|
8495
8500
|
return {
|
|
8496
8501
|
connectString: 'string',
|
|
8497
8502
|
maxConnections: 'number',
|
|
8503
|
+
maxDiskMbps: 'string',
|
|
8498
8504
|
maxIOPS: 'number',
|
|
8499
8505
|
nodeClass: 'string',
|
|
8500
8506
|
nodeDescription: 'string',
|
|
@@ -8591,6 +8597,7 @@ class DescribeDBInstanceAttributeResponseBodyDBInstancesDBInstance extends $tea.
|
|
|
8591
8597
|
maintainStartTime: 'MaintainStartTime',
|
|
8592
8598
|
maxConnections: 'MaxConnections',
|
|
8593
8599
|
maxIOPS: 'MaxIOPS',
|
|
8600
|
+
maxMBPS: 'MaxMBPS',
|
|
8594
8601
|
mongosList: 'MongosList',
|
|
8595
8602
|
networkType: 'NetworkType',
|
|
8596
8603
|
protocolType: 'ProtocolType',
|
|
@@ -8646,6 +8653,7 @@ class DescribeDBInstanceAttributeResponseBodyDBInstancesDBInstance extends $tea.
|
|
|
8646
8653
|
maintainStartTime: 'string',
|
|
8647
8654
|
maxConnections: 'number',
|
|
8648
8655
|
maxIOPS: 'number',
|
|
8656
|
+
maxMBPS: 'number',
|
|
8649
8657
|
mongosList: DescribeDBInstanceAttributeResponseBodyDBInstancesDBInstanceMongosList,
|
|
8650
8658
|
networkType: 'string',
|
|
8651
8659
|
protocolType: 'string',
|
|
@@ -10527,8 +10535,8 @@ class Client extends openapi_client_1.default {
|
|
|
10527
10535
|
return endpoint_util_1.default.getEndpointRules(productId, regionId, endpointRule, network, suffix);
|
|
10528
10536
|
}
|
|
10529
10537
|
/**
|
|
10530
|
-
* This operation
|
|
10531
|
-
* > The
|
|
10538
|
+
* This operation is applicable only to sharded cluster instances. For more information, see [Apply for an endpoint for a shard or Configserver node](~~134037~~).
|
|
10539
|
+
* > The allocated endpoints can be used only for internal access. To gain Internet access, you must call the [AllocatePublicNetworkAddress](~~67602~~) operation to apply for public endpoints.
|
|
10532
10540
|
*
|
|
10533
10541
|
* @param request AllocateNodePrivateNetworkAddressRequest
|
|
10534
10542
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -10581,8 +10589,8 @@ class Client extends openapi_client_1.default {
|
|
|
10581
10589
|
return $tea.cast(await this.callApi(params, req, runtime), new AllocateNodePrivateNetworkAddressResponse({}));
|
|
10582
10590
|
}
|
|
10583
10591
|
/**
|
|
10584
|
-
* This operation
|
|
10585
|
-
* > The
|
|
10592
|
+
* This operation is applicable only to sharded cluster instances. For more information, see [Apply for an endpoint for a shard or Configserver node](~~134037~~).
|
|
10593
|
+
* > The allocated endpoints can be used only for internal access. To gain Internet access, you must call the [AllocatePublicNetworkAddress](~~67602~~) operation to apply for public endpoints.
|
|
10586
10594
|
*
|
|
10587
10595
|
* @param request AllocateNodePrivateNetworkAddressRequest
|
|
10588
10596
|
* @return AllocateNodePrivateNetworkAddressResponse
|
|
@@ -10687,8 +10695,8 @@ class Client extends openapi_client_1.default {
|
|
|
10687
10695
|
return await this.checkCloudResourceAuthorizedWithOptions(request, runtime);
|
|
10688
10696
|
}
|
|
10689
10697
|
/**
|
|
10690
|
-
* This operation is applicable to replica set instances
|
|
10691
|
-
* > After you confirm that the data
|
|
10698
|
+
* This operation is applicable to replica set instances and sharded cluster instances.
|
|
10699
|
+
* > After you call this operation to confirm that the data of the instance can be restored, you can call the [CreateDBInstance](~~61763~~) operation to restore data to a new instance.
|
|
10692
10700
|
*
|
|
10693
10701
|
* @param request CheckRecoveryConditionRequest
|
|
10694
10702
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -10744,8 +10752,8 @@ class Client extends openapi_client_1.default {
|
|
|
10744
10752
|
return $tea.cast(await this.callApi(params, req, runtime), new CheckRecoveryConditionResponse({}));
|
|
10745
10753
|
}
|
|
10746
10754
|
/**
|
|
10747
|
-
* This operation is applicable to replica set instances
|
|
10748
|
-
* > After you confirm that the data
|
|
10755
|
+
* This operation is applicable to replica set instances and sharded cluster instances.
|
|
10756
|
+
* > After you call this operation to confirm that the data of the instance can be restored, you can call the [CreateDBInstance](~~61763~~) operation to restore data to a new instance.
|
|
10749
10757
|
*
|
|
10750
10758
|
* @param request CheckRecoveryConditionRequest
|
|
10751
10759
|
* @return CheckRecoveryConditionResponse
|
|
@@ -11637,6 +11645,13 @@ class Client extends openapi_client_1.default {
|
|
|
11637
11645
|
let runtime = new $Util.RuntimeOptions({});
|
|
11638
11646
|
return await this.describeActiveOperationTaskCountWithOptions(request, runtime);
|
|
11639
11647
|
}
|
|
11648
|
+
/**
|
|
11649
|
+
* This operation is no longer updated and will be unavailable.
|
|
11650
|
+
*
|
|
11651
|
+
* @param request DescribeActiveOperationTaskTypeRequest
|
|
11652
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
11653
|
+
* @return DescribeActiveOperationTaskTypeResponse
|
|
11654
|
+
*/
|
|
11640
11655
|
async describeActiveOperationTaskTypeWithOptions(request, runtime) {
|
|
11641
11656
|
tea_util_1.default.validateModel(request);
|
|
11642
11657
|
let query = {};
|
|
@@ -11674,6 +11689,12 @@ class Client extends openapi_client_1.default {
|
|
|
11674
11689
|
});
|
|
11675
11690
|
return $tea.cast(await this.callApi(params, req, runtime), new DescribeActiveOperationTaskTypeResponse({}));
|
|
11676
11691
|
}
|
|
11692
|
+
/**
|
|
11693
|
+
* This operation is no longer updated and will be unavailable.
|
|
11694
|
+
*
|
|
11695
|
+
* @param request DescribeActiveOperationTaskTypeRequest
|
|
11696
|
+
* @return DescribeActiveOperationTaskTypeResponse
|
|
11697
|
+
*/
|
|
11677
11698
|
async describeActiveOperationTaskType(request) {
|
|
11678
11699
|
let runtime = new $Util.RuntimeOptions({});
|
|
11679
11700
|
return await this.describeActiveOperationTaskTypeWithOptions(request, runtime);
|
|
@@ -11945,7 +11966,7 @@ class Client extends openapi_client_1.default {
|
|
|
11945
11966
|
return await this.describeAuditRecordsWithOptions(request, runtime);
|
|
11946
11967
|
}
|
|
11947
11968
|
/**
|
|
11948
|
-
*
|
|
11969
|
+
* Queries the zones in which an ApsaraDB for MongoDB instance can be deployed under specified purchase conditions. The region ID is required in the purchase condition.
|
|
11949
11970
|
*
|
|
11950
11971
|
* @param request DescribeAvailabilityZonesRequest
|
|
11951
11972
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -11987,6 +12008,9 @@ class Client extends openapi_client_1.default {
|
|
|
11987
12008
|
if (!tea_util_1.default.isUnset(request.regionId)) {
|
|
11988
12009
|
query["RegionId"] = request.regionId;
|
|
11989
12010
|
}
|
|
12011
|
+
if (!tea_util_1.default.isUnset(request.replicationFactor)) {
|
|
12012
|
+
query["ReplicationFactor"] = request.replicationFactor;
|
|
12013
|
+
}
|
|
11990
12014
|
if (!tea_util_1.default.isUnset(request.resourceGroupId)) {
|
|
11991
12015
|
query["ResourceGroupId"] = request.resourceGroupId;
|
|
11992
12016
|
}
|
|
@@ -12022,7 +12046,7 @@ class Client extends openapi_client_1.default {
|
|
|
12022
12046
|
return $tea.cast(await this.callApi(params, req, runtime), new DescribeAvailabilityZonesResponse({}));
|
|
12023
12047
|
}
|
|
12024
12048
|
/**
|
|
12025
|
-
*
|
|
12049
|
+
* Queries the zones in which an ApsaraDB for MongoDB instance can be deployed under specified purchase conditions. The region ID is required in the purchase condition.
|
|
12026
12050
|
*
|
|
12027
12051
|
* @param request DescribeAvailabilityZonesRequest
|
|
12028
12052
|
* @return DescribeAvailabilityZonesResponse
|
|
@@ -12093,6 +12117,9 @@ class Client extends openapi_client_1.default {
|
|
|
12093
12117
|
if (!tea_util_1.default.isUnset(request.regionId)) {
|
|
12094
12118
|
query["RegionId"] = request.regionId;
|
|
12095
12119
|
}
|
|
12120
|
+
if (!tea_util_1.default.isUnset(request.replicationFactor)) {
|
|
12121
|
+
query["ReplicationFactor"] = request.replicationFactor;
|
|
12122
|
+
}
|
|
12096
12123
|
if (!tea_util_1.default.isUnset(request.resourceGroupId)) {
|
|
12097
12124
|
query["ResourceGroupId"] = request.resourceGroupId;
|
|
12098
12125
|
}
|
|
@@ -13386,9 +13413,9 @@ class Client extends openapi_client_1.default {
|
|
|
13386
13413
|
}
|
|
13387
13414
|
/**
|
|
13388
13415
|
* This operation is applicable only to **general-purpose local-disk** and **dedicated local-disk** instances.
|
|
13389
|
-
* This operation depends on the audit log feature of ApsaraDB for MongoDB. You can enable the audit log feature based on your business
|
|
13416
|
+
* This operation depends on the audit log feature of ApsaraDB for MongoDB. You can enable the audit log feature based on your business requirements. For more information, see [Enable the audit log feature](~~59903~~).
|
|
13390
13417
|
* * Starting from January 6, 2022, the official edition of the audit log feature has been launched in all regions, and new applications for the free trial edition have ended. For more information, see [Notice on official launch of the pay-as-you-go audit log feature and no more application for the free trial edition](~~377480~~)
|
|
13391
|
-
* *
|
|
13418
|
+
* * You are charged for the official edition of the audit log feature based on the storage capacity that is consumed by audit logs and the retention period of the audit logs. For more information, see [Pricing of ApsaraDB for MongoDB instances](https://www.alibabacloud.com/zh/product/apsaradb-for-mongodb/pricing).
|
|
13392
13419
|
*
|
|
13393
13420
|
* @param request DescribeMongoDBLogConfigRequest
|
|
13394
13421
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -13430,9 +13457,9 @@ class Client extends openapi_client_1.default {
|
|
|
13430
13457
|
}
|
|
13431
13458
|
/**
|
|
13432
13459
|
* This operation is applicable only to **general-purpose local-disk** and **dedicated local-disk** instances.
|
|
13433
|
-
* This operation depends on the audit log feature of ApsaraDB for MongoDB. You can enable the audit log feature based on your business
|
|
13460
|
+
* This operation depends on the audit log feature of ApsaraDB for MongoDB. You can enable the audit log feature based on your business requirements. For more information, see [Enable the audit log feature](~~59903~~).
|
|
13434
13461
|
* * Starting from January 6, 2022, the official edition of the audit log feature has been launched in all regions, and new applications for the free trial edition have ended. For more information, see [Notice on official launch of the pay-as-you-go audit log feature and no more application for the free trial edition](~~377480~~)
|
|
13435
|
-
* *
|
|
13462
|
+
* * You are charged for the official edition of the audit log feature based on the storage capacity that is consumed by audit logs and the retention period of the audit logs. For more information, see [Pricing of ApsaraDB for MongoDB instances](https://www.alibabacloud.com/zh/product/apsaradb-for-mongodb/pricing).
|
|
13436
13463
|
*
|
|
13437
13464
|
* @param request DescribeMongoDBLogConfigRequest
|
|
13438
13465
|
* @return DescribeMongoDBLogConfigResponse
|
|
@@ -14022,7 +14049,7 @@ class Client extends openapi_client_1.default {
|
|
|
14022
14049
|
return await this.describeSecurityIpsWithOptions(request, runtime);
|
|
14023
14050
|
}
|
|
14024
14051
|
/**
|
|
14025
|
-
* This operation
|
|
14052
|
+
* This operation is applicable only to sharded cluster instances.
|
|
14026
14053
|
*
|
|
14027
14054
|
* @param request DescribeShardingNetworkAddressRequest
|
|
14028
14055
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -14066,7 +14093,7 @@ class Client extends openapi_client_1.default {
|
|
|
14066
14093
|
return $tea.cast(await this.callApi(params, req, runtime), new DescribeShardingNetworkAddressResponse({}));
|
|
14067
14094
|
}
|
|
14068
14095
|
/**
|
|
14069
|
-
* This operation
|
|
14096
|
+
* This operation is applicable only to sharded cluster instances.
|
|
14070
14097
|
*
|
|
14071
14098
|
* @param request DescribeShardingNetworkAddressRequest
|
|
14072
14099
|
* @return DescribeShardingNetworkAddressResponse
|
|
@@ -15008,10 +15035,10 @@ class Client extends openapi_client_1.default {
|
|
|
15008
15035
|
return await this.modifyDBInstanceMonitorWithOptions(request, runtime);
|
|
15009
15036
|
}
|
|
15010
15037
|
/**
|
|
15011
|
-
* Before you call this operation, make sure that the following requirements
|
|
15012
|
-
* * The instance is in the
|
|
15038
|
+
* Before you call this operation, make sure that the instance meets the following requirements:
|
|
15039
|
+
* * The instance is in the Running state.
|
|
15013
15040
|
* * The network of the instance is in hybrid access mode.
|
|
15014
|
-
* > This operation is
|
|
15041
|
+
* > This operation is supported by replica set instances and sharded cluster instances. This operation is not supported by standalone instances.
|
|
15015
15042
|
*
|
|
15016
15043
|
* @param request ModifyDBInstanceNetExpireTimeRequest
|
|
15017
15044
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -15058,10 +15085,10 @@ class Client extends openapi_client_1.default {
|
|
|
15058
15085
|
return $tea.cast(await this.callApi(params, req, runtime), new ModifyDBInstanceNetExpireTimeResponse({}));
|
|
15059
15086
|
}
|
|
15060
15087
|
/**
|
|
15061
|
-
* Before you call this operation, make sure that the following requirements
|
|
15062
|
-
* * The instance is in the
|
|
15088
|
+
* Before you call this operation, make sure that the instance meets the following requirements:
|
|
15089
|
+
* * The instance is in the Running state.
|
|
15063
15090
|
* * The network of the instance is in hybrid access mode.
|
|
15064
|
-
* > This operation is
|
|
15091
|
+
* > This operation is supported by replica set instances and sharded cluster instances. This operation is not supported by standalone instances.
|
|
15065
15092
|
*
|
|
15066
15093
|
* @param request ModifyDBInstanceNetExpireTimeRequest
|
|
15067
15094
|
* @return ModifyDBInstanceNetExpireTimeResponse
|
|
@@ -15288,10 +15315,11 @@ class Client extends openapi_client_1.default {
|
|
|
15288
15315
|
}
|
|
15289
15316
|
/**
|
|
15290
15317
|
* TDE allows you to perform real-time I/O encryption and decryption on data files. Data is encrypted before it is written to a disk and is decrypted when it is read from the disk to the memory. For more information, see [Configure TDE](~~131048~~).
|
|
15291
|
-
* >
|
|
15292
|
-
* Before you call this
|
|
15293
|
-
* *
|
|
15318
|
+
* > TDE cannot be disabled after it is enabled.
|
|
15319
|
+
* Before you call this operation, make sure that the ApsaraDB for MongoDB instance meets the following requirements:
|
|
15320
|
+
* * A replica set or sharded cluster instance is used.
|
|
15294
15321
|
* * The storage engine of the instance is WiredTiger.
|
|
15322
|
+
* * The instance uses local disks to store data.
|
|
15295
15323
|
* * The database engine version of the instance is 4.0 or 4.2. If the database engine version is earlier than 4.0, you can call the [UpgradeDBInstanceEngineVersion](~~67608~~) operation to upgrade the database engine.
|
|
15296
15324
|
*
|
|
15297
15325
|
* @param request ModifyDBInstanceTDERequest
|
|
@@ -15346,10 +15374,11 @@ class Client extends openapi_client_1.default {
|
|
|
15346
15374
|
}
|
|
15347
15375
|
/**
|
|
15348
15376
|
* TDE allows you to perform real-time I/O encryption and decryption on data files. Data is encrypted before it is written to a disk and is decrypted when it is read from the disk to the memory. For more information, see [Configure TDE](~~131048~~).
|
|
15349
|
-
* >
|
|
15350
|
-
* Before you call this
|
|
15351
|
-
* *
|
|
15377
|
+
* > TDE cannot be disabled after it is enabled.
|
|
15378
|
+
* Before you call this operation, make sure that the ApsaraDB for MongoDB instance meets the following requirements:
|
|
15379
|
+
* * A replica set or sharded cluster instance is used.
|
|
15352
15380
|
* * The storage engine of the instance is WiredTiger.
|
|
15381
|
+
* * The instance uses local disks to store data.
|
|
15353
15382
|
* * The database engine version of the instance is 4.0 or 4.2. If the database engine version is earlier than 4.0, you can call the [UpgradeDBInstanceEngineVersion](~~67608~~) operation to upgrade the database engine.
|
|
15354
15383
|
*
|
|
15355
15384
|
* @param request ModifyDBInstanceTDERequest
|
|
@@ -15559,10 +15588,11 @@ class Client extends openapi_client_1.default {
|
|
|
15559
15588
|
return await this.modifyInstanceAutoRenewalAttributeWithOptions(request, runtime);
|
|
15560
15589
|
}
|
|
15561
15590
|
/**
|
|
15562
|
-
* Before you call this operation, make sure that the following requirements
|
|
15563
|
-
* *
|
|
15564
|
-
* * The database version of the instance is 4.0 (with the minor version of mongodb\\_20190408\\_3.0.11 or later) or 4.2. You can call the [DescribeDBInstanceAttribute](~~62010~~) operation to view the database engine version of the instance. If necessary, you can call the [UpgradeDBInstanceEngineVersion](~~67608~~) operation to upgrade the database engine.
|
|
15565
|
-
* * The instance
|
|
15591
|
+
* Before you call this operation, make sure that the ApsaraDB for MongoDB instance meets the following requirements:
|
|
15592
|
+
* * The instance is a replica set or sharded cluster instance.
|
|
15593
|
+
* * The database engine version of the instance is 4.0 (with the minor version of mongodb\\_20190408\\_3.0.11 or later) or 4.2. You can call the [DescribeDBInstanceAttribute](~~62010~~) operation to view the database engine version of the instance. If necessary, you can call the [UpgradeDBInstanceEngineVersion](~~67608~~) operation to upgrade the database engine version of the instance.
|
|
15594
|
+
* * The network type of the instance must be VPC. If the network type of the instance is classic network, you must call the [ModifyDBInstanceNetworkType](~~62138~~) operation to change the network type to VPC.
|
|
15595
|
+
* * You can only disable but not enable password-free access over VPC.
|
|
15566
15596
|
*
|
|
15567
15597
|
* @param request ModifyInstanceVpcAuthModeRequest
|
|
15568
15598
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -15609,10 +15639,11 @@ class Client extends openapi_client_1.default {
|
|
|
15609
15639
|
return $tea.cast(await this.callApi(params, req, runtime), new ModifyInstanceVpcAuthModeResponse({}));
|
|
15610
15640
|
}
|
|
15611
15641
|
/**
|
|
15612
|
-
* Before you call this operation, make sure that the following requirements
|
|
15613
|
-
* *
|
|
15614
|
-
* * The database version of the instance is 4.0 (with the minor version of mongodb\\_20190408\\_3.0.11 or later) or 4.2. You can call the [DescribeDBInstanceAttribute](~~62010~~) operation to view the database engine version of the instance. If necessary, you can call the [UpgradeDBInstanceEngineVersion](~~67608~~) operation to upgrade the database engine.
|
|
15615
|
-
* * The instance
|
|
15642
|
+
* Before you call this operation, make sure that the ApsaraDB for MongoDB instance meets the following requirements:
|
|
15643
|
+
* * The instance is a replica set or sharded cluster instance.
|
|
15644
|
+
* * The database engine version of the instance is 4.0 (with the minor version of mongodb\\_20190408\\_3.0.11 or later) or 4.2. You can call the [DescribeDBInstanceAttribute](~~62010~~) operation to view the database engine version of the instance. If necessary, you can call the [UpgradeDBInstanceEngineVersion](~~67608~~) operation to upgrade the database engine version of the instance.
|
|
15645
|
+
* * The network type of the instance must be VPC. If the network type of the instance is classic network, you must call the [ModifyDBInstanceNetworkType](~~62138~~) operation to change the network type to VPC.
|
|
15646
|
+
* * You can only disable but not enable password-free access over VPC.
|
|
15616
15647
|
*
|
|
15617
15648
|
* @param request ModifyInstanceVpcAuthModeRequest
|
|
15618
15649
|
* @return ModifyInstanceVpcAuthModeResponse
|
|
@@ -16355,8 +16386,9 @@ class Client extends openapi_client_1.default {
|
|
|
16355
16386
|
return await this.restartDBInstanceWithOptions(request, runtime);
|
|
16356
16387
|
}
|
|
16357
16388
|
/**
|
|
16358
|
-
* This operation is
|
|
16359
|
-
*
|
|
16389
|
+
* This operation is no longer maintained and will be unavailable.
|
|
16390
|
+
* This operation is applicable only to replica set instances. You can clone a standalone instance by [creating an instance from a backup set](~~55013~~). You can clone a sharded cluster instance by calling the [CreateShardingDBInstance](~~61884~~) operation.
|
|
16391
|
+
* > This operation overwrites the data of the current instance, and the data cannot be recovered. Proceed with caution.
|
|
16360
16392
|
*
|
|
16361
16393
|
* @param request RestoreDBInstanceRequest
|
|
16362
16394
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -16400,8 +16432,9 @@ class Client extends openapi_client_1.default {
|
|
|
16400
16432
|
return $tea.cast(await this.callApi(params, req, runtime), new RestoreDBInstanceResponse({}));
|
|
16401
16433
|
}
|
|
16402
16434
|
/**
|
|
16403
|
-
* This operation is
|
|
16404
|
-
*
|
|
16435
|
+
* This operation is no longer maintained and will be unavailable.
|
|
16436
|
+
* This operation is applicable only to replica set instances. You can clone a standalone instance by [creating an instance from a backup set](~~55013~~). You can clone a sharded cluster instance by calling the [CreateShardingDBInstance](~~61884~~) operation.
|
|
16437
|
+
* > This operation overwrites the data of the current instance, and the data cannot be recovered. Proceed with caution.
|
|
16405
16438
|
*
|
|
16406
16439
|
* @param request RestoreDBInstanceRequest
|
|
16407
16440
|
* @return RestoreDBInstanceResponse
|