Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/rehiy/tencent-cloud-api-cli

腾讯云跨平台命令行工具
https://github.com/rehiy/tencent-cloud-api-cli

Last synced: about 2 months ago
JSON representation

腾讯云跨平台命令行工具

Awesome Lists containing this project

README

        

# 腾讯云跨平台命令行工具

这是一个无第三方库依赖的腾讯云API接入实现,你可以作为 Library 或 CLI 程序使用。

## Library 用法

```go
import "github.com/rehiy/tencent-cloud-api-cli/api"
func main() {
res, err := api.Request(service, version, action, region, payload, secretId, secretKey)
}
```

## CLI 使用方法

```shell
export TENCENTCLOUD_SECRET_ID=xxxx
export TENCENTCLOUD_SECRET_KEY=yyyy

tcapi --service cvm --version 2017-03-12 --action DescribeRegions --region ap-guangzhou --payload "{}"
```

### CLI 参数表

```shell
-action string
执行动作
-payload string
JSON数据
-region string
地域
-service string
服务名
-version string
服务版本
```