tencentcloud-sdk-nodejs-intl-en 3.0.333 → 3.0.337
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/package.json +1 -1
- package/tencentcloud/cls/v20201016/cls_client.js +32 -47
- package/tencentcloud/cls/v20201016/models.js +26 -3
- package/tencentcloud/common/sdk_version.js +1 -1
- package/tencentcloud/es/v20180416/models.js +51 -0
- package/tencentcloud/lighthouse/v20200324/lighthouse_client.js +4 -2
- package/tencentcloud/lighthouse/v20200324/models.js +8 -2
- package/tencentcloud/mariadb/v20170312/mariadb_client.js +26 -0
- package/tencentcloud/mariadb/v20170312/models.js +158 -14
- package/tencentcloud/scf/v20180416/models.js +85 -1
- package/tencentcloud/scf/v20180416/scf_client.js +1 -0
- package/tencentcloud/vpc/v20170312/models.js +239 -23
- package/tencentcloud/vpc/v20170312/vpc_client.js +5 -2
package/package.json
CHANGED
|
@@ -595,7 +595,7 @@ class ClsClient extends AbstractClient {
|
|
|
595
595
|
/**
|
|
596
596
|
* ## Feature Description
|
|
597
597
|
|
|
598
|
-
This API is used to write
|
|
598
|
+
This API is used to write logs to a specified log topic.
|
|
599
599
|
|
|
600
600
|
CLS provides the following two modes:
|
|
601
601
|
|
|
@@ -605,72 +605,57 @@ In this mode, logs will be automatically written to a target partition among all
|
|
|
605
605
|
|
|
606
606
|
#### Hash routing mode
|
|
607
607
|
|
|
608
|
-
In this mode, data will be written to a target partition that meets the range requirements based on the hash value (X-CLS-HashKey) carried by data. For example, a log source can be bound to a topic partition through `
|
|
608
|
+
In this mode, data will be written to a target partition that meets the range requirements based on the hash value (`X-CLS-HashKey`) carried by data. For example, a log source can be bound to a topic partition through `HashKey`, strictly guaranteeing the sequence of the data written to and consumed in this partition.
|
|
609
609
|
|
|
610
610
|
In addition, CLS allows you to upload logs in the following two modes:
|
|
611
|
+
|
|
611
612
|
|
|
613
|
+
#### Input parameters (pb binary streams in `body`)
|
|
612
614
|
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
#### Request header parameters
|
|
616
|
-
|
|
617
|
-
The `X-CLS-HashKey` request header indicates that logs are written to the CLS topic partitions with a range corresponding to the hashkey route, strictly guaranteeing the write sequence of logs to each topic partition for sequential consumption.
|
|
618
|
-
|
|
619
|
-
| Field | Type | Location | Required | Description |
|
|
620
|
-
| ------------------ | ------ | ------ | -------- | ------------------------------------------------------------ |
|
|
621
|
-
| X-CLS-HashKey | string | header | No | Logs are written to the corresponding topic partition according to `hashkey` |
|
|
622
|
-
| X-CLS-TopicId | String | header | Yes | Topic ID | |
|
|
623
|
-
| Content-Type | String | header | Yes | Protocol type of the request parameter. Currently, only the PB protocol is supported. Please enter "application/octet-stream". |
|
|
624
|
-
| X-TC-Action | String | header | Yes | Common parameter. The value used for this API: UploadLog.
|
|
625
|
-
| X-TC-Region | String | header | Yes | Common parameter. This parameter is not required for this API.
|
|
626
|
-
| X-TC-Version | String | header | Yes | Common parameter. The value used for this API: 2020-10-16.
|
|
627
|
-
|
|
628
|
-
#### Input parameters (PB protocol)
|
|
629
|
-
|
|
630
|
-
| Field | Type | Location | Required | Description |
|
|
615
|
+
| Parameter | Type | Location | Required | Description |
|
|
631
616
|
| ------------ | ------- | ---- | ---- | ------------------------------------------------------------ |
|
|
632
|
-
| logGroupList | message | pb | Yes | The logGroup list, which describes the encapsulated log groups.
|
|
617
|
+
| logGroupList | message | pb | Yes | The `logGroup` list, which describes the encapsulated log groups. We recommend you enter up to 5 `logGroup` values. |
|
|
633
618
|
|
|
634
619
|
`LogGroup` description:
|
|
635
620
|
|
|
636
|
-
|
|
|
621
|
+
| Parameter | Required | Description |
|
|
637
622
|
| ----------- | -------- | ------------------------------------------------------------ |
|
|
638
623
|
| logs | Yes | Log array consisting of multiple `Log` values. The `Log` indicates a log, and a `LogGroup` can contain up to 10,000 `Log` values. |
|
|
639
|
-
| contextFlow | No | Unique LogGroup ID, which should be passed in if the context feature needs to be used. Format: "{context ID}-{LogGroupID}". <br>Context ID: uniquely identifies the context (a series of log files that are continuously scrolling or a series of logs that need to be sequenced), which is a 64-bit integer hex string. <br>LogGroupID: a 64-bit integer hex string that continuously increases, such as
|
|
624
|
+
| contextFlow | No | Unique `LogGroup` ID, which should be passed in if the context feature needs to be used. Format: "{context ID}-{LogGroupID}". <br>Context ID: uniquely identifies the context (a series of log files that are continuously scrolling or a series of logs that need to be sequenced), which is a 64-bit integer hex string. <br>LogGroupID: a 64-bit integer hex string that continuously increases, such as `102700A66102516A-59F59`. |
|
|
640
625
|
| filename | No | Log filename |
|
|
641
|
-
| source | No | Log source, which is generally the
|
|
642
|
-
| logTags | No | Tag list of
|
|
626
|
+
| source | No | Log source, which is generally the machine IP |
|
|
627
|
+
| logTags | No | Tag list of logs |
|
|
643
628
|
|
|
644
629
|
`Log` description:
|
|
645
630
|
|
|
646
|
-
|
|
|
631
|
+
| Parameter | Required | Description |
|
|
647
632
|
| -------- | -------- | ------------------------------------------------------------ |
|
|
648
|
-
| time | Yes |
|
|
649
|
-
| contents | No | Log content in
|
|
633
|
+
| time | Yes | Unix timestamp of log time in seconds or milliseconds (recommended) |
|
|
634
|
+
| contents | No | Log content in key-value format. A log can contain multiple key-value pairs. |
|
|
650
635
|
|
|
651
636
|
`Content` description:
|
|
652
637
|
|
|
653
|
-
|
|
|
638
|
+
| Parameter | Required | Description |
|
|
654
639
|
| ------ | -------- | ------------------------------------------------------------ |
|
|
655
640
|
| key | Yes | Key of a field group in one log, which cannot start with `_`. |
|
|
656
|
-
| value | Yes | Value of a field group
|
|
641
|
+
| value | Yes | Value of a field group. The `value` of one log cannot exceed 1 MB and the total `value` in `LogGroup` cannot exceed 5 MB. |
|
|
657
642
|
|
|
658
643
|
`LogTag` description:
|
|
659
644
|
|
|
660
|
-
|
|
|
645
|
+
| Parameter | Required | Description |
|
|
661
646
|
| ------ | -------- | -------------------------------- |
|
|
662
|
-
| key | Yes | Key of a custom tag
|
|
647
|
+
| key | Yes | Key of a custom tag |
|
|
663
648
|
| value | Yes | Value corresponding to the custom tag key |
|
|
664
649
|
|
|
665
|
-
##
|
|
650
|
+
## pb Compilation Sample
|
|
666
651
|
|
|
667
|
-
This sample describes how to use the protoc compiler to compile the
|
|
652
|
+
This sample describes how to use the protoc compiler to compile the pb description file into a log upload API in C++.
|
|
668
653
|
|
|
669
654
|
> ?Currently, protoc supports compilation in multiple programming languages such as Java, C++, and Python. For more information, please see [protoc](https://github.com/protocolbuffers/protobuf).
|
|
670
655
|
|
|
671
|
-
#### 1. Install Protocol
|
|
656
|
+
#### 1. Install Protocol Buffers
|
|
672
657
|
|
|
673
|
-
Download [Protocol
|
|
658
|
+
Download [Protocol Buffers](https://main.qcloudimg.com/raw/d7810aaf8b3073fbbc9d4049c21532aa/protobuf-2.6.1.tar.gz), decompress the package, and install the tool. The version used in the sample is protobuf 2.6.1 running on CentOS 7.3. Run the following command to decompress the `protobuf-2.6.1.tar.gz` package to the `/usr/local` directory and enter the directory:
|
|
674
659
|
|
|
675
660
|
```
|
|
676
661
|
tar -zxvf protobuf-2.6.1.tar.gz -C /usr/local/ && cd /usr/local/protobuf-2.6.1
|
|
@@ -691,15 +676,15 @@ After the compilation succeeds, run the following command to check the version:
|
|
|
691
676
|
liprotoc 2.6.1
|
|
692
677
|
```
|
|
693
678
|
|
|
694
|
-
#### 2. Create a
|
|
679
|
+
#### 2. Create a pb description file
|
|
695
680
|
|
|
696
|
-
A
|
|
681
|
+
A pb description file is an agreed-on data interchange format for communication. To upload logs, please compile the specified protocol format to an API in the target programming language and add the API to the project code. For more information, please see [protoc](https://github.com/protocolbuffers/protobuf).
|
|
697
682
|
|
|
698
|
-
Create a
|
|
683
|
+
Create a pb message description file `cls.proto` based on the pb data format content specified by CLS.
|
|
699
684
|
|
|
700
|
-
> !The
|
|
685
|
+
> !The pb description file content cannot be modified, and the filename must end with `.proto`.
|
|
701
686
|
|
|
702
|
-
The content of `cls.proto` (
|
|
687
|
+
The content of `cls.proto` (pb description file) is as follows:
|
|
703
688
|
|
|
704
689
|
```
|
|
705
690
|
package cls;
|
|
@@ -712,7 +697,7 @@ message Log
|
|
|
712
697
|
required string value = 2; // Value of each field group
|
|
713
698
|
}
|
|
714
699
|
required int64 time = 1; // Unix timestamp
|
|
715
|
-
repeated Content contents = 2; // Multiple
|
|
700
|
+
repeated Content contents = 2; // Multiple key-value pairs in one log
|
|
716
701
|
}
|
|
717
702
|
|
|
718
703
|
message LogTag
|
|
@@ -726,7 +711,7 @@ message LogGroup
|
|
|
726
711
|
repeated Log logs = 1; // Log array consisting of multiple logs
|
|
727
712
|
optional string contextFlow = 2; // This parameter does not take effect currently
|
|
728
713
|
optional string filename = 3; // Log filename
|
|
729
|
-
optional string source = 4; // Log source, which is generally the
|
|
714
|
+
optional string source = 4; // Log source, which is generally the machine IP
|
|
730
715
|
repeated LogTag logTags = 5;
|
|
731
716
|
}
|
|
732
717
|
|
|
@@ -744,9 +729,9 @@ This sample uses the proto compiler to generate a C++ file in the same directory
|
|
|
744
729
|
protoc --cpp_out=./ ./cls.proto
|
|
745
730
|
```
|
|
746
731
|
|
|
747
|
-
> ?`--cpp_out
|
|
732
|
+
> ?`--cpp_out=./ ` indicates that the file will be compiled in cpp format and output to the current directory. `./cls.proto` indicates the `cls.proto` description file in the current directory.
|
|
748
733
|
|
|
749
|
-
After the compilation succeeds, the code file in the corresponding programming language will be generated. This sample generates the `cls.pb.h` header file and
|
|
734
|
+
After the compilation succeeds, the code file in the corresponding programming language will be generated. This sample generates the `cls.pb.h` header file and `cls.pb.cc` code implementation file as shown below:
|
|
750
735
|
|
|
751
736
|
```
|
|
752
737
|
[root@VM_0_8_centos protobuf-2.6.1]# protoc --cpp_out=./ ./cls.proto
|
|
@@ -754,9 +739,9 @@ After the compilation succeeds, the code file in the corresponding programming l
|
|
|
754
739
|
cls.pb.cc cls.pb.h cls.proto
|
|
755
740
|
```
|
|
756
741
|
|
|
757
|
-
#### 4. Call
|
|
742
|
+
#### 4. Call the API
|
|
758
743
|
|
|
759
|
-
Import the generated `cls.pb.h` header file into the code and call the API for data
|
|
744
|
+
Import the generated `cls.pb.h` header file into the code and call the API for data encapsulation.
|
|
760
745
|
* @param {UploadLogRequest} req
|
|
761
746
|
* @param {function(string, UploadLogResponse):void} cb
|
|
762
747
|
* @public
|
|
@@ -702,6 +702,24 @@ class UploadLogRequest extends AbstractModel {
|
|
|
702
702
|
constructor(){
|
|
703
703
|
super();
|
|
704
704
|
|
|
705
|
+
/**
|
|
706
|
+
* Topic ID
|
|
707
|
+
* @type {string || null}
|
|
708
|
+
*/
|
|
709
|
+
this.TopicId = null;
|
|
710
|
+
|
|
711
|
+
/**
|
|
712
|
+
* Topic partition where data will be written into by `HashKey`
|
|
713
|
+
* @type {string || null}
|
|
714
|
+
*/
|
|
715
|
+
this.HashKey = null;
|
|
716
|
+
|
|
717
|
+
/**
|
|
718
|
+
* Compression type
|
|
719
|
+
* @type {string || null}
|
|
720
|
+
*/
|
|
721
|
+
this.CompressType = null;
|
|
722
|
+
|
|
705
723
|
}
|
|
706
724
|
|
|
707
725
|
/**
|
|
@@ -711,6 +729,9 @@ class UploadLogRequest extends AbstractModel {
|
|
|
711
729
|
if (!params) {
|
|
712
730
|
return;
|
|
713
731
|
}
|
|
732
|
+
this.TopicId = 'TopicId' in params ? params.TopicId : null;
|
|
733
|
+
this.HashKey = 'HashKey' in params ? params.HashKey : null;
|
|
734
|
+
this.CompressType = 'CompressType' in params ? params.CompressType : null;
|
|
714
735
|
|
|
715
736
|
}
|
|
716
737
|
}
|
|
@@ -3629,13 +3650,15 @@ Note: this field may return `null`, indicating that no valid values can be obtai
|
|
|
3629
3650
|
this.AnalysisResults = null;
|
|
3630
3651
|
|
|
3631
3652
|
/**
|
|
3632
|
-
*
|
|
3653
|
+
* New log analysis result, which will be valid if `UseNewAnalysis` is `true`
|
|
3654
|
+
Note: this field may return `null`, indicating that no valid values can be obtained.
|
|
3633
3655
|
* @type {Array.<string> || null}
|
|
3634
3656
|
*/
|
|
3635
3657
|
this.AnalysisRecords = null;
|
|
3636
3658
|
|
|
3637
3659
|
/**
|
|
3638
|
-
*
|
|
3660
|
+
* Column attribute of log analysis, which will be valid if `UseNewAnalysis` is `true`
|
|
3661
|
+
Note: this field may return `null`, indicating that no valid values can be obtained.
|
|
3639
3662
|
* @type {Array.<Column> || null}
|
|
3640
3663
|
*/
|
|
3641
3664
|
this.Columns = null;
|
|
@@ -5542,7 +5565,7 @@ class GetAlarmLogRequest extends AbstractModel {
|
|
|
5542
5565
|
this.Sort = null;
|
|
5543
5566
|
|
|
5544
5567
|
/**
|
|
5545
|
-
*
|
|
5568
|
+
* If the value is `true`, the new search method will be used, and the response parameters `AnalysisRecords` and `Columns` will be valid. If the value is `false`, the old search method will be used, and `AnalysisResults` and `ColNames` will be valid.
|
|
5546
5569
|
* @type {boolean || null}
|
|
5547
5570
|
*/
|
|
5548
5571
|
this.UseNewAnalysis = null;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const sdkVersion = "3.0.
|
|
1
|
+
const sdkVersion = "3.0.337";
|
|
2
2
|
module.exports = sdkVersion
|
|
@@ -1064,6 +1064,12 @@ Dedicated primary node disk size in GB, which is optional. If passed in, it can
|
|
|
1064
1064
|
*/
|
|
1065
1065
|
this.WebNodeTypeInfo = null;
|
|
1066
1066
|
|
|
1067
|
+
/**
|
|
1068
|
+
* Valid values: `https`, `http` (default)
|
|
1069
|
+
* @type {string || null}
|
|
1070
|
+
*/
|
|
1071
|
+
this.Protocol = null;
|
|
1072
|
+
|
|
1067
1073
|
}
|
|
1068
1074
|
|
|
1069
1075
|
/**
|
|
@@ -1131,6 +1137,7 @@ Dedicated primary node disk size in GB, which is optional. If passed in, it can
|
|
|
1131
1137
|
obj.deserialize(params.WebNodeTypeInfo)
|
|
1132
1138
|
this.WebNodeTypeInfo = obj;
|
|
1133
1139
|
}
|
|
1140
|
+
this.Protocol = 'Protocol' in params ? params.Protocol : null;
|
|
1134
1141
|
|
|
1135
1142
|
}
|
|
1136
1143
|
}
|
|
@@ -1506,6 +1513,20 @@ Note: this field may return `null`, indicating that no valid values can be obtai
|
|
|
1506
1513
|
*/
|
|
1507
1514
|
this.Jdk = null;
|
|
1508
1515
|
|
|
1516
|
+
/**
|
|
1517
|
+
* Cluster network communication protocol
|
|
1518
|
+
Note: this field may return `null`, indicating that no valid values can be obtained.
|
|
1519
|
+
* @type {string || null}
|
|
1520
|
+
*/
|
|
1521
|
+
this.Protocol = null;
|
|
1522
|
+
|
|
1523
|
+
/**
|
|
1524
|
+
* Security group ID
|
|
1525
|
+
Note: this field may return `null`, indicating that no valid values can be obtained.
|
|
1526
|
+
* @type {Array.<string> || null}
|
|
1527
|
+
*/
|
|
1528
|
+
this.SecurityGroups = null;
|
|
1529
|
+
|
|
1509
1530
|
}
|
|
1510
1531
|
|
|
1511
1532
|
/**
|
|
@@ -1631,6 +1652,8 @@ Note: this field may return `null`, indicating that no valid values can be obtai
|
|
|
1631
1652
|
this.WebNodeTypeInfo = obj;
|
|
1632
1653
|
}
|
|
1633
1654
|
this.Jdk = 'Jdk' in params ? params.Jdk : null;
|
|
1655
|
+
this.Protocol = 'Protocol' in params ? params.Protocol : null;
|
|
1656
|
+
this.SecurityGroups = 'SecurityGroups' in params ? params.SecurityGroups : null;
|
|
1634
1657
|
|
|
1635
1658
|
}
|
|
1636
1659
|
}
|
|
@@ -2124,6 +2147,30 @@ Dedicated primary node disk size in GB. This is 50 GB by default and currently c
|
|
|
2124
2147
|
*/
|
|
2125
2148
|
this.WebNodeTypeInfo = null;
|
|
2126
2149
|
|
|
2150
|
+
/**
|
|
2151
|
+
* Whether to switch to the new network architecture
|
|
2152
|
+
* @type {string || null}
|
|
2153
|
+
*/
|
|
2154
|
+
this.SwitchPrivateLink = null;
|
|
2155
|
+
|
|
2156
|
+
/**
|
|
2157
|
+
* Whether to enable Cerebro
|
|
2158
|
+
* @type {boolean || null}
|
|
2159
|
+
*/
|
|
2160
|
+
this.EnableCerebro = null;
|
|
2161
|
+
|
|
2162
|
+
/**
|
|
2163
|
+
* Cerebro public network access status
|
|
2164
|
+
* @type {string || null}
|
|
2165
|
+
*/
|
|
2166
|
+
this.CerebroPublicAccess = null;
|
|
2167
|
+
|
|
2168
|
+
/**
|
|
2169
|
+
* Cerebro private network access status
|
|
2170
|
+
* @type {string || null}
|
|
2171
|
+
*/
|
|
2172
|
+
this.CerebroPrivateAccess = null;
|
|
2173
|
+
|
|
2127
2174
|
}
|
|
2128
2175
|
|
|
2129
2176
|
/**
|
|
@@ -2194,6 +2241,10 @@ Dedicated primary node disk size in GB. This is 50 GB by default and currently c
|
|
|
2194
2241
|
obj.deserialize(params.WebNodeTypeInfo)
|
|
2195
2242
|
this.WebNodeTypeInfo = obj;
|
|
2196
2243
|
}
|
|
2244
|
+
this.SwitchPrivateLink = 'SwitchPrivateLink' in params ? params.SwitchPrivateLink : null;
|
|
2245
|
+
this.EnableCerebro = 'EnableCerebro' in params ? params.EnableCerebro : null;
|
|
2246
|
+
this.CerebroPublicAccess = 'CerebroPublicAccess' in params ? params.CerebroPublicAccess : null;
|
|
2247
|
+
this.CerebroPrivateAccess = 'CerebroPrivateAccess' in params ? params.CerebroPrivateAccess : null;
|
|
2197
2248
|
|
|
2198
2249
|
}
|
|
2199
2250
|
}
|
|
@@ -462,7 +462,9 @@ In the `FirewallRules` parameter:
|
|
|
462
462
|
* This API is used to reset the password of the instance OS to a user-specified password.
|
|
463
463
|
* You can only use this API to modify the password of the admin account. The name of the admin account varies by OS (on Windows, it is `Administrator`; on Ubuntu, it is `ubuntu`; on other systems, it is `root`).
|
|
464
464
|
* Batch operations are supported. You can reset the passwords of multiple instances to the same one. The maximum number of instances in each request is 100.
|
|
465
|
+
* It’s recommended to shut down the instance first and then reset the password. If the instance is running, this API will try to shut it down normally. If the attempt fails, it will force to instance to shut down.
|
|
465
466
|
* This API is async. After the request is sent successfully, a `RequestId` will be returned. At this time, the operation is not completed immediately. The result of the instance operation can be queried by calling the `DescribeInstances` API. If the latest operation status (LatestOperationState) of the instance is `SUCCESS`, the operation is successful.
|
|
467
|
+
Note: Just like powering off a physical PC, a forced shutdown may cause data loss or the corruption of file system.
|
|
466
468
|
* @param {ResetInstancesPasswordRequest} req
|
|
467
469
|
* @param {function(string, ResetInstancesPasswordResponse):void} cb
|
|
468
470
|
* @public
|
|
@@ -694,10 +696,10 @@ In the `FirewallRules` parameter:
|
|
|
694
696
|
}
|
|
695
697
|
|
|
696
698
|
/**
|
|
697
|
-
* This API is used to
|
|
699
|
+
* This API is used to terminate one or more instances.
|
|
698
700
|
|
|
699
701
|
* Instances in `SHUTDOWN` status can be terminated through this API and cannot be recovered.
|
|
700
|
-
* Batch operations are supported. The maximum number of instances in each request is 100.
|
|
702
|
+
* Batch operations are supported. The allowed maximum number of instances in each request is 100.
|
|
701
703
|
* This API is async. After the request is sent successfully, a `RequestId` will be returned. At this time, the operation is not completed immediately. The result of the instance operation can be queried by calling the `DescribeInstances` API. If the latest operation status (LatestOperationState) of the instance is `SUCCESS`, the operation is successful.
|
|
702
704
|
* @param {TerminateInstancesRequest} req
|
|
703
705
|
* @param {function(string, TerminateInstancesResponse):void} cb
|
|
@@ -1895,6 +1895,9 @@ Required: no
|
|
|
1895
1895
|
<li>blueprint-name</li>Filter by **image name**.
|
|
1896
1896
|
Type: String
|
|
1897
1897
|
Required: no
|
|
1898
|
+
<li>blueprint-state</li>Filter by **image status**.
|
|
1899
|
+
Type: String
|
|
1900
|
+
Required: no
|
|
1898
1901
|
|
|
1899
1902
|
Each request can contain up to 10 `Filters` and 5 `Filter.Values`. `BlueprintIds` and `Filters` cannot be specified at the same time.
|
|
1900
1903
|
* @type {Array.<Filter> || null}
|
|
@@ -3736,8 +3739,8 @@ class ResetInstancesPasswordRequest extends AbstractModel {
|
|
|
3736
3739
|
this.InstanceIds = null;
|
|
3737
3740
|
|
|
3738
3741
|
/**
|
|
3739
|
-
*
|
|
3740
|
-
The password of a `LINUX_UNIX` instance must contain 8–30 characters (above 12 characters preferably) in at least three of the following types and cannot begin with "/": <br><li>Lowercase letters: [a–z]<br><li>Uppercase letters: [A–Z]<br><li>Digits: 0–9<br><li>Special symbols: ()\`~!@#$%^&\*-+=\_|{}[]:;'
|
|
3742
|
+
* Login password of the instance(s). The password requirements vary among different operating systems:
|
|
3743
|
+
The password of a `LINUX_UNIX` instance must contain 8–30 characters (above 12 characters preferably) in at least three of the following types and cannot begin with "/": <br><li>Lowercase letters: [a–z]<br><li>Uppercase letters: [A–Z]<br><li>Digits: 0–9<br><li>Special symbols: ()\`~!@#$%^&\*-+=\_|{}[]:;'<>,.?/</li>
|
|
3741
3744
|
The password of a `WINDOWS` instance must contain 12–30 characters in at least three of the following types and cannot begin with "/" or include the username: <br><li>Lowercase letters: [a–z]<br><li>Uppercase letters: [A–Z]<br><li>Digits: 0–9<br><li>Special symbols: ()\`~!@#$%^&\*-+=\_|{}[]:;' <>,.?/<br><li>If both `LINUX_UNIX` and `WINDOWS` instances exist, the requirements for password complexity of `WINDOWS` instances shall prevail.
|
|
3742
3745
|
* @type {string || null}
|
|
3743
3746
|
*/
|
|
@@ -4665,6 +4668,9 @@ Required: no
|
|
|
4665
4668
|
<li>blueprint-name</li>Filter by **image name**.
|
|
4666
4669
|
Type: String
|
|
4667
4670
|
Required: no
|
|
4671
|
+
<li>blueprint-state</li>Filter by **image status**.
|
|
4672
|
+
Type: String
|
|
4673
|
+
Required: no
|
|
4668
4674
|
|
|
4669
4675
|
Each request can contain up to 10 `Filters` and 5 `Filter.Values`. `BlueprintIds` and `Filters` cannot be specified at the same time.
|
|
4670
4676
|
* @type {Array.<Filter> || null}
|
|
@@ -46,6 +46,7 @@ const ModifyDBInstancesProjectResponse = models.ModifyDBInstancesProjectResponse
|
|
|
46
46
|
const DBBackupTimeConfig = models.DBBackupTimeConfig;
|
|
47
47
|
const DescribeDBLogFilesRequest = models.DescribeDBLogFilesRequest;
|
|
48
48
|
const NodeInfo = models.NodeInfo;
|
|
49
|
+
const ModifySyncTaskAttributeResponse = models.ModifySyncTaskAttributeResponse;
|
|
49
50
|
const ModifyDBInstanceSecurityGroupsResponse = models.ModifyDBInstanceSecurityGroupsResponse;
|
|
50
51
|
const ResetAccountPasswordRequest = models.ResetAccountPasswordRequest;
|
|
51
52
|
const CopyAccountPrivilegesResponse = models.CopyAccountPrivilegesResponse;
|
|
@@ -71,6 +72,7 @@ const ModifyDBInstanceNameRequest = models.ModifyDBInstanceNameRequest;
|
|
|
71
72
|
const ModifyBackupTimeRequest = models.ModifyBackupTimeRequest;
|
|
72
73
|
const SecurityGroupBound = models.SecurityGroupBound;
|
|
73
74
|
const ColumnPrivilege = models.ColumnPrivilege;
|
|
75
|
+
const ModifySyncTaskAttributeRequest = models.ModifySyncTaskAttributeRequest;
|
|
74
76
|
const InitDBInstancesRequest = models.InitDBInstancesRequest;
|
|
75
77
|
const AssociateSecurityGroupsResponse = models.AssociateSecurityGroupsResponse;
|
|
76
78
|
const DBInstance = models.DBInstance;
|
|
@@ -97,6 +99,7 @@ const DeleteAccountRequest = models.DeleteAccountRequest;
|
|
|
97
99
|
const DescribeFlowRequest = models.DescribeFlowRequest;
|
|
98
100
|
const ModifyAccountPrivilegesRequest = models.ModifyAccountPrivilegesRequest;
|
|
99
101
|
const DescribeDBPerformanceResponse = models.DescribeDBPerformanceResponse;
|
|
102
|
+
const ModifyDBSyncModeRequest = models.ModifyDBSyncModeRequest;
|
|
100
103
|
const DescribeInstanceNodeInfoRequest = models.DescribeInstanceNodeInfoRequest;
|
|
101
104
|
const CreateAccountResponse = models.CreateAccountResponse;
|
|
102
105
|
const DescribeLogFileRetentionPeriodResponse = models.DescribeLogFileRetentionPeriodResponse;
|
|
@@ -114,6 +117,7 @@ const DescribeDBSlowLogsResponse = models.DescribeDBSlowLogsResponse;
|
|
|
114
117
|
const DescribeLogFileRetentionPeriodRequest = models.DescribeLogFileRetentionPeriodRequest;
|
|
115
118
|
const ModifyDBInstancesProjectRequest = models.ModifyDBInstancesProjectRequest;
|
|
116
119
|
const MonitorData = models.MonitorData;
|
|
120
|
+
const ModifyDBSyncModeResponse = models.ModifyDBSyncModeResponse;
|
|
117
121
|
const DescribeInstanceNodeInfoResponse = models.DescribeInstanceNodeInfoResponse;
|
|
118
122
|
const ModifyLogFileRetentionPeriodResponse = models.ModifyLogFileRetentionPeriodResponse;
|
|
119
123
|
const DisassociateSecurityGroupsResponse = models.DisassociateSecurityGroupsResponse;
|
|
@@ -322,6 +326,17 @@ Note: accounts with the same username but different hosts are different accounts
|
|
|
322
326
|
this.request("DescribeDBLogFiles", req, resp, cb);
|
|
323
327
|
}
|
|
324
328
|
|
|
329
|
+
/**
|
|
330
|
+
* This API is used to modify sync task attributes (currently, only the task name can be modified).
|
|
331
|
+
* @param {ModifySyncTaskAttributeRequest} req
|
|
332
|
+
* @param {function(string, ModifySyncTaskAttributeResponse):void} cb
|
|
333
|
+
* @public
|
|
334
|
+
*/
|
|
335
|
+
ModifySyncTaskAttribute(req, cb) {
|
|
336
|
+
let resp = new ModifySyncTaskAttributeResponse();
|
|
337
|
+
this.request("ModifySyncTaskAttribute", req, resp, cb);
|
|
338
|
+
}
|
|
339
|
+
|
|
325
340
|
/**
|
|
326
341
|
* This API is used to terminate a pay-as-you-go instance.
|
|
327
342
|
* @param {DestroyHourDBInstanceRequest} req
|
|
@@ -438,6 +453,17 @@ If no filter is specified, 20 instances will be returned by default. Up to 100 i
|
|
|
438
453
|
this.request("ModifyDBInstanceSecurityGroups", req, resp, cb);
|
|
439
454
|
}
|
|
440
455
|
|
|
456
|
+
/**
|
|
457
|
+
* This API is used to modify the sync mode of a TencentDB instance.
|
|
458
|
+
* @param {ModifyDBSyncModeRequest} req
|
|
459
|
+
* @param {function(string, ModifyDBSyncModeResponse):void} cb
|
|
460
|
+
* @public
|
|
461
|
+
*/
|
|
462
|
+
ModifyDBSyncMode(req, cb) {
|
|
463
|
+
let resp = new ModifyDBSyncModeResponse();
|
|
464
|
+
this.request("ModifyDBSyncMode", req, resp, cb);
|
|
465
|
+
}
|
|
466
|
+
|
|
441
467
|
/**
|
|
442
468
|
* This API is used to disable public network access for a TencentDB instance, which will make the public IP address inaccessible. The `DescribeDCDBInstances` API will not return the public domain name and port information of the corresponding instance.
|
|
443
469
|
* @param {CloseDBExtranetAccessRequest} req
|