文档

CreateDomainExtension - 创建扩展域名

更新时间:

创建扩展域名。

接口说明

说明 性能共享型实例的监听不支持扩展域名。

调试

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

授权信息

下表是API对应的授权信息,可以在RAM权限策略语句的Action元素中使用,用来给RAM用户或RAM角色授予调用此API的权限。具体说明如下:

  • 操作:是指具体的权限点。
  • 访问级别:是指每个操作的访问级别,取值为写入(Write)、读取(Read)或列出(List)。
  • 资源类型:是指操作中支持授权的资源类型。具体说明如下:
    • 对于必选的资源类型,用背景高亮的方式表示。
    • 对于不支持资源级授权的操作,用全部资源表示。
  • 条件关键字:是指云产品自身定义的条件关键字。
  • 关联操作:是指成功执行操作所需要的其他权限。操作者必须同时具备关联操作的权限,操作才能成功。
操作访问级别资源类型条件关键字关联操作
slb:CreateDomainExtensionWrite
  • loadbalancer
    acs:slb:{#regionId}:{#accountId}:loadbalancer/{#loadbalancerId}
  • slb:tag

请求参数

名称类型必填描述示例值
RegionIdstring

负载均衡实例的地域 ID。

cn-hangzhou
LoadBalancerIdstring

负载均衡实例的 ID。

lb-bp1o94dp5i6earrxxxxxx
ListenerPortinteger

负载均衡实例 HTTPS 监听的前端端口。

取值:1-65535

443
Domainstring

域名。

*.example1.com
ServerCertificateIdstring

与域名对应的证书 ID。

123157xxxxxxx_166f820xxxxxx_1714763408_709981xxxx

返回参数

名称类型描述示例值
object
ListenerPortinteger

负载均衡实例前端使用的端口。

80
RequestIdstring

请求 ID。

A6E7EFC9-0938-40CA-877D-9BE******
DomainExtensionIdstring

创建的扩展域名 ID。

de-bp1rp7ta19******

示例

正常返回示例

JSON格式

{
  "ListenerPort": 80,
  "RequestId": "A6E7EFC9-0938-40CA-877D-9BE******",
  "DomainExtensionId": "de-bp1rp7ta19******"
}

错误码

HTTP status code错误码错误信息描述
400InvalidAction.RegionNotSupportThe region does not support this action.当前地域不支持指定功能。
400InvalidParameter.ServerCertificateIdThe specified ServerCertificateId does not exist.指定的服务证书不存在。
400InvalidParameter.DomainThe specified Domain exists.指定的Domain已存在。
400DomainExtensionProcessingA previous configuration of the DomainExtension is pending, please try again later.指定的扩展域名正在变配中, 请稍后重试。
400DomainExtensionNumberOverLimitThe number of domainExtension has reached to the quota limit of this listener.监听可保有的扩展域名数量已达到配额上限。
400DomainExtensionNotSupportThe instance with shared loadBalancerSpec does not support domainExtension.共享型负载均衡实例不支持创建扩展域名。
400InvalidParameter.CertificateIdThe specified CertificateId contains duplicate certificate EncryptionAlgorithm.指定的证书包含重复的证书加密算法。
400InvalidParamSize.CertificateIdThe size of parameter CertificateId is invalid.指定的CertificateId无效。请检查参数约束,并在修改后重试。
400MissingParameter.CertificateIdThe parameter CertificateId is required.参数CertificateId缺失。
400InvalidParameter.CertificateIdThe specified CertificateId is invalid.指定的证书不存在。
400InvalidParameter.RegionNotSupportThe region does not support the parameter: %s.当前区域不支持指定参数。
400CertificateTypeMismatchedThe certificate type does not match.指定证书的类型不匹配。
400SPEC_NOT_SUPPORT_PARAMETERThe loadbalancer with share spec does not support the parameter.-
400CnCertificateNotSupportThe cn certificate is not support.不支持国密证书。
400InvalidParam.CertificateBindingTypeThe param is invalid.指定的CertificateBindingType无效。请检查参数约束,并在修改后重试。
400MissingParam.ServerCertificatesThe param ServerCertificates is missing.参数ServerCertificates缺失。
400InvalidParamSize.ServerCertificatesThe size of param ServerCertificates is invalid.指定的ServerCertificates长度无效。请检查参数约束,并在修改后重试。
400SPEC_NOT_SUPPORT_PARAMETERShare spec does not support the feature.-
400TooManyListenersMore than 1 listener is found, please be more specified.检索到的监听数量大于1,请提供更具体的查询条件。

访问错误中心查看更多错误码。

  • 本页导读 (1)
文档反馈