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

负载均衡

复制全文
下载 pdf
个性化配置
CreateCustomizedCfg - 创建一个个性化配置
复制全文
下载 pdf
CreateCustomizedCfg - 创建一个个性化配置
调用 CreateCustomizedCfg 接口,创建一个个性化配置。​
使用说明​
一个账号下每个区域最多可创建50个个性化配置。​
调试​
API Explorer
您可以通过 API Explorer 在线发起调用,无需关注签名生成过程,快速获取调用结果。
​
请求参数​
下方仅列出该接口特有的请求参数和部分公共参数。更多信息请见公共参数。​
Action string 必选 示例值:CreateCustomizedCfg​
要执行的操作,取值:CreateCustomizedCfg。​
​
Version string 必选 示例值:2020-04-01​
API的版本,取值:2020-04-01。​
​
CustomizedCfgName string 必选 示例值:myCustomizedCfg​
个性化配置的名字, 具体规则如下:​
  • 不能以http://或https://开头。​
  • 必须以字母或中文开头,可包含数字、点号(.)、下划线(_)和短横线(-)。​
  • 长度限制为1 ~ 128个字符。​
​
CustomizedCfgContent string 必选 示例值:client_max_body_size 60M keepalive_timeout 75s​
个性化配置项内容,具体规则如下:​
  • 长度不超过4096字符。​
  • 空格和分号需要转义。​
  • 不同的配置项之间通过";\r\n"分隔,配置项不能重复。​
  • 当前支持的配置项有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个字符。​
  • 不填默认为空字符串。​
​
Tags.N.Value string[] 可选 示例值:Tags.1.Value=v1&Tags.2.Value=v2​
用户标签的标签值。​
  • 如果传入该参数,则必须先传入Tags.N.Key。​
  • 具体规则如下:​
  • 长度限制为0~256个字符。​
  • 大小写敏感。​
  • 不能以空格开头或结尾。​
  • 允许包含各国语言文字、数字、空格()、下划线(_)、点号(.)、半角冒号(:)、斜杠(/)、等号(=)、加号(+)、减号(-)和@。​
​
Tags.N.Key string[] 可选 示例值:Tags.1.Key=k1&Tags.2.Key=k2​
用户标签的标签键。具体规则如下:​
  • 长度限制为1~128个字符。​
  • 大小写敏感。​
  • 不能以volc:和sys:的任意大小写组合开头。​
  • 不能以空格开头或结尾。​
  • 允许包含各国语言文字、数字、空格()、下划线(_)、点号(.)、半角冒号(:)、斜杠(/)、等号(=)、加号(+)、减号(-)和@。​
  • 同一资源的标签键不允许重复。​
​
ProjectName string 可选 示例值:default​
个性化配置所属项目名称。​
​
​
​
返回参数​
下方仅列出本接口特有的返回参数。更多信息请参见返回结构。​
RequestId string 示例值:20210811152539010225146063030****​
请求ID。​
​
CustomizedCfgId string 示例值:ccfg-3cj44nv0jhhxc6c6rrtet****​
个性化配置 ID。​
​
​
​
请求示例​
​
GET /?Action=CreateCustomizedCfg&CustomizedCfgName=test-1&Description=test&CustomizedCfgContent=client_max_body_size+60M;keepalive_timeout+75s;&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": "0cd0297c-9a88-48cb-9ba2-82c3dcbc****",​
"Action": "CreateCustomizedCfg",​
"Version": "2020-04-01",​
"Service": "alb",​
"Region": "cn-beijing"​
},​
"Result": {​
"RequestId": "0cd0297c-9a88-48cb-9ba2-82c3dcbc****",​
"CustomizedCfgID": "ccfg-3lk5o0tulupdswet340b****"​
}​
}​
​
错误码​
下表为您列举了该接口与业务逻辑相关的错误码。公共错误码请参见公共错误码文档。​
​
状态码​
错误码​
错误信息​
说明​
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​
MissingParameter​
The request is missing a required parameter. Ensure that you have supplied all the required parameters for the request; for example, 'CustomizedCfgContent'.​
该请求缺少必要参数。请确保发起请求已提供全部必要参数,比如: CustomizedCfgContent。​
400​
OperationFailed.QueryProject​
The request on the specified resource failed due to the query on project failed.​
因查询项目失败,对于该资源的操作请求失败。​
400​
QuotaExceed.CustomizedCfgPerRegion​
You've reached the limit on the number of CustomizedCfgs the current region you can create in, usage xx/xx.​
已达到当前地域可创建的个性化配置的数量上限。目前已使用xxx,配额为xxx。​
400​
OperationFailed.AddIntoProjectFailed​
The request on the specified resource failed due to adding it into the project failed.​
因将资源加入至项目中失败,对于该资源的操作请求失败。​
400​
InvalidTags.Key.Malformed​
The specified Tags.Key is malformed.​
指定的 Tags.Key 参数格式不合法。​
400​
InvalidTags.Value.Malformed​
The specified Tags.Value is malformed.​
指定的 Tags.Value 参数格式不合法。​
400​
InvalidTags.Key.Duplicated​
The specified Tags.Key is duplicated.​
指定的 Tags.Key 重复。​
400​
CustomizedCfgOnlyTLSv13WithCipher.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_ciphers is not allowed when ssl_protocols only contains TLSv1.3.​
指定的 CustomizedCfgContent 参数格式不合法。ssl_protocols 仅配置 TLSv1.3 时不允许配置 ssl_ciphers。​
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_session_timeout config in CustomizedCfgContent is invalid.​
指定的 CustomizedCfgContent 参数格式不合法。其中的 ssl_session_timeout 配置不合法。​
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​
InvalidProject.NotFound​
The specified Project does not exist.​
指定的项目不存在。​
500​
InternalError​
An internal error has occurred.​
发生内部错误。请稍后重试或联系工程师进一步咨询。​
​
​
最近更新时间:2026.07.10 15:34:56
这个页面对您有帮助吗?
有用
有用
无用
无用