首页
学习
活动
专区
工具
TVP
发布
社区首页 >问答首页 >用Go sdk 调用负载均衡后端健康状态接口报 [TencentCloudSDKError] ?

用Go sdk 调用负载均衡后端健康状态接口报 [TencentCloudSDKError] ?

提问于 2019-12-03 10:39:35
回答 1关注 0查看 658

[TencentCloudSDKError] Code=InternalError, Message=An internal error has occurred. Retry your request, but if the problem persists, contact us with details by posting a message on the Tencent cloud forums., RequestId=0a85f6e9-74a8-4eef-9267-9046530580ad"

//请求配置文件
cpf := profile.NewClientProfile()

//生成CDB客户端
client, _ := clb.NewClient(credential, region, cpf)

//构建请求
request := clb.NewDescribeTargetHealthRequest()
request.LoadBalancerIds = common.StringPtrs([]string{balancerId})

//发送请求
response, err := client.DescribeTargetHealth(request)
if err != nil {
   return nil, err
}
相关文章

相似问题

相关问答用户
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档