@alicloud/dds20151201 5.0.1 → 5.0.3
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 +64 -40
- package/dist/client.js +78 -40
- package/dist/client.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +86 -40
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',
|
|
@@ -3626,6 +3630,7 @@ class DescribeParameterTemplatesRequest extends $tea.Model {
|
|
|
3626
3630
|
regionId: 'RegionId',
|
|
3627
3631
|
resourceOwnerAccount: 'ResourceOwnerAccount',
|
|
3628
3632
|
resourceOwnerId: 'ResourceOwnerId',
|
|
3633
|
+
role: 'Role',
|
|
3629
3634
|
};
|
|
3630
3635
|
}
|
|
3631
3636
|
static types() {
|
|
@@ -3637,6 +3642,7 @@ class DescribeParameterTemplatesRequest extends $tea.Model {
|
|
|
3637
3642
|
regionId: 'string',
|
|
3638
3643
|
resourceOwnerAccount: 'string',
|
|
3639
3644
|
resourceOwnerId: 'number',
|
|
3645
|
+
role: 'string',
|
|
3640
3646
|
};
|
|
3641
3647
|
}
|
|
3642
3648
|
}
|
|
@@ -8481,6 +8487,7 @@ class DescribeDBInstanceAttributeResponseBodyDBInstancesDBInstanceShardListShard
|
|
|
8481
8487
|
return {
|
|
8482
8488
|
connectString: 'ConnectString',
|
|
8483
8489
|
maxConnections: 'MaxConnections',
|
|
8490
|
+
maxDiskMbps: 'MaxDiskMbps',
|
|
8484
8491
|
maxIOPS: 'MaxIOPS',
|
|
8485
8492
|
nodeClass: 'NodeClass',
|
|
8486
8493
|
nodeDescription: 'NodeDescription',
|
|
@@ -8495,6 +8502,7 @@ class DescribeDBInstanceAttributeResponseBodyDBInstancesDBInstanceShardListShard
|
|
|
8495
8502
|
return {
|
|
8496
8503
|
connectString: 'string',
|
|
8497
8504
|
maxConnections: 'number',
|
|
8505
|
+
maxDiskMbps: 'string',
|
|
8498
8506
|
maxIOPS: 'number',
|
|
8499
8507
|
nodeClass: 'string',
|
|
8500
8508
|
nodeDescription: 'string',
|
|
@@ -8591,6 +8599,7 @@ class DescribeDBInstanceAttributeResponseBodyDBInstancesDBInstance extends $tea.
|
|
|
8591
8599
|
maintainStartTime: 'MaintainStartTime',
|
|
8592
8600
|
maxConnections: 'MaxConnections',
|
|
8593
8601
|
maxIOPS: 'MaxIOPS',
|
|
8602
|
+
maxMBPS: 'MaxMBPS',
|
|
8594
8603
|
mongosList: 'MongosList',
|
|
8595
8604
|
networkType: 'NetworkType',
|
|
8596
8605
|
protocolType: 'ProtocolType',
|
|
@@ -8646,6 +8655,7 @@ class DescribeDBInstanceAttributeResponseBodyDBInstancesDBInstance extends $tea.
|
|
|
8646
8655
|
maintainStartTime: 'string',
|
|
8647
8656
|
maxConnections: 'number',
|
|
8648
8657
|
maxIOPS: 'number',
|
|
8658
|
+
maxMBPS: 'number',
|
|
8649
8659
|
mongosList: DescribeDBInstanceAttributeResponseBodyDBInstancesDBInstanceMongosList,
|
|
8650
8660
|
networkType: 'string',
|
|
8651
8661
|
protocolType: 'string',
|
|
@@ -10527,8 +10537,8 @@ class Client extends openapi_client_1.default {
|
|
|
10527
10537
|
return endpoint_util_1.default.getEndpointRules(productId, regionId, endpointRule, network, suffix);
|
|
10528
10538
|
}
|
|
10529
10539
|
/**
|
|
10530
|
-
* This operation
|
|
10531
|
-
* > The
|
|
10540
|
+
* This operation is applicable only to sharded cluster instances. For more information, see [Apply for an endpoint for a shard or Configserver node](~~134037~~).
|
|
10541
|
+
* > 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
10542
|
*
|
|
10533
10543
|
* @param request AllocateNodePrivateNetworkAddressRequest
|
|
10534
10544
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -10581,8 +10591,8 @@ class Client extends openapi_client_1.default {
|
|
|
10581
10591
|
return $tea.cast(await this.callApi(params, req, runtime), new AllocateNodePrivateNetworkAddressResponse({}));
|
|
10582
10592
|
}
|
|
10583
10593
|
/**
|
|
10584
|
-
* This operation
|
|
10585
|
-
* > The
|
|
10594
|
+
* This operation is applicable only to sharded cluster instances. For more information, see [Apply for an endpoint for a shard or Configserver node](~~134037~~).
|
|
10595
|
+
* > 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
10596
|
*
|
|
10587
10597
|
* @param request AllocateNodePrivateNetworkAddressRequest
|
|
10588
10598
|
* @return AllocateNodePrivateNetworkAddressResponse
|
|
@@ -10687,8 +10697,8 @@ class Client extends openapi_client_1.default {
|
|
|
10687
10697
|
return await this.checkCloudResourceAuthorizedWithOptions(request, runtime);
|
|
10688
10698
|
}
|
|
10689
10699
|
/**
|
|
10690
|
-
* This operation is applicable to replica set instances
|
|
10691
|
-
* > After you confirm that the data
|
|
10700
|
+
* This operation is applicable to replica set instances and sharded cluster instances.
|
|
10701
|
+
* > 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
10702
|
*
|
|
10693
10703
|
* @param request CheckRecoveryConditionRequest
|
|
10694
10704
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -10744,8 +10754,8 @@ class Client extends openapi_client_1.default {
|
|
|
10744
10754
|
return $tea.cast(await this.callApi(params, req, runtime), new CheckRecoveryConditionResponse({}));
|
|
10745
10755
|
}
|
|
10746
10756
|
/**
|
|
10747
|
-
* This operation is applicable to replica set instances
|
|
10748
|
-
* > After you confirm that the data
|
|
10757
|
+
* This operation is applicable to replica set instances and sharded cluster instances.
|
|
10758
|
+
* > 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
10759
|
*
|
|
10750
10760
|
* @param request CheckRecoveryConditionRequest
|
|
10751
10761
|
* @return CheckRecoveryConditionResponse
|
|
@@ -11637,6 +11647,13 @@ class Client extends openapi_client_1.default {
|
|
|
11637
11647
|
let runtime = new $Util.RuntimeOptions({});
|
|
11638
11648
|
return await this.describeActiveOperationTaskCountWithOptions(request, runtime);
|
|
11639
11649
|
}
|
|
11650
|
+
/**
|
|
11651
|
+
* This operation is no longer updated and will be unavailable.
|
|
11652
|
+
*
|
|
11653
|
+
* @param request DescribeActiveOperationTaskTypeRequest
|
|
11654
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
11655
|
+
* @return DescribeActiveOperationTaskTypeResponse
|
|
11656
|
+
*/
|
|
11640
11657
|
async describeActiveOperationTaskTypeWithOptions(request, runtime) {
|
|
11641
11658
|
tea_util_1.default.validateModel(request);
|
|
11642
11659
|
let query = {};
|
|
@@ -11674,6 +11691,12 @@ class Client extends openapi_client_1.default {
|
|
|
11674
11691
|
});
|
|
11675
11692
|
return $tea.cast(await this.callApi(params, req, runtime), new DescribeActiveOperationTaskTypeResponse({}));
|
|
11676
11693
|
}
|
|
11694
|
+
/**
|
|
11695
|
+
* This operation is no longer updated and will be unavailable.
|
|
11696
|
+
*
|
|
11697
|
+
* @param request DescribeActiveOperationTaskTypeRequest
|
|
11698
|
+
* @return DescribeActiveOperationTaskTypeResponse
|
|
11699
|
+
*/
|
|
11677
11700
|
async describeActiveOperationTaskType(request) {
|
|
11678
11701
|
let runtime = new $Util.RuntimeOptions({});
|
|
11679
11702
|
return await this.describeActiveOperationTaskTypeWithOptions(request, runtime);
|
|
@@ -11945,7 +11968,7 @@ class Client extends openapi_client_1.default {
|
|
|
11945
11968
|
return await this.describeAuditRecordsWithOptions(request, runtime);
|
|
11946
11969
|
}
|
|
11947
11970
|
/**
|
|
11948
|
-
*
|
|
11971
|
+
* 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
11972
|
*
|
|
11950
11973
|
* @param request DescribeAvailabilityZonesRequest
|
|
11951
11974
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -11987,6 +12010,9 @@ class Client extends openapi_client_1.default {
|
|
|
11987
12010
|
if (!tea_util_1.default.isUnset(request.regionId)) {
|
|
11988
12011
|
query["RegionId"] = request.regionId;
|
|
11989
12012
|
}
|
|
12013
|
+
if (!tea_util_1.default.isUnset(request.replicationFactor)) {
|
|
12014
|
+
query["ReplicationFactor"] = request.replicationFactor;
|
|
12015
|
+
}
|
|
11990
12016
|
if (!tea_util_1.default.isUnset(request.resourceGroupId)) {
|
|
11991
12017
|
query["ResourceGroupId"] = request.resourceGroupId;
|
|
11992
12018
|
}
|
|
@@ -12022,7 +12048,7 @@ class Client extends openapi_client_1.default {
|
|
|
12022
12048
|
return $tea.cast(await this.callApi(params, req, runtime), new DescribeAvailabilityZonesResponse({}));
|
|
12023
12049
|
}
|
|
12024
12050
|
/**
|
|
12025
|
-
*
|
|
12051
|
+
* 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
12052
|
*
|
|
12027
12053
|
* @param request DescribeAvailabilityZonesRequest
|
|
12028
12054
|
* @return DescribeAvailabilityZonesResponse
|
|
@@ -12093,6 +12119,9 @@ class Client extends openapi_client_1.default {
|
|
|
12093
12119
|
if (!tea_util_1.default.isUnset(request.regionId)) {
|
|
12094
12120
|
query["RegionId"] = request.regionId;
|
|
12095
12121
|
}
|
|
12122
|
+
if (!tea_util_1.default.isUnset(request.replicationFactor)) {
|
|
12123
|
+
query["ReplicationFactor"] = request.replicationFactor;
|
|
12124
|
+
}
|
|
12096
12125
|
if (!tea_util_1.default.isUnset(request.resourceGroupId)) {
|
|
12097
12126
|
query["ResourceGroupId"] = request.resourceGroupId;
|
|
12098
12127
|
}
|
|
@@ -13386,9 +13415,9 @@ class Client extends openapi_client_1.default {
|
|
|
13386
13415
|
}
|
|
13387
13416
|
/**
|
|
13388
13417
|
* 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
|
|
13418
|
+
* 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
13419
|
* * 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
|
-
* *
|
|
13420
|
+
* * 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
13421
|
*
|
|
13393
13422
|
* @param request DescribeMongoDBLogConfigRequest
|
|
13394
13423
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -13430,9 +13459,9 @@ class Client extends openapi_client_1.default {
|
|
|
13430
13459
|
}
|
|
13431
13460
|
/**
|
|
13432
13461
|
* 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
|
|
13462
|
+
* 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
13463
|
* * 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
|
-
* *
|
|
13464
|
+
* * 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
13465
|
*
|
|
13437
13466
|
* @param request DescribeMongoDBLogConfigRequest
|
|
13438
13467
|
* @return DescribeMongoDBLogConfigResponse
|
|
@@ -13515,6 +13544,9 @@ class Client extends openapi_client_1.default {
|
|
|
13515
13544
|
if (!tea_util_1.default.isUnset(request.resourceOwnerId)) {
|
|
13516
13545
|
query["ResourceOwnerId"] = request.resourceOwnerId;
|
|
13517
13546
|
}
|
|
13547
|
+
if (!tea_util_1.default.isUnset(request.role)) {
|
|
13548
|
+
query["Role"] = request.role;
|
|
13549
|
+
}
|
|
13518
13550
|
let req = new $OpenApi.OpenApiRequest({
|
|
13519
13551
|
query: openapi_util_1.default.query(query),
|
|
13520
13552
|
});
|
|
@@ -14022,7 +14054,7 @@ class Client extends openapi_client_1.default {
|
|
|
14022
14054
|
return await this.describeSecurityIpsWithOptions(request, runtime);
|
|
14023
14055
|
}
|
|
14024
14056
|
/**
|
|
14025
|
-
* This operation
|
|
14057
|
+
* This operation is applicable only to sharded cluster instances.
|
|
14026
14058
|
*
|
|
14027
14059
|
* @param request DescribeShardingNetworkAddressRequest
|
|
14028
14060
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -14066,7 +14098,7 @@ class Client extends openapi_client_1.default {
|
|
|
14066
14098
|
return $tea.cast(await this.callApi(params, req, runtime), new DescribeShardingNetworkAddressResponse({}));
|
|
14067
14099
|
}
|
|
14068
14100
|
/**
|
|
14069
|
-
* This operation
|
|
14101
|
+
* This operation is applicable only to sharded cluster instances.
|
|
14070
14102
|
*
|
|
14071
14103
|
* @param request DescribeShardingNetworkAddressRequest
|
|
14072
14104
|
* @return DescribeShardingNetworkAddressResponse
|
|
@@ -15008,10 +15040,10 @@ class Client extends openapi_client_1.default {
|
|
|
15008
15040
|
return await this.modifyDBInstanceMonitorWithOptions(request, runtime);
|
|
15009
15041
|
}
|
|
15010
15042
|
/**
|
|
15011
|
-
* Before you call this operation, make sure that the following requirements
|
|
15012
|
-
* * The instance is in the
|
|
15043
|
+
* Before you call this operation, make sure that the instance meets the following requirements:
|
|
15044
|
+
* * The instance is in the Running state.
|
|
15013
15045
|
* * The network of the instance is in hybrid access mode.
|
|
15014
|
-
* > This operation is
|
|
15046
|
+
* > This operation is supported by replica set instances and sharded cluster instances. This operation is not supported by standalone instances.
|
|
15015
15047
|
*
|
|
15016
15048
|
* @param request ModifyDBInstanceNetExpireTimeRequest
|
|
15017
15049
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -15058,10 +15090,10 @@ class Client extends openapi_client_1.default {
|
|
|
15058
15090
|
return $tea.cast(await this.callApi(params, req, runtime), new ModifyDBInstanceNetExpireTimeResponse({}));
|
|
15059
15091
|
}
|
|
15060
15092
|
/**
|
|
15061
|
-
* Before you call this operation, make sure that the following requirements
|
|
15062
|
-
* * The instance is in the
|
|
15093
|
+
* Before you call this operation, make sure that the instance meets the following requirements:
|
|
15094
|
+
* * The instance is in the Running state.
|
|
15063
15095
|
* * The network of the instance is in hybrid access mode.
|
|
15064
|
-
* > This operation is
|
|
15096
|
+
* > This operation is supported by replica set instances and sharded cluster instances. This operation is not supported by standalone instances.
|
|
15065
15097
|
*
|
|
15066
15098
|
* @param request ModifyDBInstanceNetExpireTimeRequest
|
|
15067
15099
|
* @return ModifyDBInstanceNetExpireTimeResponse
|
|
@@ -15288,10 +15320,11 @@ class Client extends openapi_client_1.default {
|
|
|
15288
15320
|
}
|
|
15289
15321
|
/**
|
|
15290
15322
|
* 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
|
-
* *
|
|
15323
|
+
* > TDE cannot be disabled after it is enabled.
|
|
15324
|
+
* Before you call this operation, make sure that the ApsaraDB for MongoDB instance meets the following requirements:
|
|
15325
|
+
* * A replica set or sharded cluster instance is used.
|
|
15294
15326
|
* * The storage engine of the instance is WiredTiger.
|
|
15327
|
+
* * The instance uses local disks to store data.
|
|
15295
15328
|
* * 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
15329
|
*
|
|
15297
15330
|
* @param request ModifyDBInstanceTDERequest
|
|
@@ -15346,10 +15379,11 @@ class Client extends openapi_client_1.default {
|
|
|
15346
15379
|
}
|
|
15347
15380
|
/**
|
|
15348
15381
|
* 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
|
-
* *
|
|
15382
|
+
* > TDE cannot be disabled after it is enabled.
|
|
15383
|
+
* Before you call this operation, make sure that the ApsaraDB for MongoDB instance meets the following requirements:
|
|
15384
|
+
* * A replica set or sharded cluster instance is used.
|
|
15352
15385
|
* * The storage engine of the instance is WiredTiger.
|
|
15386
|
+
* * The instance uses local disks to store data.
|
|
15353
15387
|
* * 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
15388
|
*
|
|
15355
15389
|
* @param request ModifyDBInstanceTDERequest
|
|
@@ -15559,10 +15593,11 @@ class Client extends openapi_client_1.default {
|
|
|
15559
15593
|
return await this.modifyInstanceAutoRenewalAttributeWithOptions(request, runtime);
|
|
15560
15594
|
}
|
|
15561
15595
|
/**
|
|
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
|
|
15596
|
+
* Before you call this operation, make sure that the ApsaraDB for MongoDB instance meets the following requirements:
|
|
15597
|
+
* * The instance is a replica set or sharded cluster instance.
|
|
15598
|
+
* * 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.
|
|
15599
|
+
* * 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.
|
|
15600
|
+
* * You can only disable but not enable password-free access over VPC.
|
|
15566
15601
|
*
|
|
15567
15602
|
* @param request ModifyInstanceVpcAuthModeRequest
|
|
15568
15603
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -15609,10 +15644,11 @@ class Client extends openapi_client_1.default {
|
|
|
15609
15644
|
return $tea.cast(await this.callApi(params, req, runtime), new ModifyInstanceVpcAuthModeResponse({}));
|
|
15610
15645
|
}
|
|
15611
15646
|
/**
|
|
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
|
|
15647
|
+
* Before you call this operation, make sure that the ApsaraDB for MongoDB instance meets the following requirements:
|
|
15648
|
+
* * The instance is a replica set or sharded cluster instance.
|
|
15649
|
+
* * 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.
|
|
15650
|
+
* * 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.
|
|
15651
|
+
* * You can only disable but not enable password-free access over VPC.
|
|
15616
15652
|
*
|
|
15617
15653
|
* @param request ModifyInstanceVpcAuthModeRequest
|
|
15618
15654
|
* @return ModifyInstanceVpcAuthModeResponse
|
|
@@ -16355,8 +16391,9 @@ class Client extends openapi_client_1.default {
|
|
|
16355
16391
|
return await this.restartDBInstanceWithOptions(request, runtime);
|
|
16356
16392
|
}
|
|
16357
16393
|
/**
|
|
16358
|
-
* This operation is
|
|
16359
|
-
*
|
|
16394
|
+
* This operation is no longer maintained and will be unavailable.
|
|
16395
|
+
* 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.
|
|
16396
|
+
* > This operation overwrites the data of the current instance, and the data cannot be recovered. Proceed with caution.
|
|
16360
16397
|
*
|
|
16361
16398
|
* @param request RestoreDBInstanceRequest
|
|
16362
16399
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -16400,8 +16437,9 @@ class Client extends openapi_client_1.default {
|
|
|
16400
16437
|
return $tea.cast(await this.callApi(params, req, runtime), new RestoreDBInstanceResponse({}));
|
|
16401
16438
|
}
|
|
16402
16439
|
/**
|
|
16403
|
-
* This operation is
|
|
16404
|
-
*
|
|
16440
|
+
* This operation is no longer maintained and will be unavailable.
|
|
16441
|
+
* 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.
|
|
16442
|
+
* > This operation overwrites the data of the current instance, and the data cannot be recovered. Proceed with caution.
|
|
16405
16443
|
*
|
|
16406
16444
|
* @param request RestoreDBInstanceRequest
|
|
16407
16445
|
* @return RestoreDBInstanceResponse
|