tcpicli

module
v1.3.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 23, 2018 License: Apache-2.0

README

tcpicli

Tencent Cloud Platform International Command Line Interface

profile

Select profile to use API keys. Place configuration in ~/.tcpicli/config

Example:

[chinatest]
secretid  = ZBcr8RCC0d5LPJ6j9NTo4aF
secretkey = e7OVRFuOiy2E

Usage:

tcpicli -vv profile switch chinatest

Then issue your API call against the account that's named in the [brakets].

Help:

tcpicli:

NAME:
   tcpicli - tencent cloud platform cli tool

USAGE:
   tcpicli [global options] command [command options] [arguments...]

VERSION:
   1.1.0.

COMMANDS:
     profile  profile
     do       do <service> <action> <args1=value1> [args2=value2] ...
     vpc      vpc function
     cdn      cdn function
     cvm      cvm function
     img      img function
     ccs      ccs function
     cmq      cmq function
     eip      Elastic IP
     dfw      Cloud FireWall
     lb       Cloud LoadBalancer
     ckafka   Cloud Kafka
     trade    Tencent Cloud Billing information related
     vod      Video on Demand
     account  account function
     help, h  Shows a list of commands or help for one command

GLOBAL OPTIONS:
   --vv           verbose
   -f value       filter output
                    Example:
                    tcpicli -f="The status is: {{.code}}" ccs DescribeCluster
                    tcpicli -f="clusterCIDR: {{range .data.clusters}}{{.clusterCIDR}}{{end}}" ccs DescribeCluster
                    tcpicli -f="/path/to/file ccs DescribeCluster"
   --help, -h     show help
   --version, -v  print the version

NOTES:

Some APIs under development. If you receive an error like:

tcpicli lb DescribeLoadBalancers Region=bj
json: cannot unmarshal string into Go struct field .internetMaxBandwidthOut of type float64

use the 'do' command as a temporary workaround:

tcpicli do lb DescribeLoadBalancers Region=bj
{
  "code": 0,
  "codeDesc": "Success",
  "loadBalancerSet": [
  ...

Directories

Path Synopsis
cvm

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL