Cria um job para exportar a configuração de uma instância de bastion host.
Sintaxe
{
"Type": "ALIYUN::BastionHost::ExportConfigJob",
"Properties": {
"InstanceId": String
}
}
Propriedades
|
Parâmetro |
Tipo |
Obrigatório |
Atualização permitida |
Descrição |
Restrições |
|
InstanceId |
String |
Sim |
Não |
ID da instância de bastion host. |
Nenhuma |
Valores de retorno
Fn::GetAtt
JobId: ID do job de exportação de configuração.
DownloadUrl: URL para baixe as configurações exportadas.
Exemplo
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"
]
}
}
}
}