module
Version:
v0.0.0-...-6d4355a
Opens a new window with list of versions in this module.
Published: Jun 8, 2018
License: Apache-2.0
Opens a new window with license information.
README
¶
qcloudapi-sdk-go
This is an unofficial Go SDK for QCloud Services. You are welcome for contribution.
安装使用
安装
go get -u github.com/dreamCodeMan/qcloud-sdk
使用
package main
import (
"log"
"github.com/dreamCodeMan/qcloud-sdk/cvm"
)
func main() {
client := cvm.NewClient("YOUR_SECRET_ID", "YOUR_SECRET_KEY", "ap-guangzhou")
client.Debug = true
argss := cvm.DescribeInstancesArgs{
Offset: 0,
Limit: 10,
InstanceIds: &[]string{"ins-hzxtfkpw"},
// Filters: &[]cvm.Filter{
// cvm.NewFilter("zone", "ap-guangzhou-4"),
// },
}
response, err := client.DescribeInstances(argss)
log.Println(response, err)
}
功能概述
CVM
*地域相关接口所有功能完备;实例相关接口所有功能完备
地域相关接口
是否完成 |
接口名称 |
接口功能 |
是 |
DescribeRegions |
查询地域列表 |
是 |
DescribeZones |
查询可用区列表 |
实例相关接口
专用宿主机相关接口
密钥相关接口
镜像相关接口
License
This library is distributed under the Apache License found in the LICENSE file.
Directories
¶
Click to show internal directories.
Click to hide internal directories.