ALIYUN::CAS::Order类型用于创建证书订单。
语法
{
"Type": "ALIYUN::CAS::Order",
"Properties": {
"DomainCnt": Integer,
"DomainType": String,
"Service": String,
"Period": Integer,
"CertType": String,
"CertBrand": String
}
}
属性
属性名称 | 类型 | 必须 | 允许更新 | 描述 | 约束 |
CertBrand | String | 是 | 否 | SSL证书名称。 | 取值:
|
CertType | String | 是 | 否 | 证书类型。 | 取值:
|
DomainCnt | Integer | 否 | 否 | 包含证书的域名数。 | 取值范围:1~500。 |
DomainType | String | 否 | 否 | 域名类型。 | 取值:
|
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"
]
}
}
}
}