更新时间:2023-12-13 GMT+08:00

SCM.Cert

模型说明

SCM.Cert元素用于创建证书管理服务的证书资源。

模型属性

表1 模型定义属性说明

属性

是否必选

描述

instances

用户购买证书数量

参数类型:integer

默认值:1

取值约束:仅支持取值为1到3000

resourceSpecCode

证书产品名称,格式为:证书品牌.域名类型.证书类型.有效期(年)

参数类型:string

默认值:symantec.single.ov.1

取值约束:仅支持可选产品

resourceSize

购买证书支持绑定的域名数量(域名类型为multi的证书,可选值为2-100,其他证书产品可选值为1)

参数类型:integer

默认值:1

取值约束:仅支持取值为1到100

关联关系

输出

属性

参数类型

描述

refID

string

SCM Cert ID

blueprint样例

tosca_definitions_version: huaweicloud_tosca_version_1_0
inputs:
  cert-product:
    constraints:
      valid_values:
        - symantec.multi.ov.1
        - symantec.multi.ov.2
        - symantec.multi.ovpro.1
        - symantec.multi.ovpro.2
        - cfca.multi.ev.1
        - geotrust.multi.ev.1
        - geotrust.multi.ev.2
        - globalsign.multi.ev.1
        - symantec.multi.ev.1
        - symantec.multi.ev.2
        - symantec.multi.evpro.1
        - symantec.multi.evpro.2
        - cfca.multi.ov.1
        - globalsign.multi.ev.2
        - globalsign.multi.ov.1
        - geotrust.multi.ov.1
        - symantec.wildcard.ovpro.2
        - globalsign.multi.ov.2
        - geotrust.multi.ov.2
        - geotrust.single.dv.1
        - cfca.single.ov.1
        - cfca.wildcard.ov.1
        - geotrust.single.ov.1
        - geotrust.wildcard.ov.1
        - globalsign.single.ov.1
        - globalsign.wildcard.ov.1
        - symantec.single.ov.1
        - symantec.wildcard.ov.1
        - symantec.single.ovpro.1
        - symantec.wildcard.ovpro.1
        - cfca.single.ev.1
        - geotrust.single.ev.1
        - globalsign.single.ev.1
        - symantec.single.ev.1
        - symantec.single.evpro.1
        - symantec.single.dv.1
        - geotrust.single.ov.2
        - geotrust.wildcard.ov.2
        - geotrust.single.dv.2
        - globalsign.wildcard.ov.2
        - symantec.single.evpro.2
        - symantec.single.ev.2
        - globalsign.single.ev.2
        - geotrust.single.ev.2
        - symantec.single.ovpro.2
        - symantec.wildcard.ov.2
        - symantec.single.ov.2
        - globalsign.single.ov.2
    default: symantec.single.ov.1
    description: >-
      Certificate product name. Format: Certificate Authority.Domain
      Type.Certificate Type.Validity Period (number of years)
    type: string
  domain-number:
    constraints:
      in_range:
        - 1
        - 100
    default: 1
    description: >-
      Number of domain names that can be added to the purchased certificate. You
      can add 2 to 100 domain names for a multi-domain certificate and only 1
      domain name for certificates of other domain types.
    type: integer
  order-number:
    constraints:
      in_range:
        - 1
        - 3000
    default: 1
    description: Number of purchased certificates.
    type: integer
node_templates:
  my-scm:
    properties:
      chargeMode: 1
      instances:
        get_input: order-number
      periodNum: 1
      periodType: 6
      resourceSize:
        get_input: domain-number
      resourceSpecCode:
        get_input: cert-product
    type: HuaweiCloud.SCM.Cert