github.com/morlay/goqcloud@v0.0.0-20181123023149-b00e0b0b9afc/clients/ms/describe_shield_plan_instance.go (about) 1 package ms 2 3 import ( 4 github_com_morlay_goqcloud "github.com/morlay/goqcloud" 5 ) 6 7 // 查询加固策略 8 // https://cloud.tencent.com/document/api/283/18575 9 10 type DescribeShieldPlanInstanceRequest struct { 11 // 服务类别id 12 Pid int64 `name:"Pid"` 13 // 区域 14 Region string `name:"Region"` 15 // 资源id 16 ResourceId string `name:"ResourceId"` 17 } 18 19 func (req *DescribeShieldPlanInstanceRequest) Invoke(client github_com_morlay_goqcloud.Client) (*DescribeShieldPlanInstanceResponse, error) { 20 resp := &DescribeShieldPlanInstanceResponse{} 21 err := client.Request("ms", "DescribeShieldPlanInstance", "2018-04-08").Do(req, resp) 22 return resp, err 23 } 24 25 type DescribeShieldPlanInstanceResponse struct { 26 github_com_morlay_goqcloud.TencentCloudBaseResponse 27 // 绑定资源信息 28 BindInfo BindInfo `json:"BindInfo"` 29 // 加固资源信息 30 ResourceServiceInfo ResourceServiceInfo `json:"ResourceServiceInfo"` 31 // 加固策略信息 32 ShieldPlanInfo ShieldPlanInfo `json:"ShieldPlanInfo"` 33 }