tccli cvm DescribeInstances command to view CVM instances under the current account.tccli cbs DescribeDisks command to view the list of CBS disks.tccli cvm RunInstances \\--InstanceChargeType POSTPAID_BY_HOUR \\--Placement '{"Zone":"ap-guangzhou-3"}' \\--InstanceType S5.SMALL1 \\--ImageId img-8toqc6s3 \\--SystemDisk '{"DiskType":"CLOUD_SSD", "DiskSize":50}' \\--InternetAccessible '{"InternetChargeType":"TRAFFIC_POSTPAID_BY_HOUR","InternetMaxBandwidthOut":10,"PublicIpAssigned":true}' \\--InstanceCount 1 \\--InstanceName TCCLI-TEST \\--LoginSettings '{"Password":"******"}' \\--SecurityGroupIds '["sg-0rszg2vb"]' \\--HostName TCCLI-HOST-NAME1
< /path/to/file to transfer binary files. Example:# Taking the CLS UploadLog API as an example, you can use the following command to upload logs:tccli cls UploadLog --TopicId xxx < /path/to/file
--cli-unfold-argument in the command to use a dot (.) as the concatenation operator for structure input. In this case, you can use the autocomplete feature of TCCLI to make the input process easier. Example:tccli cvm RunInstances --cli-unfold-argument \\--Placement.Zone ap-guangzhou-3 \\--ImageId img-8toqc6s3 \\--DryRun True
--cli-unfold-argument. For details, see Using the Autocomplete Feature.--cli-unfold-argument in the command only when using TCCLI 3.0.273.1 or later.--generate-cli-skeleton to generate a parameter skeleton in JSON format. Example:# You can also input the generated JSON skeleton into a JSON file.# $ tccli cvm DescribeInstances --generate-cli-skeleton > /home/test.jsontccli cvm DescribeInstances --generate-cli-skeleton
{"Limit": "Integer","Filters": [{"Values": ["String"],"Name": "String"}],"InstanceIds": ["String"],"Offset": "Integer"}
--generate-cli-skeleton. For more information, see Using the Autocomplete Feature.--generate-cli-skeleton in the command only when using TCCLI 3.0.273.1 or later.--cli-input-json in the command to support input through a JSON file. (Add file://file directory after --cli-input-json.) You can use --generate-cli-skeleton to generate the corresponding JSON file. After specifying parameters in the JSON file, you can use the file to call an API. Example:tccli cvm DescribeInstances --cli-input-json file:///home/test.json
--cli-input-json. For more information, see Using the Autocomplete Feature.--cli-input-json in the command only when using TCCLI 3.0.250.2 or later.Feedback