You need to enable JavaScript to run this app.
文档中心
负载均衡

负载均衡

复制全文
下载 pdf
NLB实例
ModifyNetworkLoadBalancerAccessLog - 配置访问日志
复制全文
下载 pdf
ModifyNetworkLoadBalancerAccessLog - 配置访问日志
调用 ModifyNetworkLoadBalancerAccessLog 接口,配置访问日志。​
调试​
API Explorer
您可以通过 API Explorer 在线发起调用,无需关注签名生成过程,快速获取调用结果。
​
请求参数​
Action String 必选 示例值:ModifyNetworkLoadBalancerAccessLog​
要执行的操作,取值为 ModifyNetworkLoadBalancerAccessLog。​
​
Version String 必选 示例值:2020-04-01​
API版本信息,当前版本为 2020-04-01。​
​
LoadBalancerId String 必选 示例值:nlb-bp1o94dp5i6ea****​
NLB实例的ID。​
您可以调用DescribeNetworkLoadBalancers接口,获取NLB实例ID。​
​
AccessLogEnabled Boolean 可选 示例值:true​
是否开启访问日志。​
  • true:是​
  • false:否​
​
ProjectName String 可选 示例值:fc6953c1-fe50-43aa-9d26-c1e0a207****​
日志项目的ID。​
​
TopicName String 可选 示例值:74936ae4-bbd6-41de-a0d2-ed156203****​
日志主题的ID。​
​
​
​
返回参数​
RequestId String 示例值:202409295332201042142000A01EA****​
请求ID。​
​
​
​
请求示例​
​
GET /?Action=ModifyNetworkLoadBalancerAccessLog&Version=2020-04-01&LoadBalancerId=nlb-bp1o94dp5i6ea****&AccessLogEnabled=true&ProjectName=fc6953c1-fe50-43aa-9d26-c1e0a207****&TopicName=74936ae4-bbd6-41de-a0d2-ed156203**** HTTP/1.1​
Host: clb.cn-beijing.volcengineapi.com​
Date: 20260310T094038Z​
Authorization: HMAC-SHA256 Credential=Adfks******wekfwe/20251121/cn-beijing/clb/request, SignedHeaders=host;x-date, Signature=47a7d934ff7b37c03938******cd7b8278a40a1057690c401e92246a0e41085f​
​
返回示例​
​
{​
"ResponseMetadata": {​
"RequestId": "20230604110420****100232280022D31",​
"Action": "ModifyNetworkLoadBalancerAccessLog",​
"Version": "2020-04-01",​
"Service": "clb",​
"Region": "cn-beijing"​
},​
"Result": {​
"RequestId": "202409295332201042142000A01EA****"​
}​
}​
​
错误码​
此处仅展示当前API的错误码,更多错误码请参见公共错误码。​
​
状态码​
错误码​
错误信息​
说明​
400​
DryRunOperation​
Exception raised to indicate a successfully authorized action when the DryRun flag is set to true.​
该请求设置为DryRun操作,操作授权已获得许可,但未被实际执行。​
400​
IdempotentParameterMismatch​
Arguments on this idempotent request are inconsistent with arguments used in previous request(s).​
此幂等请求的参数与前一个请求中使用的参数不一致。​
400​
InvalidAccessLogEnabled.Malformed​
The specified AccessLogEnabled is malformed.​
指定的 AccessLogEnabled 参数格式不合法。​
400​
InvalidClientToken.Malformed​
The specified ClientToken is malformed.​
指定的 ClientToken 参数格式不合法。​
400​
InvalidLoadBalancer.InvalidStatus​
The specified LoadBalancer is not in the correct status for the request.​
指定的负载均衡所处状态无法响应该请求。​
400​
InvalidLoadBalancerBillingStatus.InvalidStatus​
The specified LoadBalancer is not in the correct billing status for the request.​
指定的负载均衡计费状态所处状态无法响应该请求。​
400​
InvalidProjectName.AccessLogEnabledMismatch​
The specified ProjectName is not matched with AccessLogEnabled.​
指定的 ProjectName 与 AccessLogEnabled 不匹配。​
400​
InvalidProjectName.UsedInOtherService​
The specified Project has been used in other service.​
指定的 Project 已被其他云服务使用。​
400​
InvalidSite.NotSupportEnableAccessLog​
The specified site does not support enable access log.​
指定的账户归属环境未开通启用访问日志功能。​
400​
InvalidTopicName.AccessLogEnabledMismatch​
The specified TopicName is not matched with AccessLogEnabled.​
指定的 TopicName 与 AccessLogEnabled 不匹配。​
400​
InvalidTopicName.UsedInOtherService​
The specified Topic has been used in other service.​
指定的 Topic 已被其他云服务使用。​
403​
InvalidResourceType.ServiceManaged​
The specified ResourceType is managed by a service.​
指定的资源是服务托管资源。​
404​
InvalidLoadBalancer.NotFound​
The specified LoadBalancer does not exist.​
指定的负载均衡不存在。​
404​
ServiceRoleForNLBLogDelivery.NotFound​
ServiceRoleForNLBLogDelivery does not exist.​
网络型负载均衡日志投递服务关联角色不存在。​
409​
InvalidTLSOperation.Conflict​
Interaction with TLS services has resource conflict.​
与TLS服务的交互操作发生资源冲突。​
412​
IdempotentProcessing​
The request uses the same client token as a previous one that is still in process.​
幂等请求处理中。​
​
​
最近更新时间:2026.03.11 14:59:14
这个页面对您有帮助吗?
有用
有用
无用
无用