ALIYUN::BastionHost::ExportConfigJob类型用于导出配置任务。
语法
{
"Type": "ALIYUN::BastionHost::ExportConfigJob",
"Properties": {
"InstanceId": String
}
}
属性
|
属性名称 |
类型 |
必须 |
允许更新 |
描述 |
约束 |
|
InstanceId |
String |
是 |
否 |
堡垒主机实例的ID。 |
无 |
返回值
Fn::GetAtt
-
JobId:导出配置任务的ID。
-
DownloadUrl:导出配置任务的下载URL。
示例
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
InstanceId:
Type: String
Description:
en: The ID of the bastion host instance.
zh: 堡垒主机实例的ID。
Required: true
Resources:
ExportConfigJob:
Type: ALIYUN::BastionHost::ExportConfigJob
Properties:
InstanceId:
Ref: InstanceId
Outputs:
JobId:
Description:
en: The ID of the export config job.
zh: 导出配置任务的ID。
Value:
Fn::GetAtt:
- ExportConfigJob
- JobId
DownloadUrl:
Description:
en: The download url of the export config job.
zh: 导出配置任务的下载URL。
Value:
Fn::GetAtt:
- ExportConfigJob
- DownloadUrl
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"InstanceId": {
"Type": "String",
"Description": {
"en": "The ID of the bastion host instance.",
"zh": "堡垒主机实例的ID。"
},
"Required": true
}
},
"Resources": {
"ExportConfigJob": {
"Type": "ALIYUN::BastionHost::ExportConfigJob",
"Properties": {
"InstanceId": {
"Ref": "InstanceId"
}
}
}
},
"Outputs": {
"JobId": {
"Description": {
"en": "The ID of the export config job.",
"zh": "导出配置任务的ID。"
},
"Value": {
"Fn::GetAtt": [
"ExportConfigJob",
"JobId"
]
}
},
"DownloadUrl": {
"Description": {
"en": "The download url of the export config job.",
"zh": "导出配置任务的下载URL。"
},
"Value": {
"Fn::GetAtt": [
"ExportConfigJob",
"DownloadUrl"
]
}
}
}
}
该文章对您有帮助吗?