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

负载均衡

复制全文
下载 pdf
个性化配置
ModifyCustomizedCfgAttributes - 修改指定的个性化配置
复制全文
下载 pdf
ModifyCustomizedCfgAttributes - 修改指定的个性化配置
调用 ModifyCustomizedCfgAttributes 接口,修改指定的个性化配置。​
使用说明​
每秒最多提交 5 个 API 请求。​
调试​
API Explorer
您可以通过 API Explorer 在线发起调用,无需关注签名生成过程,快速获取调用结果。
​
请求参数​
下方仅列出该接口特有的请求参数和部分公共参数。更多信息请见公共参数。​
Action string 必选 示例值:ModifyCustomizedCfgAttributes​
要执行的操作,取值:ModifyCustomizedCfgAttributes。​
​
Version string 必选 示例值:2020-04-01​
API的版本,取值:2020-04-01。​
​
CustomizedCfgName string 可选 示例值:myCustomizedCfg​
个性化配置的名字。​
​
CustomizedCfgContent string 可选 示例值:client_max_body_size 60M; keepalive_timeout 75s;​
要修改的个性化配置项内容。具体规则如下:​
  • 长度不超过4096字符,不同的配置项之间通过";"分割。​
  • 当前支持的配置项有ssl_protocols、ssl_ciphers、client_max_body_size、keepalive_timeout、proxy_request_buffering、proxy_connect_timeout、add_header、client_header_timeout、proxy_read_timeout、proxy_send_timeout、client_body_timeout、send_timeout和ssl_verify_depth。详细信息参见文末个性化配置项内容。​
​
Description string 可选 示例值:This is a CustomizedCfg​
个性化配置的描述。​
  • 不能以http://或https://开头。​
  • 必须以字母或中文开头,可包含数字、英文逗号(,)、点号(.)、下划线(_)、空格( )、等号(=)、短横线(-)、中文逗号(,)、中文句号(。)​
  • 长度限制为1 ~ 255个字符。​
  • 不填默认为原 Description。​
​
CustomizedCfgId string 必选 示例值:ccfg-3cj44nv0jhhxc6c6rrtet****​
要修改的个性化配置 ID 。​
​
​
​
返回参数​
下方仅列出本接口特有的返回参数。更多信息请参见返回结构。​
RequestId string 示例值:20210811152539010225146063030****​
请求 ID 。​
​
​
​
请求示例​
​
GET /?Action=ModifyCustomizedCfgAttributes&CustomizedCfgId=ccfg-3lk5o0tulupdswet340b****&CustomizedCfgContent=client_max_body_size+60M;keepalive_timeout+15s;&ProjectName=default&Version=2020-04-01 HTTP/1.1​
Host: alb.cn-beijing.volcengineapi.com​
X-Date: 20251121T094038Z​
Authorization: HMAC-SHA256 Credential=Adfks******wekfwe/20251121/cn-beijing/alb/request, SignedHeaders=host;x-date, Signature=47a7d934ff7b37c03938******cd7b8278a40a1057690c401e92246a0e41085f​
​
返回示例​
​
{​
"ResponseMetadata": {​
"RequestId": "3cb82be2-4420-4b1b-b1a4-1611b5fb****",​
"Action": "ModifyCustomizedCfgAttributes",​
"Version": "2020-04-01",​
"Service": "alb",​
"Region": "cn-beijing"​
},​
"Result": {​
"RequestId": "3cb82be2-4420-4b1b-b1a4-1611b5fb****"​
}​
}​
​
错误码​
下表为您列举了该接口与业务逻辑相关的错误码。公共错误码请参见公共错误码文档。​
​
状态码​
错误码​
错误信息​
说明​
400​
Invalid%s.Malformed​
MismatchThe specified %s is malformed.​
指定的 %s 参数格式不合法。​
400​
MissingParameter​
The request is missing a required parameter. Ensure that you have supplied all the required parameters for the request; for example, '%s'.​
该请求缺少必要参数。请确保发起请求已提供全部必要参数,比如: %s。​
400​
InvalidParameter​
Data unmarshal failed.​
请求解析失败。​
400​
InvalidCustomizedCfgName.Malformed​
The specified CustomizedCfgName is malformed.​
指定的 CustomizedCfgName 参数格式不合法。​
400​
InvalidDescription.Malformed​
The specified Description is malformed.​
指定的 Description 参数格式不合法。​
400​
InvalidCustomizedCfg.InvalidStatus​
The specified CustomizedCfg is not in the correct status for the request.​
指定的个性化配置所处状态无法响应该请求。​
400​
InvalidLoadBalancer.InvalidStatus​
The related LoadBalancer is not in the correct status for the request.​
关联的 ALB 实例所处状态无法响应该请求。​
400​
CustomizedCfgOnlyTLSv13WithCiphers.Malformed​
ssl_ciphers is not allowed when ssl_protocols only contains TLSv1.3​
ssl_protocols 仅配置 TLSv1.3 时不允许配置 ssl_ciphers​
400​
InvalidCustomizedCfgContent.Malformed​
The specified CustomizedCfgContent is malformed. ssl_session_timeout config in CustomizedCfgContent is invalid.​
指定的 CustomizedCfgContent 参数格式不合法。其中的 ssl_session_timeout 配置不合法。​
400​
InvalidCustomizedCfgContent.Malformed​
The specified CustomizedCfgContent is malformed. max_headers config in CustomizedCfgContent is invalid.​
指定的 CustomizedCfgContent 参数格式不合法。其中的 max_headers 配置不合法。​
400​
InvalidCustomizedCfgContent.Malformed​
The specified CustomizedCfgContent is malformed. ssl_ciphers is not allowed when ssl_protocols only contains TLSv1.3.​
指定的 CustomizedCfgContent 参数格式不合法。ssl_protocols 仅配置 TLSv1.3 时不允许配置 ssl_ciphers。​
400​
InvalidCustomizedCfgContent.Duplicated​
The specified CustomizedCfgContent is duplicated. ssl_session_timeout config in CustomizedCfgContent is duplicated.​
指定的 CustomizedCfgContent 重复。其中的 ssl_session_timeout 配置项重复。​
400​
InvalidCustomizedCfgContent.Duplicated​
The specified CustomizedCfgContent is duplicated. max_headers config in CustomizedCfgContent is duplicated.​
指定的 CustomizedCfgContent 重复。其中的 max_headers 配置项重复。​
403​
Forbidden​
You are not authorized to configure TLSv1.3-only.​
您无权限配置 ssl_protocols TLSv1.3;。​
404​
InvalidCustomizedCfg.NotFound​
The specified CustomizedCfg does not exist.​
指定的个性化配置不存在。​
500​
InternalError​
An internal error has occurred.​
发生内部错误。请稍后重试或联系工程师进一步咨询。​
​
​
最近更新时间:2026.07.10 15:34:56
这个页面对您有帮助吗?
有用
有用
无用
无用