创建扩展域名。
接口说明
性能共享型实例的监听不支持扩展域名。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
|
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
|
slb:CreateDomainExtension |
create |
*loadbalancer
|
|
无 |
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| RegionId |
string |
是 |
负载均衡实例的地域 ID。 |
cn-hangzhou |
| LoadBalancerId |
string |
是 |
负载均衡实例的 ID。 |
lb-bp1o94dp5i6earrxxxxxx |
| ListenerPort |
integer |
是 |
负载均衡实例 HTTPS 监听的前端端口。 取值:1-65535。 |
443 |
| Domain |
string |
是 |
域名。 |
*.example1.com |
| ServerCertificateId |
string |
否 |
与域名对应的证书 ID。 |
123157xxxxxxx_166f820xxxxxx_1714763408_709981xxxx |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
|||
| ListenerPort |
integer |
负载均衡实例前端使用的端口。 |
80 |
| RequestId |
string |
请求 ID。 |
A6E7EFC9-0938-40CA-877D-9BE****** |
| DomainExtensionId |
string |
创建的扩展域名 ID。 |
de-bp1rp7ta19****** |
示例
正常返回示例
JSON格式
{
"ListenerPort": 80,
"RequestId": "A6E7EFC9-0938-40CA-877D-9BE******",
"DomainExtensionId": "de-bp1rp7ta19******"
}
错误码
|
HTTP status code |
错误码 |
错误信息 |
描述 |
|---|---|---|---|
| 400 | InvalidAction.RegionNotSupport | The region does not support this action. | 当前地域不支持指定功能。 |
| 400 | InvalidParameter.ServerCertificateId | The specified ServerCertificateId does not exist. | 指定的服务证书不存在。 |
| 400 | InvalidParameter.Domain | The specified Domain exists. | 指定的Domain已存在。 |
| 400 | DomainExtensionProcessing | A previous configuration of the DomainExtension is pending, please try again later. | 指定的扩展域名正在变配中, 请稍后重试。 |
| 400 | DomainExtensionNumberOverLimit | The number of domainExtension has reached to the quota limit of this listener. | 监听可保有的扩展域名数量已达到配额上限。 |
| 400 | DomainExtensionNotSupport | The instance with shared loadBalancerSpec does not support domainExtension. | 共享型负载均衡实例不支持创建扩展域名。 |
| 400 | InvalidParameter.CertificateId | The specified CertificateId contains duplicate certificate EncryptionAlgorithm. | 指定的证书包含重复的证书加密算法。 |
| 400 | InvalidParamSize.CertificateId | The size of parameter CertificateId is invalid. | 指定的CertificateId无效。请检查参数约束,并在修改后重试。 |
| 400 | MissingParameter.CertificateId | The parameter CertificateId is required. | 参数CertificateId缺失。 |
| 400 | InvalidParameter.RegionNotSupport | The region does not support the parameter: %s. | 当前区域不支持指定参数。 |
| 400 | CertificateTypeMismatched | The certificate type does not match. | 指定证书的类型不匹配。 |
| 400 | SPEC_NOT_SUPPORT_PARAMETER | The loadbalancer with share spec does not support the parameter. | |
| 400 | CnCertificateNotSupport | The cn certificate is not support. | 不支持国密证书。 |
| 400 | InvalidParam.CertificateBindingType | The param is invalid. | 指定的CertificateBindingType无效。请检查参数约束,并在修改后重试。 |
| 400 | MissingParam.ServerCertificates | The param ServerCertificates is missing. | 参数ServerCertificates缺失。 |
| 400 | InvalidParamSize.ServerCertificates | The size of param ServerCertificates is invalid. | 指定的ServerCertificates长度无效。请检查参数约束,并在修改后重试。 |
| 400 | TooManyListeners | More than 1 listener is found, please be more specified. | 检索到的监听数量大于1,请提供更具体的查询条件。 |
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。