ALIYUN::SLB::CaCertificate类型用于上传CA证书。
语法
{
"Type": "ALIYUN::SLB::CaCertificate",
"Properties": {
"CaCertificate": String,
"CaCertificateName": String,
"ResourceGroupId": String,
"Tags": List
}
}
属性
|
属性名称 |
类型 |
必须 |
允许更新 |
描述 |
约束 |
|
CaCertificate |
String |
是 |
否 |
CA证书的信息。 |
无 |
|
CaCertificateName |
String |
否 |
是 |
CA证书的名称。 |
无 |
|
ResourceGroupId |
String |
否 |
是 |
资源组的ID。 |
无 |
|
Tags |
List |
否 |
是 |
CA证书的标签。 |
长度最大值为20。更多信息,请参考Tags属性。 |
Tags语法
"Tags": [
{
"Value": String,
"Key": String
}
]
Tags属性
|
属性名称 |
类型 |
必须 |
允许更新 |
描述 |
约束 |
|
Key |
String |
是 |
否 |
标签键。 |
无 |
|
Value |
String |
否 |
否 |
标签值。 |
无 |
返回值
Fn::GetAtt
-
Fingerprint:服务器证书的指纹。
-
CreatedTimestamp:CA证书的创建时间戳。
-
ExpiredTimestamp:CA证书的过期时间戳。
-
ResourceGroupId:资源组的ID。
-
ExpiredTime:CA证书的过期时间。
-
CreateTime:CA证书的创建时间。
-
CaCertificateName:CA证书的名称。
-
Tags:CA证书的标签。
-
CaCertificateId:CA证书的ID。
-
CommonName:CA证书上的域名。
示例
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
CaCertificate:
Type: String
Description:
en: The information about the CA certificate.
Required: true
ResourceGroupId:
Type: String
Description:
en: The ID of the resource group.
AssociationProperty: ALIYUN::ECS::ResourceGroup::ResourceGroupId
Default: Null
Required: false
CaCertificateName:
Type: String
Description:
en: The CA certificate name.
Default: Null
Required: false
Tags:
Description:
en: Tags of ca certificate.
Required: false
Default: Null
Type: Json
MaxLength: 20
AssociationProperty: List[Parameters]
AssociationPropertyMetadata:
Parameters:
Key:
Type: String
Required: true
Value:
Type: String
Default: Null
Required: false
ListMetadata:
Order:
- Key
- Value
Resources:
ExtensionResource:
Type: ALIYUN::SLB::CaCertificate
Properties:
CaCertificate:
Ref: CaCertificate
ResourceGroupId:
Ref: ResourceGroupId
CaCertificateName:
Ref: CaCertificateName
Tags:
Ref: Tags
Outputs:
Tags:
Value:
Fn::GetAtt:
- ExtensionResource
- Tags
Description: The tags of ca certificate.
CommonName:
Value:
Fn::GetAtt:
- ExtensionResource
- CommonName
Description: The domain name on the CA certificate.
CreatedTimestamp:
Value:
Fn::GetAtt:
- ExtensionResource
- CreatedTimestamp
Description: The create time stamp of the CA certificate.
ResourceGroupId:
Value:
Fn::GetAtt:
- ExtensionResource
- ResourceGroupId
Description: The ID of the resource group.
ExpiredTime:
Value:
Fn::GetAtt:
- ExtensionResource
- ExpiredTime
Description: The time when the CA certificate expires.
CaCertificateName:
Value:
Fn::GetAtt:
- ExtensionResource
- CaCertificateName
Description: The CA certificate name.
Fingerprint:
Value:
Fn::GetAtt:
- ExtensionResource
- Fingerprint
Description: The fingerprint of the server certificate.
CaCertificateId:
Value:
Fn::GetAtt:
- ExtensionResource
- CaCertificateId
Description: The ID of the CA certificate.
CreateTime:
Value:
Fn::GetAtt:
- ExtensionResource
- CreateTime
Description: The time when the CA certificate was created.
ExpiredTimestamp:
Value:
Fn::GetAtt:
- ExtensionResource
- ExpiredTimestamp
Description: The expiration time stamp of the CA certificate.
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"CaCertificate": {
"Type": "String",
"Description": {
"en": "The information about the CA certificate."
},
"Required": true
},
"ResourceGroupId": {
"Type": "String",
"Description": {
"en": "The ID of the resource group."
},
"AssociationProperty": "ALIYUN::ECS::ResourceGroup::ResourceGroupId",
"Default": null,
"Required": false
},
"CaCertificateName": {
"Type": "String",
"Description": {
"en": "The CA certificate name."
},
"Default": null,
"Required": false
},
"Tags": {
"Description": {
"en": "Tags of ca certificate."
},
"Required": false,
"Default": null,
"Type": "Json",
"MaxLength": 20,
"AssociationProperty": "List[Parameters]",
"AssociationPropertyMetadata": {
"Parameters": {
"Key": {
"Type": "String",
"Required": true
},
"Value": {
"Type": "String",
"Default": null,
"Required": false
}
},
"ListMetadata": {
"Order": [
"Key",
"Value"
]
}
}
}
},
"Resources": {
"ExtensionResource": {
"Type": "ALIYUN::SLB::CaCertificate",
"Properties": {
"CaCertificate": {
"Ref": "CaCertificate"
},
"ResourceGroupId": {
"Ref": "ResourceGroupId"
},
"CaCertificateName": {
"Ref": "CaCertificateName"
},
"Tags": {
"Ref": "Tags"
}
}
}
},
"Outputs": {
"Tags": {
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"Tags"
]
},
"Description": "The tags of ca certificate."
},
"CommonName": {
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"CommonName"
]
},
"Description": "The domain name on the CA certificate."
},
"CreatedTimestamp": {
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"CreatedTimestamp"
]
},
"Description": "The create time stamp of the CA certificate."
},
"ResourceGroupId": {
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"ResourceGroupId"
]
},
"Description": "The ID of the resource group."
},
"ExpiredTime": {
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"ExpiredTime"
]
},
"Description": "The time when the CA certificate expires."
},
"CaCertificateName": {
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"CaCertificateName"
]
},
"Description": "The CA certificate name."
},
"Fingerprint": {
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"Fingerprint"
]
},
"Description": "The fingerprint of the server certificate."
},
"CaCertificateId": {
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"CaCertificateId"
]
},
"Description": "The ID of the CA certificate."
},
"CreateTime": {
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"CreateTime"
]
},
"Description": "The time when the CA certificate was created."
},
"ExpiredTimestamp": {
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"ExpiredTimestamp"
]
},
"Description": "The expiration time stamp of the CA certificate."
}
}
}该文章对您有帮助吗?