全部产品
Search
文档中心

资源编排:ALIYUN::CAS::Order

更新时间:Jun 21, 2024

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

语法

{
  "Type": "ALIYUN::CAS::Order",
  "Properties": {
    "DomainCnt": Integer,
    "DomainType": String,
    "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。

DomainType

String

域名类型。

取值:

  • one:单域名。

  • multiple:多域名。

  • all:混合域名。

Period

Integer

证书的购买时长。

单位:年。

取值范围:1~3.

返回值

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"
        ]
      }
    }
  }
}