github.com/morlay/goqcloud@v0.0.0-20181123023149-b00e0b0b9afc/clients/cvm/terminate_instances.go (about) 1 package cvm 2 3 import ( 4 github_com_morlay_goqcloud "github.com/morlay/goqcloud" 5 ) 6 7 // 退还实例 8 // https://cloud.tencent.com/document/api/213/15723 9 10 type TerminateInstancesRequest struct { 11 // 一个或多个待操作的实例ID。可通过DescribeInstances接口返回值中的InstanceId获取。每次请求批量实例的上限为100。 12 InstanceIds []*string `name:"InstanceIds"` 13 // 区域 14 Region string `name:"Region"` 15 } 16 17 func (req *TerminateInstancesRequest) Invoke(client github_com_morlay_goqcloud.Client) (*TerminateInstancesResponse, error) { 18 resp := &TerminateInstancesResponse{} 19 err := client.Request("cvm", "TerminateInstances", "2017-03-12").Do(req, resp) 20 return resp, err 21 } 22 23 type TerminateInstancesResponse struct { 24 github_com_morlay_goqcloud.TencentCloudBaseResponse 25 }