github.com/morlay/goqcloud@v0.0.0-20181123023149-b00e0b0b9afc/clients/cvm/describe_instance_vnc_url.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/18150
     9  
    10  type DescribeInstanceVncURLRequest struct {
    11  	// 一个操作的实例ID。可通过DescribeInstances API返回值中的InstanceId获取。
    12  	InstanceId string `name:"InstanceId"`
    13  	// 区域
    14  	Region string `name:"Region"`
    15  }
    16  
    17  func (req *DescribeInstanceVncURLRequest) Invoke(client github_com_morlay_goqcloud.Client) (*DescribeInstanceVncURLResponse, error) {
    18  	resp := &DescribeInstanceVncURLResponse{}
    19  	err := client.Request("cvm", "DescribeInstanceVncUrl", "2017-03-12").Do(req, resp)
    20  	return resp, err
    21  }
    22  
    23  type DescribeInstanceVncURLResponse struct {
    24  	github_com_morlay_goqcloud.TencentCloudBaseResponse
    25  	// 实例的管理终端地址。
    26  	InstanceVncUrl string `json:"InstanceVncUrl"`
    27  }