### StartOpsTasks Command Example Source: https://github.com/tencentcloud/tencentcloud-cli/blob/master/tccli/examples/wedata/v20250806/StartOpsTasks.md This example demonstrates how to start an Ops task by providing the Project ID and Task ID. Ensure you have the correct Project ID and Task ID for the task you wish to start. ```bash tccli wedata StartOpsTasks --cli-unfold-argument \ --ProjectId 1460947878944567296 \ --TaskIds 20250630162948606 ``` -------------------------------- ### Batch Install Plugins Source: https://github.com/tencentcloud/tencentcloud-cli/blob/master/tccli/examples/es/v20180416/UpdatePlugins.md This example demonstrates how to batch install plugins to an ES instance. ```APIDOC ## Batch Install Plugins ### Description This operation allows you to batch install specified plugins to an Elasticsearch instance. ### Method POST (Implicitly via CLI command) ### Endpoint N/A (CLI command) ### Parameters #### CLI Arguments - **--InstanceId** (string) - Required - The ID of the ES instance. - **--InstallPluginList** (string) - Required - A list of plugin names to install, separated by spaces. ### Request Example ```bash tccli es UpdatePlugins --cli-unfold-argument --InstanceId es-xxxxxxxx --InstallPluginList analysis-qq sql ``` ### Response #### Success Response (200) - **Response.RequestId** (string) - The ID of the request. #### Response Example ```json { "Response": { "RequestId": "c96a110c-7493-452d-a99b-683d07xxxxxx" } } ``` ``` -------------------------------- ### Install Software Example Source: https://github.com/tencentcloud/tencentcloud-cli/blob/master/tccli/examples/emr/v20190103/InstallSoftware.md This example demonstrates how to install a specific software version (e.g., delta-2.2.0) on an EMR instance. ```APIDOC ## InstallSoftware ### Description Installs specified software on an EMR instance. ### Method POST ### Endpoint /} ### Parameters #### Query Parameters - **InstanceId** (string) - Required - The ID of the EMR instance. - **SoftInfo** (string) - Required - The name and version of the software to install, formatted as 'name-version'. ### Request Example ```bash tccli emr InstallSoftware --cli-unfold-argument \ --InstanceId emr-16ybdkys \ --SoftInfo delta-2.2.0 ``` ### Response #### Success Response (200) - **Response** (object) - The response from the API call. - **ErrorMessages** (array) - A list of error messages, if any. - **RequestId** (string) - The ID of the request. #### Response Example ```json { "Response": { "ErrorMessages": null, "RequestId": "a7f4bda9-8fc5-4b32-9cc2-7178200d4719" } } ``` ``` -------------------------------- ### Get Node Installer Information Source: https://github.com/tencentcloud/tencentcloud-cli/blob/master/tccli/examples/iecp/v20210914/DescribeEdgeAgentNodeInstaller.md This example demonstrates how to retrieve the installation script name, download URL, and guide for an edge agent node installer using the DescribeEdgeAgentNodeInstaller API. ```APIDOC ## DescribeEdgeAgentNodeInstaller ### Description Retrieves information about the edge agent node installer, including script details and installation guides. ### Method POST ### Endpoint /api/v2/DescribeEdgeAgentNodeInstaller ### Parameters #### Query Parameters - **EdgeUnitId** (string) - Required - The ID of the edge unit. - **NodeId** (string) - Required - The ID of the node. ### Request Example ```bash tccli iecp DescribeEdgeAgentNodeInstaller --cli-unfold-argument \ --EdgeUnitId 100055 \ --NodeId 100153 ``` ### Response #### Success Response (200) - **RequestId** (string) - The unique ID of the request. - **Online** (object) - Information about the online installer. - **ScriptName** (string) - The name of the installation script. - **ScriptDownloadUrl** (string) - The URL to download the installation script. - **Guide** (string) - Instructions or guide for installation. #### Response Example ```json { "Response": { "RequestId": "91d152c8-849c-438e-bf90-d2154dde7a03", "Online": { "ScriptName": "edgectl", "ScriptDownloadUrl": "", "Guide": "" } } } ``` ``` -------------------------------- ### Create Launch Configuration with Minimal Parameters Source: https://github.com/tencentcloud/tencentcloud-cli/blob/master/tccli/examples/autoscaling/v20180419/CreateLaunchConfiguration.md This example creates a launch configuration using only the essential parameters: launch configuration name, instance type, and image ID. Other settings will default to system values. This is useful for quick setup when default configurations are acceptable. ```bash tccli as CreateLaunchConfiguration --cli-unfold-argument \ --ImageId img-8toqc6s3 \ --InstanceType S2.SMALL1 \ --LaunchConfigurationName as_test ``` -------------------------------- ### Get Draco Edge Node Installer Source: https://github.com/tencentcloud/tencentcloud-cli/blob/master/tccli/examples/iecp/v20210914/DescribeDracoEdgeNodeInstaller.md This example demonstrates how to call the DescribeDracoEdgeNodeInstaller API to get the installation script for a Draco edge node. It requires the node's SN as input. ```APIDOC ## Get Draco Edge Node Installer ### Description Retrieves the installation command for a Draco edge node. ### Method POST (or GET, depending on CLI implementation) ### Endpoint /api/v20210914/DescribeDracoEdgeNodeInstaller ### Parameters #### Query Parameters - **SN** (string) - Required - The serial number of the Draco edge node. ### Request Example ```bash tccli iecp DescribeDracoEdgeNodeInstaller --cli-unfold-argument --SN SN2232323 ``` ### Response #### Success Response (200) - **OnlineInstallationCommand** (string) - The command to download and execute the edge node installer. #### Response Example ```json { "Response": { "RequestId": "115d57b3-6936-42a3-a9b7-1d84667c4e66", "OnlineInstallationCommand": "wget --header=\"x-cos-token:9h7Mq2zHoDK5mx3B\" https://tke-edge-1253687700.cos.accelerate.myqcloud.com/user-pkgs%2Fcls-9ab5x7749100009935455ap-guangzhou%2Fedgectl?sign=q-sign-algorithm%3Dsha1%26q-ak%3DAKIDUnpa4HDtIQHsDH4g15sOedLlvoQlpc8N%26q-sign-time%3D1647844231%3B1647847831%26q-key-time%3D1647844231%3B1647847831%26q-header-list%3Dx-cos-token%26q-url-param-list%3D%26q-signature%3D8345b0e5625d05bafa06bd2a898cf -O edgectl && chmod +x edgectl && ./edgectl install -n dddd" } } ``` ``` -------------------------------- ### Create Launch Configuration for Spot Instances Source: https://github.com/tencentcloud/tencentcloud-cli/blob/master/tccli/examples/autoscaling/v20180419/CreateLaunchConfiguration.md This example shows how to create a launch configuration for spot instances. It includes settings for the instance market type, maximum price, and specific spot instance options. Ensure that the `InstanceChargeType` is set to `SPOTPAID`. ```bash tccli as CreateLaunchConfiguration --cli-unfold-argument \ --SystemDisk.DiskSize 50 \ --SystemDisk.DiskType CLOUD_PREMIUM \ --InstanceMarketOptions.SpotOptions.SpotInstanceType one-time \ --InstanceMarketOptions.SpotOptions.MaxPrice 0.99 \ --InstanceMarketOptions.MarketType spot \ --ImageId img-8toqc6s3 \ --InstanceChargeType SPOTPAID \ --LaunchConfigurationName spot-test \ --InternetAccessible.PublicIpAssigned True \ --InternetAccessible.InternetChargeType TRAFFIC_POSTPAID_BY_HOUR \ --InternetAccessible.InternetMaxBandwidthOut 20 \ --InstanceType S2.MEDIUM4 ``` -------------------------------- ### Create Launch Configuration with Detailed Parameters Source: https://github.com/tencentcloud/tencentcloud-cli/blob/master/tccli/examples/autoscaling/v20180419/CreateLaunchConfiguration.md This comprehensive example demonstrates creating a launch configuration with detailed specifications, including system disk, data disks, login settings, enhanced services (monitoring and security), and network configurations. It covers advanced options like disk encryption and data disk deletion policy. ```bash tccli as CreateLaunchConfiguration --cli-unfold-argument \ --SystemDisk.DiskSize 50 \ --SystemDisk.DiskType LOCAL_BASIC \ --LoginSettings.KeyIds skey-k8eypc1l \ --ImageId img-8toqc6s3 \ --EnhancedService.SecurityService.Enabled True \ --EnhancedService.MonitorService.Enabled True \ --LaunchConfigurationName as_test \ --InternetAccessible.PublicIpAssigned True \ --InternetAccessible.InternetChargeType TRAFFIC_POSTPAID_BY_HOUR \ --InternetAccessible.InternetMaxBandwidthOut 5 \ --InstanceType S2.SMALL1 \ --DataDisks.0.Encrypt False \ --DataDisks.0.DeleteWithInstance True \ --DataDisks.0.DiskSize 100 \ --DataDisks.0.DiskType CLOUD_BASIC ``` -------------------------------- ### Get Public Key Example Source: https://github.com/tencentcloud/tencentcloud-cli/blob/master/tccli/examples/tcss/v20201101/DescribePublicKey.md This example demonstrates how to use the tccli to retrieve the public key. Ensure you have the tccli installed and configured. ```bash tccli tcss DescribePublicKey --cli-unfold-argument ``` -------------------------------- ### Example 1: Fetch SQL log start offset and log count Source: https://github.com/tencentcloud/tencentcloud-cli/blob/master/tccli/examples/dcdb/v20180411/DescribeSqlLogs.md This example demonstrates how to use the DescribeSqlLogs API to get the starting offset and the total count of SQL logs available for an instance. It's useful for understanding the log range before fetching specific logs. ```APIDOC ## DescribeSqlLogs ### Description Fetches SQL logs for a DCDB instance, allowing retrieval of log counts and offsets. ### Method GET (or POST, depending on CLI implementation) ### Endpoint /dcdb/DescribeSqlLogs ### Parameters #### Query Parameters - **InstanceId** (string) - Required - The ID of the DCDB instance. - **Limit** (integer) - Optional - The maximum number of logs to return. Setting to 0 can be used to query the total count and offsets. ### Request Example ```bash tccli dcdb DescribeSqlLogs --cli-unfold-argument \ --InstanceId dcdbt-ovulpcjf \ --Limit 0 ``` ### Response #### Success Response (200) - **RequestId** (string) - The unique ID of the request. - **TotalCount** (integer) - The total number of SQL logs available. - **StartOffset** (integer) - The starting offset of the SQL logs. - **EndOffset** (integer) - The ending offset of the SQL logs. - **Offset** (integer) - The current offset. - **Count** (integer) - The number of logs returned in this request. - **SqlItems** (array) - A list of SQL log items (empty in this specific example). #### Response Example ```json { "Response": { "RequestId": "9ce0cbb4-3863-4214-b7b2-d060a3f530d8", "TotalCount": 63, "StartOffset": 0, "EndOffset": 63, "Offset": 0, "Count": 0, "SqlItems": [] } } ``` ``` -------------------------------- ### StartUpInstance CLI Example Source: https://github.com/tencentcloud/tencentcloud-cli/blob/master/tccli/examples/keewidb/v20220308/StartUpInstance.md This example demonstrates how to use the Tencent Cloud CLI to start a Keeewidb instance. It requires the InstanceId as a parameter. ```APIDOC ## StartUpInstance ### Description Starts a Keeewidb instance. ### Method POST ### Endpoint / ### Parameters #### Query Parameters - **InstanceId** (string) - Required - The ID of the Keeewidb instance to start. ### Request Example ```bash tccli keewidb StartUpInstance --cli-unfold-argument --InstanceId kee-8kxz**** ``` ### Response #### Success Response (200) - **Response** (object) - The response from the API call, typically containing a RequestId. - **RequestId** (string) - The ID of the request. #### Response Example ```json { "Response": { "RequestId": "a6bec27a-a847-4fde-ab59-c106a37cc38a" } } ``` ``` -------------------------------- ### StartNotebook Example Source: https://github.com/tencentcloud/tencentcloud-cli/blob/master/tccli/examples/tione/v20211111/StartNotebook.md This example demonstrates how to start a Notebook instance using the tione CLI. You need to provide the Notebook instance ID. ```APIDOC ## StartNotebook ### Description Starts a Notebook instance. ### Method POST ### Endpoint /api/v1/startnotebook ### Parameters #### Path Parameters None #### Query Parameters None #### Request Body - **Id** (string) - Required - The ID of the Notebook instance to start. ### Request Example ```json { "Id": "nb-1188415493581985152" } ``` ### Response #### Success Response (200) - **Response** (object) - Contains details about the operation. - **RequestId** (string) - The ID of the request. #### Response Example ```json { "Response": { "RequestId": "f7df11d5-58c2-4767-956d-aa7158aab668" } } ``` ``` -------------------------------- ### DescribeOverviewInvocation API Example Source: https://github.com/tencentcloud/tencentcloud-cli/blob/master/tccli/examples/tsf/v20180326/DescribeOverviewInvocation.md This example demonstrates how to use the DescribeOverviewInvocation API to get the service invocation statistics overview. It specifies the namespace, the type of metric to retrieve, and the start and end times for the data. ```APIDOC ## DescribeOverviewInvocation ### Description Retrieves the invocation statistics overview for a given namespace. ### Method POST ### Endpoint /api/v20180326/tsf/DescribeOverviewInvocation ### Parameters #### Query Parameters - **NamespaceId** (string) - Required - The ID of the namespace. - **Type** (string) - Required - The type of metric to retrieve (e.g., SumReqAmount). - **StartTime** (string) - Required - The start time for the data retrieval in 'YYYY-MM-DD HH:MM:SS' format. - **EndTime** (string) - Required - The end time for the data retrieval in 'YYYY-MM-DD HH:MM:SS' format. ### Request Example ```bash tccli tsf DescribeOverviewInvocation --cli-unfold-argument \ --NamespaceId namespace-xxx \ --Type SumReqAmount \ --StartTime '2019-05-28 17:45:43' \ --EndTime '2019-05-29 17:45:43' ``` ### Response #### Success Response (200) - **RequestId** (string) - The unique ID of the request. - **Result** (array) - An array containing the invocation statistics overview. The structure of elements within this array depends on the 'Type' parameter. #### Response Example ```json { "Response": { "RequestId": "2903f230-fabc-4dff-b4c4-1fbe0fd73ebe", "Result": [] } } ``` ``` -------------------------------- ### Get Weekly Report Details Source: https://github.com/tencentcloud/tencentcloud-cli/blob/master/tccli/examples/cwp/v20180228/DescribeWeeklyReportInfo.md This example demonstrates how to retrieve the details of a professional weekly security report by specifying the start date. ```APIDOC ## DescribeWeeklyReportInfo ### Description Retrieves the details of a professional weekly security report. ### Method GET (Implicit via CLI command) ### Endpoint Not directly applicable for CLI commands, but conceptually related to the CWP service. ### Parameters #### Query Parameters - **BeginDate** (string) - Required - The start date for the weekly report (e.g., "2018-10-08"). ### Request Example ```bash tccli cwp DescribeWeeklyReportInfo --cli-unfold-argument \ --BeginDate 2018-10-08 ``` ### Response #### Success Response (200) - **Response** (object) - The response object containing report details. - **RequestId** (string) - The unique ID of the request. - **CompanyName** (string) - The name of the company. - **MachineNum** (integer) - Total number of machines. - **OnlineMachineNum** (integer) - Number of online machines. - **OfflineMachineNum** (integer) - Number of offline machines. - **ProVersionMachineNum** (integer) - Number of machines with professional version. - **MalwareNum** (integer) - Number of malware incidents. - **NonlocalLoginNum** (integer) - Number of non-local login events. - **BruteAttackSuccessNum** (integer) - Number of successful brute-force attacks. - **VulNum** (integer) - Number of vulnerabilities. - **DownloadUrl** (string) - URL to download the report. - **Level** (string) - Security level (e.g., "LOW"). - **BeginDate** (string) - The start date of the report. - **EndDate** (string) - The end date of the report. #### Response Example ```json { "Response": { "RequestId": "354f4ac3-8546-4516-8c8a-69e3ab73aa8a", "CompanyName": "组件名称", "MachineNum": 100, "OnlineMachineNum": 80, "OfflineMachineNum": 20, "ProVersionMachineNum": 30, "MalwareNum": 11, "NonlocalLoginNum": 11, "BruteAttackSuccessNum": 11, "VulNum": 11, "DownloadUrl": "http://download-url.com/xxx.xlsx", "Level": "LOW", "BeginDate": "2018-10-08", "EndDate": "2018-10-13" } } ``` ``` -------------------------------- ### Create Launch Configuration with Detailed Parameters Source: https://github.com/tencentcloud/tencentcloud-cli/blob/master/tccli/examples/autoscaling/v20180419/CreateLaunchConfiguration.md This example demonstrates creating a launch configuration with detailed settings for system disk, data disks, network, login, and enhanced services. ```APIDOC ## CreateLaunchConfiguration (Detailed) ### Description Creates a launch configuration with comprehensive settings including system disk, data disks, network, login method, and enhanced services. ### Method `tccli as CreateLaunchConfiguration` ### Parameters * `--SystemDisk.DiskSize` (integer) - Required - The size of the system disk. * `--SystemDisk.DiskType` (string) - Required - The type of the system disk. * `--LoginSettings.KeyIds` (array of strings) - Required - A list of key IDs for SSH key login. * `--ImageId` (string) - Required - The ID of the image to use for the instances. * `--EnhancedService.SecurityService.Enabled` (boolean) - Optional - Whether to enable the security service. * `--EnhancedService.MonitorService.Enabled` (boolean) - Optional - Whether to enable the monitor service. * `--LaunchConfigurationName` (string) - Required - The name of the launch configuration. * `--InternetAccessible.PublicIpAssigned` (boolean) - Optional - Whether to assign a public IP address. * `--InternetAccessible.InternetChargeType` (string) - Optional - The internet charge type. * `--InternetAccessible.InternetMaxBandwidthOut` (integer) - Optional - The maximum outbound internet bandwidth. * `--InstanceType` (string) - Required - The instance type. * `--DataDisks.0.Encrypt` (boolean) - Optional - Whether the data disk is encrypted. * `--DataDisks.0.DeleteWithInstance` (boolean) - Optional - Whether to delete the data disk when the instance is terminated. * `--DataDisks.0.DiskSize` (integer) - Optional - The size of the data disk. * `--DataDisks.0.DiskType` (string) - Optional - The type of the data disk. ### Request Example ```bash tccli as CreateLaunchConfiguration --cli-unfold-argument \ --SystemDisk.DiskSize 50 \ --SystemDisk.DiskType LOCAL_BASIC \ --LoginSettings.KeyIds skey-k8eypc1l \ --ImageId img-8toqc6s3 \ --EnhancedService.SecurityService.Enabled True \ --EnhancedService.MonitorService.Enabled True \ --LaunchConfigurationName as_test \ --InternetAccessible.PublicIpAssigned True \ --InternetAccessible.InternetChargeType TRAFFIC_POSTPAID_BY_HOUR \ --InternetAccessible.InternetMaxBandwidthOut 5 \ --InstanceType S2.SMALL1 \ --DataDisks.0.Encrypt False \ --DataDisks.0.DeleteWithInstance True \ --DataDisks.0.DiskSize 100 \ --DataDisks.0.DiskType CLOUD_BASIC ``` ### Response #### Success Response (200) * `LaunchConfigurationId` (string) - The ID of the created launch configuration. * `RequestId` (string) - The ID of the request. #### Response Example ```json { "Response": { "LaunchConfigurationId": "asc-fdz8j7dh", "RequestId": "9a7209d3-2260-49d7-952a-dfa2001f8822" } } ``` ``` -------------------------------- ### Get Action Log Example Source: https://github.com/tencentcloud/tencentcloud-cli/blob/master/tccli/examples/dayu/v20180709/DescribeActionLog.md This example demonstrates how to use the Tencent Cloud CLI to fetch action logs. It specifies the start and end times, business type, resource ID, and pagination parameters. ```APIDOC ## DescribeActionLog ### Description Retrieves action logs for a specified period and business. ### Method POST (implied by CLI usage, though not explicitly stated in source) ### Endpoint / (implied by CLI usage, though not explicitly stated in source) ### Parameters #### Query Parameters - **StartTime** (string) - Required - The start time for the log query. - **EndTime** (string) - Required - The end time for the log query. - **Business** (string) - Required - The type of business to query logs for (e.g., "bgpip"). - **Id** (string) - Required - The ID of the resource to query logs for. - **Limit** (integer) - Optional - The maximum number of logs to return. - **Offset** (integer) - Optional - The offset for pagination. ### Request Example ```bash tccli dayu DescribeActionLog --cli-unfold-argument \ --StartTime '2018-11-23 00:00:00' \ --EndTime '2018-11-24 00:00:00' \ --Business bgpip \ --Id bgpip-000000xe \ --Limit 10 \ --Offset 0 ``` ### Response #### Success Response (200) - **Data** (array) - Contains the log records. - **Record** (array) - A list of key-value pairs representing a single log entry. - **Key** (string) - The name of the log field. - **Value** (string) - The value of the log field. - **RequestId** (string) - The ID of the request. - **TotalCount** (integer) - The total number of logs found. #### Response Example ```json { "Response": { "Data": [ { "Record": [ { "Key": "AppId", "Value": "251000862" }, { "Key": "Uin", "Value": "1445149556" }, { "Key": "Business", "Value": "bgp" }, { "Key": "RsIdStr", "Value": "bgp-0000000o" }, { "Key": "Action", "Value": "NS.BGP.ServicePack.SetCCThreshold" }, { "Key": "ActionDesc", "Value": "Set CC Threshold" }, { "Key": "Params", "Value": "{\"id\":\"bgp-0000000o\",\"threshold\":\"850\"}" }, { "Key": "RespCode", "Value": "success" }, { "Key": "Timestamp", "Value": "2018-11-23 11:46:47" } ] } ], "RequestId": "c451fdf9-d24d-4578-a40c-fe34e34829db", "TotalCount": 1 } } ``` ``` -------------------------------- ### Start BM Devices Source: https://github.com/tencentcloud/tencentcloud-cli/blob/master/tccli/examples/bm/v20180423/StartDevices.md This example demonstrates how to start multiple Bare Metal server instances using their InstanceIds. ```APIDOC ## StartDevices ### Description Starts specified Bare Metal server instances. ### Method `StartDevices` ### Parameters #### Query Parameters - **InstanceIds** (string array) - Required - The IDs of the instances to start. ### Request Example ```bash tccli bm StartDevices --cli-unfold-argument --InstanceIds cpm-xxx0 cpm-xxx1 cpm-xxx2 ``` ### Response #### Success Response (200) - **TaskId** (integer) - The ID of the task. - **RequestId** (string) - The ID of the request. #### Response Example ```json { "Response": { "TaskId": 123, "RequestId": "3f02fb0c-f782-4cef-9007-d63c68146e39" } } ``` ``` -------------------------------- ### Get Edge Agent Node Installer Information Source: https://github.com/tencentcloud/tencentcloud-cli/blob/master/tccli/examples/iecp/v20210914/DescribeEdgeAgentNodeInstaller.md Use this command to retrieve the installation script name, download URL, and guide for an edge agent node. Specify the EdgeUnitId and NodeId of the target node. ```bash tccli iecp DescribeEdgeAgentNodeInstaller --cli-unfold-argument \ --EdgeUnitId 100055 \ --NodeId 100153 ``` ```json { "Response": { "RequestId": "91d152c8-849c-438e-bf90-d2154dde7a03", "Online": { "ScriptName": "edgectl", "ScriptDownloadUrl": "", "Guide": "" } } } ``` -------------------------------- ### Start Notebook Instance Source: https://github.com/tencentcloud/tencentcloud-cli/blob/master/tccli/examples/tione/v20191022/StartNotebookInstance.md Use this command to start a Notebook instance. Ensure the NotebookInstanceName is specified. ```bash tccli tione StartNotebookInstance --cli-unfold-argument \ --NotebookInstanceName apitest ``` ```json { "Response": { "RequestId": "fe8f6fd2-1f51-4699-b19d-efa8b6efde8a" } } ``` -------------------------------- ### DescribeRumStatsLogList API Example 2: Get Log List Source: https://github.com/tencentcloud/tencentcloud-cli/blob/master/tccli/examples/rum/v20210622/DescribeRumStatsLogList.md This example demonstrates fetching a list of logs with specific query parameters like start time, limit, query string, end time, and ID. ```bash tccli rum DescribeRumStatsLogList --cli-unfold-argument \ --StartTime "1" \ --Limit 10 \ --Query "*" \ --EndTime "20" \ --ID 10 ``` ```json { "Response": { "Result": "Traceback (most recent call last):\n File \"/opt/app-root/lib64/python3.8/site-packages/tornado/web.py\", line 1763, in _execute\n result = self.prepare()\n File \"/opt/app-root/lib64/python3.8/site-packages/tornado/web.py\", line 2538, in prepare\n raise HTTPError(self._status_code)\ntornado.web.HTTPError: HTTP 404: Not Found\n", "RequestId": "65a8fec7-2b39-4b11-893f-3715279d235f" } } ``` -------------------------------- ### Create Recording Plan with Basic Configuration Source: https://github.com/tencentcloud/tencentcloud-cli/blob/master/tccli/examples/iotvideoindustry/v20201201/CreateRecordingPlan.md This example shows how to create a recording plan with a specified time template, record storage time, and a name. It's a simpler configuration when channel-specific details are not required at creation. ```bash tccli iotvideoindustry CreateRecordingPlan --cli-unfold-argument \ --TimeTemplateId tgrp-fmwq1f1a \ --RecordStorageTime 3 \ --Name allday ``` ```json { "Response": { "PlanId": "1u9z7ugo", "RequestId": "8ae1b70c-bf32-4cb0-a15e-dc2af40fa035" } } ``` -------------------------------- ### Get Basic Performance Data Source: https://github.com/tencentcloud/tencentcloud-cli/blob/master/tccli/examples/rum/v20210622/DescribeDataPerformancePage.md This example shows how to retrieve basic performance data by specifying the start and end times, type, and ID. ```bash tccli rum DescribeDataPerformancePage --cli-unfold-argument \ --EndTime 1658390700 \ --Type allcount \ --ID 1 \ --StartTime 1658304300 ``` -------------------------------- ### Get a specified number of AI Recognition Templates Source: https://github.com/tencentcloud/tencentcloud-cli/blob/master/tccli/examples/vod/v20180717/DescribeAIRecognitionTemplates.md This example demonstrates how to retrieve a specific number of AI recognition templates, starting from the first one. ```APIDOC ## DescribeAIRecognitionTemplates ### Description Retrieves a list of AI recognition templates, allowing you to specify the number of templates to fetch and the starting offset. ### Method GET (or POST, depending on the API design, but CLI examples suggest a command-line invocation) ### Endpoint /vod/DescribeAIRecognitionTemplates ### Parameters #### Query Parameters - **Limit** (integer) - Optional - The maximum number of templates to return. Example: 10 - **Offset** (integer) - Optional - The starting position for retrieving templates. Example: 0 ### Request Example ```bash tccli vod DescribeAIRecognitionTemplates --cli-unfold-argument --Limit 10 --Offset 0 ``` ### Response #### Success Response (200) - **TotalCount** (integer) - The total number of available templates. - **AIRecognitionTemplateSet** (array) - A list of AI recognition template objects. - Each object contains details like `Definition`, `Name`, `Type`, `Comment`, configuration for `HeadTail`, `Segment`, `Face`, `OcrFullText`, `OcrWords`, `AsrFullText`, `AsrTranslate`, `AsrWords`, `Object`, `ScreenshotInterval`, `CreateTime`, and `UpdateTime`. #### Response Example ```json { "Response": { "TotalCount": 2, "AIRecognitionTemplateSet": [ { "Definition": 30, "Name": "模板1", "Type": "Preset", "Comment": "智能识别模板", "HeadTailConfigure": { "Switch": "ON" }, "SegmentConfigure": { "Switch": "ON" }, "FaceConfigure": { "Switch": "ON", "FaceLibrary": "All", "Score": 0, "UserDefineLibraryLabelSet": [], "DefaultLibraryLabelSet": [] }, "OcrFullTextConfigure": { "Switch": "ON" }, "OcrWordsConfigure": { "Switch": "OFF", "LabelSet": [] }, "AsrFullTextConfigure": { "Switch": "ON", "SrcLanguage": "", "SubtitleFormats": [] }, "AsrTranslateConfigure": { "Switch": "OFF", "SrcLanguage": "", "DstLanguage": "", "SubtitleFormats": [], "SubtitleName": "" }, "AsrWordsConfigure": { "Switch": "OFF", "LabelSet": [] }, "ObjectConfigure": { "Switch": "ON", "ObjectLibrary": "All" }, "ScreenshotInterval": 10, "CreateTime": "2019-01-01T12:00:00Z", "UpdateTime": "2019-01-01T16:00:00Z" }, { "Definition": 31, "Name": "模板2", "Type": "Preset", "Comment": "智能识别模板", "HeadTailConfigure": { "Switch": "ON" }, "SegmentConfigure": { "Switch": "OFF" }, "FaceConfigure": { "Switch": "OFF", "FaceLibrary": "All", "Score": 0, "UserDefineLibraryLabelSet": [], "DefaultLibraryLabelSet": [] }, "OcrFullTextConfigure": { "Switch": "OFF" }, "OcrWordsConfigure": { "Switch": "OFF", "LabelSet": [] }, "AsrFullTextConfigure": { "Switch": "OFF", "SrcLanguage": "", "SubtitleFormats": [] }, "AsrTranslateConfigure": { "Switch": "OFF", "SrcLanguage": "", "DstLanguage": "", "SubtitleFormats": [], "SubtitleName": "" }, "AsrWordsConfigure": { "Switch": "OFF", "LabelSet": [] }, "ObjectConfigure": { "Switch": "ON", "ObjectLibrary": "All" }, "ScreenshotInterval": 10, "CreateTime": "2019-01-01T11:00:00Z", "UpdateTime": "2019-01-01T12:00:00Z" } ], "RequestId": "19ae8d8e-dce3-4151-9d4b-5594384987a9" } } ``` ``` -------------------------------- ### CreateVmInstance Example Source: https://github.com/tencentcloud/tencentcloud-cli/blob/master/tccli/examples/tcb/v20180608/CreateVmInstance.md This example demonstrates how to create a LightHouse VM instance using the TCB CLI. ```APIDOC ## CreateVmInstance ### Description Creates a VM instance for the TCB environment. ### Method POST (implied by CLI command structure) ### Endpoint (Not explicitly defined in the provided text, but implied to be a TCB API endpoint) ### Parameters #### CLI Arguments - **EnvId** (string) - Required - The environment ID. - **Type** (string) - Required - The type of instance to create (e.g., LightHouse). - **LightHouseBundleId** (string) - Required - The bundle ID for the LightHouse instance. - **LightHouseBlueprintId** (string) - Required - The blueprint ID for the LightHouse instance. - **InstanceName** (string) - Optional - The name for the new instance. ### Request Example ```bash tccli tcb CreateVmInstance --cli-unfold-argument --EnvId free2-2gi6dzbde85f86a0 --Type LightHouse --LightHouseBundleId bundle_rs_mc_med1_02 --LightHouseBlueprintId lhbp-3qjk6slu --InstanceName my new lighthouse instance ``` ### Response #### Success Response (200) - **Response.RequestId** (string) - The ID of the request. #### Response Example ```json { "Response": { "RequestId": "f12f533b-bc0a-403a-97a5-0a5cb9299d25" } } ``` ``` -------------------------------- ### CreateInstance CLI Example Source: https://github.com/tencentcloud/tencentcloud-cli/blob/master/tccli/examples/mqtt/v20240516/CreateInstance.md This example demonstrates how to create a basic MQTT instance with specified type, name, SKU, remark, VPC details, and IP rules. ```APIDOC ## CreateInstance ### Description Creates a new MQTT instance with specified configurations. ### Method `tccli mqtt CreateInstance` ### Parameters #### CLI Arguments - **--InstanceType** (string) - Required - The type of the instance (e.g., BASIC). - **--Name** (string) - Required - The name of the instance. - **--SkuCode** (string) - Required - The SKU code for the instance (e.g., basic_1k). - **--Remark** (string) - Optional - A remark for the instance. - **--VpcList.0.VpcId** (string) - Required if VpcList is provided - The VPC ID. - **--VpcList.0.SubnetId** (string) - Required if VpcList is provided - The Subnet ID. - **--IpRules.0.Ip** (string) - Required if IpRules is provided - The IP address for the rule. - **--IpRules.0.Allow** (boolean) - Required if IpRules is provided - Whether to allow or deny the IP. - **--IpRules.0.Remark** (string) - Optional - A remark for the IP rule. ### Request Example ```bash tccli mqtt CreateInstance --cli-unfold-argument \ --InstanceType BASIC \ --Name instance-1 \ --SkuCode basic_1k \ --Remark this is remark \ --VpcList.0.VpcId vpc-9a5wnirv \ --VpcList.0.SubnetId subnet-0tw6tlfi \ --IpRules.0.Ip 1.1.1.1 \ --IpRules.0.Allow True \ --IpRules.0.Remark remark ``` ### Response #### Success Response (200) - **InstanceId** (string) - The ID of the created instance. - **RequestId** (string) - The ID of the request. #### Response Example ```json { "Error": null, "RequestId": null, "Response": { "InstanceId": "mqtt-7pnqmkrx", "RequestId": "request-id" } } ``` ``` -------------------------------- ### Get DDoS Attack Top Data Source: https://github.com/tencentcloud/tencentcloud-cli/blob/master/tccli/examples/cdn/v20180606/ListTopDDoSData.md This example demonstrates how to retrieve DDoS attack top data using the `ListTopDDoSData` command with specified start and end times. ```APIDOC ## ListTopDDoSData ### Description Retrieves DDoS attack top data within a specified time range. ### Method POST (typically, but CLI abstracts this) ### Endpoint /path/to/ListTopDDoSData ### Parameters #### Query Parameters - **StartTime** (string) - Required - The start time for the query period. - **EndTime** (string) - Required - The end time for the query period. ### Request Example ```bash tccli cdn ListTopDDoSData --cli-unfold-argument \ --EndTime 2020-09-22 01:00:00 \ --StartTime 2020-09-22 00:00:00 ``` ### Response #### Success Response (200) - **Response** (object) - The response object containing DDoS data. - **RequestId** (string) - The unique request ID. - **Data** (array) - An array of objects, each representing attack type data. - **Value** (integer) - The count or value associated with the attack type. - **AttackType** (string) - The type of DDoS attack. - **IPData** (array) - An array of objects, each representing IP-specific attack data. - **Province** (string) - The province of the attack IP. - **Country** (string) - The country of the attack IP. - **Isp** (string) - The ISP of the attack IP. - **AttackCount** (integer) - The number of attacks from this IP. - **AttackIP** (string) - The IP address that launched the attack. ### Response Example ```json { "Response": { "RequestId": "123456", "Data": [ { "Value": 1, "AttackType": "ddos" } ], "IPData": [ { "Province": "广东省", "Country": "中国", "Isp": "中国电信", "AttackCount": 100, "AttackIP": "10.32.1.3" } ] } } ``` ``` -------------------------------- ### Create Product Example Source: https://github.com/tencentcloud/tencentcloud-cli/blob/master/tccli/examples/iotcloud/v20180614/CreateProduct.md Demonstrates how to create a new product with specified properties using the `tccli iotcloud CreateProduct` command. Ensure all required parameters are provided. ```bash tccli iotcloud CreateProduct --cli-unfold-argument \ --ProductName fruit \ --ProductProperties.ProductDescription test \ --ProductProperties.EncryptionType 1 \ --ProductProperties.Region gz \ --ProductProperties.ProductType 0 \ --ProductProperties.Format json ``` -------------------------------- ### Get a specified number of intelligent review templates Source: https://github.com/tencentcloud/tencentcloud-cli/blob/master/tccli/examples/mps/v20190612/DescribeContentReviewTemplates.md This example demonstrates how to retrieve 10 intelligent review templates starting from offset 0, including system default templates. ```APIDOC ## DescribeContentReviewTemplates ### Description Retrieves intelligent content review templates. You can specify the number of templates to fetch and the starting offset, or filter by template definition ID. ### Method GET (or equivalent CLI command) ### Endpoint /mps/DescribeContentReviewTemplates ### Parameters #### Query Parameters - **Offset** (integer) - Optional - The starting offset for retrieving templates. - **Limit** (integer) - Optional - The maximum number of templates to retrieve. - **Definitions** (integer) - Optional - The ID of the template to retrieve. ### Request Example ```bash tccli mps DescribeContentReviewTemplates --cli-unfold-argument --Offset 0 --Limit 10 ``` ### Response #### Success Response (200) - **TotalCount** (integer) - The total number of templates available. - **ContentReviewTemplateSet** (array) - A list of content review templates. - **Definition** (integer) - The ID of the template. - **Name** (string) - The name of the template. - **Comment** (string) - A description of the template. - **PornConfigure** (object) - Configuration for porn detection. - **TerrorismConfigure** (object) - Configuration for terrorism detection. - **PoliticalConfigure** (object) - Configuration for political content detection. - **ProhibitedConfigure** (object) - Configuration for prohibited content detection. - **UserDefineConfigure** (object) - Configuration for user-defined content detection. - **CreateTime** (string) - The creation time of the template. - **UpdateTime** (string) - The last update time of the template. - **Type** (string) - The type of the template. - **RequestId** (string) - The request ID. #### Response Example ```json { "Response": { "TotalCount": 1, "ContentReviewTemplateSet": [ { "Definition": 0, "Name": "abc", "Comment": "abc", "PornConfigure": { "ImgReviewInfo": { "Switch": "abc", "LabelSet": [ "abc" ], "BlockConfidence": 0, "ReviewConfidence": 0 }, "AsrReviewInfo": { "Switch": "abc", "BlockConfidence": 0, "ReviewConfidence": 0 }, "OcrReviewInfo": { "Switch": "abc", "BlockConfidence": 0, "ReviewConfidence": 0 } }, "TerrorismConfigure": { "ImgReviewInfo": { "Switch": "abc", "LabelSet": [ "abc" ], "BlockConfidence": 0, "ReviewConfidence": 0 }, "OcrReviewInfo": { "Switch": "abc", "BlockConfidence": 0, "ReviewConfidence": 0 } }, "PoliticalConfigure": { "ImgReviewInfo": { "Switch": "abc", "LabelSet": [ "abc" ], "BlockConfidence": 0, "ReviewConfidence": 0 }, "AsrReviewInfo": { "Switch": "abc", "BlockConfidence": 0, "ReviewConfidence": 0 }, "OcrReviewInfo": { "Switch": "abc", "BlockConfidence": 0, "ReviewConfidence": 0 } }, "ProhibitedConfigure": { "AsrReviewInfo": { "Switch": "abc", "BlockConfidence": 0, "ReviewConfidence": 0 }, "OcrReviewInfo": { "Switch": "abc", "BlockConfidence": 0, "ReviewConfidence": 0 } }, "UserDefineConfigure": { "FaceReviewInfo": { "Switch": "abc", "LabelSet": [ "abc" ], "BlockConfidence": 0, "ReviewConfidence": 0 }, "AsrReviewInfo": { "Switch": "abc", "LabelSet": [ "abc" ], "BlockConfidence": 0, "ReviewConfidence": 0 }, "OcrReviewInfo": { "Switch": "abc", "LabelSet": [ "abc" ], "BlockConfidence": 0, "ReviewConfidence": 0 } }, "CreateTime": "abc", "UpdateTime": "abc", "Type": "abc" } ], "RequestId": "abc" } } ``` ```