Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rehiy/tencent-cloud-api-cli
腾讯云跨平台命令行工具
https://github.com/rehiy/tencent-cloud-api-cli
Last synced: about 2 months ago
JSON representation
腾讯云跨平台命令行工具
- Host: GitHub
- URL: https://github.com/rehiy/tencent-cloud-api-cli
- Owner: rehiy
- Created: 2022-07-29T02:47:25.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-04-20T02:15:32.000Z (over 1 year ago)
- Last Synced: 2024-06-07T20:44:56.658Z (4 months ago)
- Language: Go
- Size: 537 KB
- Stars: 1
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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=yyyytcapi --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
服务版本
```