github.com/morlay/goqcloud@v0.0.0-20181123023149-b00e0b0b9afc/clients/cdb/verify_root_account.go (about) 1 package cdb 2 3 import ( 4 github_com_morlay_goqcloud "github.com/morlay/goqcloud" 5 ) 6 7 // 验证root账号权限 8 // https://cloud.tencent.com/document/api/236/17495 9 10 type VerifyRootAccountRequest struct { 11 // 实例ID,格式如:cdb-c1nl9rpv,与云数据库控制台页面中显示的实例ID相同。 12 InstanceId string `name:"InstanceId"` 13 // 实例ROOT账号的密码。 14 Password string `name:"Password"` 15 // 区域 16 Region string `name:"Region"` 17 } 18 19 func (req *VerifyRootAccountRequest) Invoke(client github_com_morlay_goqcloud.Client) (*VerifyRootAccountResponse, error) { 20 resp := &VerifyRootAccountResponse{} 21 err := client.Request("cdb", "VerifyRootAccount", "2017-03-20").Do(req, resp) 22 return resp, err 23 } 24 25 type VerifyRootAccountResponse struct { 26 github_com_morlay_goqcloud.TencentCloudBaseResponse 27 // 异步任务的请求ID,可使用此ID查询异步任务的执行结果 28 AsyncRequestId string `json:"AsyncRequestId"` 29 }