The ALIYUN::BastionHost::ExportConfigJob resource creates an export config job.
Syntax
{
"Type": "ALIYUN::BastionHost::ExportConfigJob",
"Properties": {
"InstanceId": String
}
}
Properties
|
Parameter |
Type |
Required |
Update allowed |
Description |
Constraints |
|
InstanceId |
String |
Yes |
No |
The ID of the bastion host instance. |
None |
Return values
Fn::GetAtt
-
JobId: The ID of the export config job.
-
DownloadUrl: The download URL for the exported configurations.
Example
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
InstanceId:
Type: String
Description:
en: The ID of the bastion host instance.
zh: The ID of the bastion host instance.
Required: true
Resources:
ExportConfigJob:
Type: ALIYUN::BastionHost::ExportConfigJob
Properties:
InstanceId:
Ref: InstanceId
Outputs:
JobId:
Description:
en: The ID of the export config job.
zh: The ID of the export config job.
Value:
Fn::GetAtt:
- ExportConfigJob
- JobId
DownloadUrl:
Description:
en: The download URL for the exported configurations.
zh: The download URL of the export config job.
Value:
Fn::GetAtt:
- ExportConfigJob
- DownloadUrl
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"InstanceId": {
"Type": "String",
"Description": {
"en": "The ID of the bastion host instance.",
"zh": "The ID of the bastion host instance."
},
"Required": true
}
},
"Resources": {
"ExportConfigJob": {
"Type": "ALIYUN::BastionHost::ExportConfigJob",
"Properties": {
"InstanceId": {
"Ref": "InstanceId"
}
}
}
},
"Outputs": {
"JobId": {
"Description": {
"en": "The ID of the export config job.",
"zh": "The ID of the export config job."
},
"Value": {
"Fn::GetAtt": [
"ExportConfigJob",
"JobId"
]
}
},
"DownloadUrl": {
"Description": {
"en": "The download URL for the exported configurations.",
"zh": "The download URL of the export config job."
},
"Value": {
"Fn::GetAtt": [
"ExportConfigJob",
"DownloadUrl"
]
}
}
}
}