github.com/morlay/goqcloud@v0.0.0-20181123023149-b00e0b0b9afc/clients/dcdb/close_db_extranet_access.go (about) 1 package dcdb 2 3 import ( 4 github_com_morlay_goqcloud "github.com/morlay/goqcloud" 5 ) 6 7 // 关闭外网访问 8 // https://cloud.tencent.com/document/api/557/19998 9 10 type CloseDbExtranetAccessRequest struct { 11 // 待关闭外网访问的实例ID。形如:dcdbt-ow728lmc,可以通过 DescribeDCDBInstances 查询实例详情获得。 12 InstanceId string `name:"InstanceId"` 13 // 区域 14 Region string `name:"Region"` 15 } 16 17 func (req *CloseDbExtranetAccessRequest) Invoke(client github_com_morlay_goqcloud.Client) (*CloseDbExtranetAccessResponse, error) { 18 resp := &CloseDbExtranetAccessResponse{} 19 err := client.Request("dcdb", "CloseDBExtranetAccess", "2018-04-11").Do(req, resp) 20 return resp, err 21 } 22 23 type CloseDbExtranetAccessResponse struct { 24 github_com_morlay_goqcloud.TencentCloudBaseResponse 25 // 异步任务Id,可通过 DescribeFlow 查询任务状态。 26 FlowId int64 `json:"FlowId"` 27 }