文档

ALIYUN::CAS::Order

更新时间:

ALIYUN::CAS::Order类型用于创建证书订单。

语法

{
  "Type": "ALIYUN::CAS::Order",
  "Properties": {
    "Domains": List,
    "DomainCnt": Integer,
    "DomainType": String,
    "Monitor": Boolean,
    "Merge": Boolean,
    "Service": String,
    "Period": Integer,
    "CertType": String,
    "CertBrand": String
  }
}

属性

属性名称

类型

必须

允许更新

描述

约束

CertBrand

String

SSL证书名称。

取值:

  • Rapid:GeoTrust DV型证书。

  • Globalsign:GlobalSign证书。

  • vTrus:vTrus证书。

  • Wosign:Wosign证书。

  • Digicert:Digicert证书。

  • Digicert pro:Digicert pro证书。

  • Geotrust:Geotrust证书。

  • CFCA:CFCA证书。

CertType

String

证书类型。

取值:

  • DV:DV证书。

  • OV:OV证书。

  • EV:EV证书。

DomainCnt

Integer

包含证书的域名数。

取值范围:1~500。

Domains

List

域名列表。

最多支持指定500个域名。

DomainType

String

域名类型。

取值:

  • one:单域名。

  • multiple:多域名。

  • all:混合域名。

Merge

Boolean

是否合并证书。

Monitor

Boolean

是否启用监控域。

Period

Integer

证书的购买时长。

单位:年。

取值范围:1~3.

Service

String

启用其他服务配置

取值范围:

  • VipProduct:Vip产品服务

  • NoNeed:不启用任何产品服务

  • ExpeditedProduct:请求协助服务。

  • DeployProduct:部署普通加密服务。

  • SM2DeployProduct:部署SM2加密服务。

返回值

Fn::GetAtt

示例

YAML格式

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  CertType:
    Type: String
    Description:
      en: 'Certificate type. Valid values: DV, OV, EV.'
    AllowedValues:
      - DV
      - OV
      - EV
    Required: true
  CertBrand:
    Type: String
    Description:
      en: 'Certificate brand. Valid values: Rapid, Globalsign, vTrus, Wosign, Digicert, Digicert pro, Geotrust, CFCA.'
    AllowedValues:
      - Rapid
      - Globalsign
      - vTrus
      - Wosign
      - Digicert
      - Digicert pro
      - Geotrust
      - CFCA
    Required: true
Resources:
  SslOrder:
    Type: ALIYUN::CAS::Order
    Properties:
      CertType:
        Ref: CertType
      CertBrand:
        Ref: CertBrand

JSON格式

{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "CertType": {
      "Type": "String",
      "Description": {
        "en": "Certificate type. Valid values: DV, OV, EV.\n**Note:** This parameter must be specified along with or without the DomainType and CertBrand parameters."
      },
      "AllowedValues": [
        "DV",
        "OV",
        "EV"
      ],
      "Required": false
    },
    "CertBrand": {
      "Type": "String",
      "Description": {
        "en": "Certificate brand. Valid values: Rapid, Globalsign, vTrus, Wosign, Digicert, Digicert pro, Geotrust, CFCA.\n**Note:** This parameter must be specified along with or without the CertType and DomainTyp parameters."
      },
      "AllowedValues": [
        "Rapid",
        "Globalsign",
        "vTrus",
        "Wosign",
        "Digicert",
        "Digicert pro",
        "Geotrust",
        "CFCA"
      ],
      "Required": false
    }
  },
  "Resources": {
    "SslCertificate": {
      "Type": "ALIYUN::CAS::SslCertificate",
      "Properties": {
        "CertType": {
          "Ref": "CertType"
        },
        "CertBrand": {
          "Ref": "CertBrand"
        }
      }
    }
  },
  "Outputs": {
    "CertificateId": {
      "Description": "The ID of the certificate issued to you.",
      "Value": {
        "Fn::GetAtt": [
          "SslCertificate",
          "CertificateId"
        ]
      }
    },
    "OrderId": {
      "Description": "The ID of the certificate order.",
      "Value": {
        "Fn::GetAtt": [
          "SslCertificate",
          "OrderId"
        ]
      }
    }
  }
}
                        
  • 本页导读 (1)