tencentcloud-sdk-nodejs-intl-en 3.0.334 → 3.0.338
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/apigateway/v20180808/models.js +27 -3
- package/tencentcloud/billing/v20180709/models.js +37 -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/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/mps/v20190612/models.js +8 -0
- 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
|
@@ -220,6 +220,13 @@ Note: this field may return null, indicating that no valid values can be obtaine
|
|
|
220
220
|
*/
|
|
221
221
|
this.SetType = null;
|
|
222
222
|
|
|
223
|
+
/**
|
|
224
|
+
* Cluster type for service deployment
|
|
225
|
+
Note: this field may return null, indicating that no valid values found.
|
|
226
|
+
* @type {string || null}
|
|
227
|
+
*/
|
|
228
|
+
this.DeploymentType = null;
|
|
229
|
+
|
|
223
230
|
}
|
|
224
231
|
|
|
225
232
|
/**
|
|
@@ -255,6 +262,7 @@ Note: this field may return null, indicating that no valid values can be obtaine
|
|
|
255
262
|
}
|
|
256
263
|
this.InstanceId = 'InstanceId' in params ? params.InstanceId : null;
|
|
257
264
|
this.SetType = 'SetType' in params ? params.SetType : null;
|
|
265
|
+
this.DeploymentType = 'DeploymentType' in params ? params.DeploymentType : null;
|
|
258
266
|
|
|
259
267
|
}
|
|
260
268
|
}
|
|
@@ -2850,6 +2858,20 @@ Note: this field may return null, indicating that no valid values can be obtaine
|
|
|
2850
2858
|
*/
|
|
2851
2859
|
this.SetType = null;
|
|
2852
2860
|
|
|
2861
|
+
/**
|
|
2862
|
+
* Cluster type for service deployment
|
|
2863
|
+
Note: this field may return null, indicating that no valid values found.
|
|
2864
|
+
* @type {string || null}
|
|
2865
|
+
*/
|
|
2866
|
+
this.DeploymentType = null;
|
|
2867
|
+
|
|
2868
|
+
/**
|
|
2869
|
+
* Whether it’s for special usage
|
|
2870
|
+
Note: this field may return `null`, indicating that no valid values can be obtained.
|
|
2871
|
+
* @type {string || null}
|
|
2872
|
+
*/
|
|
2873
|
+
this.SpecialUse = null;
|
|
2874
|
+
|
|
2853
2875
|
/**
|
|
2854
2876
|
* The unique request ID, which is returned for each request. RequestId is required for locating a problem.
|
|
2855
2877
|
* @type {string || null}
|
|
@@ -2913,6 +2935,8 @@ Note: this field may return null, indicating that no valid values can be obtaine
|
|
|
2913
2935
|
this.InstanceId = 'InstanceId' in params ? params.InstanceId : null;
|
|
2914
2936
|
this.InstanceName = 'InstanceName' in params ? params.InstanceName : null;
|
|
2915
2937
|
this.SetType = 'SetType' in params ? params.SetType : null;
|
|
2938
|
+
this.DeploymentType = 'DeploymentType' in params ? params.DeploymentType : null;
|
|
2939
|
+
this.SpecialUse = 'SpecialUse' in params ? params.SpecialUse : null;
|
|
2916
2940
|
this.RequestId = 'RequestId' in params ? params.RequestId : null;
|
|
2917
2941
|
|
|
2918
2942
|
}
|
|
@@ -5612,13 +5636,13 @@ class CreatePluginRequest extends AbstractModel {
|
|
|
5612
5636
|
super();
|
|
5613
5637
|
|
|
5614
5638
|
/**
|
|
5615
|
-
* Custom plugin name. A plugin name contain
|
|
5639
|
+
* Custom plugin name. A plugin name should contain 2-50 characters out of a-z, A-Z, 0-9, and _, which must begin with a letter and end with a letter or a number.
|
|
5616
5640
|
* @type {string || null}
|
|
5617
5641
|
*/
|
|
5618
5642
|
this.PluginName = null;
|
|
5619
5643
|
|
|
5620
5644
|
/**
|
|
5621
|
-
* Plugin type. Valid
|
|
5645
|
+
* Plugin type. Valid values: `IPControl`, `TrafficControl`, `Cors`, `CustomReq`, `CustomAuth`
|
|
5622
5646
|
* @type {string || null}
|
|
5623
5647
|
*/
|
|
5624
5648
|
this.PluginType = null;
|
|
@@ -6042,7 +6066,7 @@ class DomainSetList extends AbstractModel {
|
|
|
6042
6066
|
this.DomainName = null;
|
|
6043
6067
|
|
|
6044
6068
|
/**
|
|
6045
|
-
* Domain name resolution status.
|
|
6069
|
+
* Domain name resolution status. `1`: normal, `0`: failed
|
|
6046
6070
|
* @type {number || null}
|
|
6047
6071
|
*/
|
|
6048
6072
|
this.Status = null;
|
|
@@ -669,7 +669,27 @@ class DescribeBillDetailRequest extends AbstractModel {
|
|
|
669
669
|
this.ResourceId = null;
|
|
670
670
|
|
|
671
671
|
/**
|
|
672
|
-
*
|
|
672
|
+
* Action type to query. Valid values:
|
|
673
|
+
Purchase
|
|
674
|
+
Renewal
|
|
675
|
+
Modify
|
|
676
|
+
Refund
|
|
677
|
+
Deduction
|
|
678
|
+
Hourly settlement
|
|
679
|
+
Daily settlement
|
|
680
|
+
Monthly settlement
|
|
681
|
+
Offline project deduction
|
|
682
|
+
Offline deduction
|
|
683
|
+
adjust-CR
|
|
684
|
+
adjust-DR
|
|
685
|
+
One-off RI Fee
|
|
686
|
+
Spot
|
|
687
|
+
Hourly RI fee
|
|
688
|
+
New monthly subscription
|
|
689
|
+
Monthly subscription renewal
|
|
690
|
+
Monthly subscription specification adjustment
|
|
691
|
+
Monthly subscription specification adjustment
|
|
692
|
+
Monthly subscription refund
|
|
673
693
|
* @type {string || null}
|
|
674
694
|
*/
|
|
675
695
|
this.ActionType = null;
|
|
@@ -680,6 +700,13 @@ class DescribeBillDetailRequest extends AbstractModel {
|
|
|
680
700
|
*/
|
|
681
701
|
this.ProjectId = null;
|
|
682
702
|
|
|
703
|
+
/**
|
|
704
|
+
* Business code
|
|
705
|
+
Note: To query business codes used in the current month, call <a href="https://intl.cloud.tencent.com/document/product/555/35761?from_cn_redirect=1">DescribeBillSummaryByProduct</a>.
|
|
706
|
+
* @type {string || null}
|
|
707
|
+
*/
|
|
708
|
+
this.BusinessCode = null;
|
|
709
|
+
|
|
683
710
|
}
|
|
684
711
|
|
|
685
712
|
/**
|
|
@@ -701,6 +728,7 @@ class DescribeBillDetailRequest extends AbstractModel {
|
|
|
701
728
|
this.ResourceId = 'ResourceId' in params ? params.ResourceId : null;
|
|
702
729
|
this.ActionType = 'ActionType' in params ? params.ActionType : null;
|
|
703
730
|
this.ProjectId = 'ProjectId' in params ? params.ProjectId : null;
|
|
731
|
+
this.BusinessCode = 'BusinessCode' in params ? params.BusinessCode : null;
|
|
704
732
|
|
|
705
733
|
}
|
|
706
734
|
}
|
|
@@ -1369,6 +1397,13 @@ Monthly subscription refund
|
|
|
1369
1397
|
*/
|
|
1370
1398
|
this.PayMode = null;
|
|
1371
1399
|
|
|
1400
|
+
/**
|
|
1401
|
+
* Business code
|
|
1402
|
+
Note: To query business codes used in the current month, call <a href="https://intl.cloud.tencent.com/document/product/555/35761?from_cn_redirect=1">DescribeBillSummaryByProduct</a>.
|
|
1403
|
+
* @type {string || null}
|
|
1404
|
+
*/
|
|
1405
|
+
this.BusinessCode = null;
|
|
1406
|
+
|
|
1372
1407
|
}
|
|
1373
1408
|
|
|
1374
1409
|
/**
|
|
@@ -1386,6 +1421,7 @@ Monthly subscription refund
|
|
|
1386
1421
|
this.ActionType = 'ActionType' in params ? params.ActionType : null;
|
|
1387
1422
|
this.ResourceId = 'ResourceId' in params ? params.ResourceId : null;
|
|
1388
1423
|
this.PayMode = 'PayMode' in params ? params.PayMode : null;
|
|
1424
|
+
this.BusinessCode = 'BusinessCode' in params ? params.BusinessCode : null;
|
|
1389
1425
|
|
|
1390
1426
|
}
|
|
1391
1427
|
}
|
|
@@ -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.338";
|
|
2
2
|
module.exports = sdkVersion
|
|
@@ -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
|