UpdateLoadBalancerProtection_网络型负载均衡_API文档

插件下载了解更多
VS Code 插件
安装插件之前,确保已安装 VS Code安装插件之前,确保已安装 VS Code
Alibaba Cloud Developer Toolkit is a collection of extensions that can help access Alibaba Cloud services in Visual Studio Code.
JetBrains 插件
安装插件之前,确保已安装 JetBrains IDE安装插件之前,确保已安装 JetBrains IDE
The Alibaba Cloud Developer Toolkit for JetBrains makes it easier to access Alibaba Cloud services.

接口说明

说明 您可以通过 GetLoadBalancerAttribute 接口查询删除保护和修改保护详细信息。

流控信息

请求速率为300/60(s)。更多流控信息,请前往配额中心查看

授权信息

如下是此API对应的授权信息,用于RAM权限策略语句的Action元素中,为RAM用户或RAM角色授予调用此API的权限。请通过 RAM 访问控制设置,使用方法可参考访问控制帮助文档

具体说明如下:展开详情

操作访问级别资源类型条件关键字关联操作
nlb:UpdateLoadBalancerProtection
Update
LoadBalancer
acs:nlb:{#regionId}:{#accountId}:loadbalancer/{#loadbalancerId}

请求参数

字段名称字段详情
DeletionProtectionEnabledboolean

是否开启删除保护。取值:展开详情

示例值:false
DeletionProtectionReasonstring

输入开启删除保护的原因。长度为 2~128 个英文或中文字符,必须以字母或中文开头,可包含数字、半角句号(.)、下划线(_)和短划线(-)。展开详情

示例值:实例使用中
ModificationProtectionStatusstring

网络型负载均衡修改保护状态。取值:展开详情

示例值:ConsoleProtection
ModificationProtectionReasonstring

输入开启修改保护的原因。长度为 2~128 个英文或中文字符,必须以字母或中文开头,可包含数字、半角句号(.)、下划线(_)和短划线(-)。展开详情

示例值:托管实例
LoadBalancerIdstring

网络型负载均衡实例 ID。

示例值:nlb-83ckzc8d4xlp8o****参考取值来源:
    ListLoadBalancers
DryRunboolean

是否只预检此次请求。取值:展开详情

示例值:false
ClientTokenstring

客户端 Token,用于保证请求的幂等性。展开详情

示例值:123e4567-e89b-12d3-a456-426655440000
RegionIdstring

网络型负载均衡实例所在的地域 ID。 展开详情

示例值:cn-hangzhou参考取值来源:
    DescribeRegions
    SetHdMonitorRegionConfig

返回参数

字段名称字段详情
RequestIdstring

请求 ID。

示例值:CEF72CEB-54B6-4AE8-B225-F876FF7BA984

返回示例

错误码

全局错误码
HTTP 状态码错误码错误信息操作
400
ResourceInConfiguring.%s
The specified resource of %s is being configured, please try again later.诊断
400
IllegalParam
The param of %s is illegal.诊断
400
IdempotenceSignatureMismatch
The idempotence token of request is same with the prev one, but the signature is different.诊断
400
Conflict.Lock
The Lock [%s] is conflict.诊断
400
ResourceInConfiguring.loadbalancer
The specified resource of loadbalancer is being configured, please try again later.诊断
400
DryRunOperation
Request validation has been passed with DryRun flag set.诊断
400
IllegalParam.deletionProtectionReason
The param of deletionProtectionReason is illegal.诊断
400
IllegalParam.modificationProtectionReason
The param of modificationProtectionReason is illegal.诊断
400
ResourceInCreating.loadbalancer
The specified resource of loadbalancer is creating, please try again later.诊断
403
Forbidden.NoPermission
Authentication is failed for NoPermission.诊断
404
ResourceNotFound.loadBalancer
The specified resource of loadbalancer is not found.诊断

变更历史

变更时间变更内容概要操作
2022-11-30
新增OpenAPI,修改删除保护

相关示例

2024年08月20日