github.com/morlay/goqcloud@v0.0.0-20181123023149-b00e0b0b9afc/clients/cvm/start_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/15735
     9  
    10  type StartInstancesRequest struct {
    11  	// 一个或多个待操作的实例ID。可通过DescribeInstances接口返回值中的InstanceId获取。每次请求批量实例的上限为100。
    12  	InstanceIds []*string `name:"InstanceIds"`
    13  	// 区域
    14  	Region string `name:"Region"`
    15  }
    16  
    17  func (req *StartInstancesRequest) Invoke(client github_com_morlay_goqcloud.Client) (*StartInstancesResponse, error) {
    18  	resp := &StartInstancesResponse{}
    19  	err := client.Request("cvm", "StartInstances", "2017-03-12").Do(req, resp)
    20  	return resp, err
    21  }
    22  
    23  type StartInstancesResponse struct {
    24  	github_com_morlay_goqcloud.TencentCloudBaseResponse
    25  }