O tipo de recurso ALIYUN::HDR::SitePair cria um par de sites para recuperação de desastres.
Sintaxe
{
"Type": "ALIYUN::HDR::SitePair",
"Properties": {
"PrimarySiteType": String,
"PrimarySiteName": String,
"PrimarySiteVpcId": String,
"PrimarySiteRegionId": String,
"SecondarySiteVpcId": String,
"SecondarySiteName": String,
"SecondarySiteType": String,
"SecondarySiteRegionId": String,
"PrimarySiteZoneId": String,
"SecondarySiteZoneId": String,
"SitePairType": String
}
}
Propriedades
Nome da propriedade | Tipo | Obrigatório | Atualizável | Descrição | Restrição |
PrimarySiteType | String | Sim | Não | Tipo do site primário. | Nenhuma |
PrimarySiteName | String | Sim | Não | Nome do site primário. | Nenhuma |
PrimarySiteVpcId | String | Sim | Não | ID da VPC do site primário. | Nenhuma |
PrimarySiteRegionId | String | Sim | Não | ID da região do site primário. | Nenhuma |
SecondarySiteVpcId | String | Sim | Não | ID da VPC do site secundário. | Nenhuma |
SecondarySiteName | String | Sim | Não | Nome do site secundário. | Nenhuma |
SecondarySiteType | String | Sim | Não | Tipo do site secundário. | Nenhuma |
SecondarySiteRegionId | String | Sim | Não | ID da região do site secundário. | Nenhuma |
PrimarySiteZoneId | String | Não | Não | ID da zona do site primário. | Válida apenas para pares de sites com recuperação de desastres entre zonas. |
SecondarySiteZoneId | String | Não | Não | ID da zona do site secundário. | Válida apenas para pares de sites com recuperação de desastres entre zonas. |
SitePairType | String | Não | Não | Tipo de par de sites | Valores válidos:
|
Valores de retorno
Fn::GetAtt
PrimarySiteId: ID do site primário.
SitePairId: ID do par de sites.
SecondarySiteId: ID do site secundário.
Exemplos
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
PrimarySiteType:
Type: String
Description:
en: 'The type of the primary site. Valid values: VPC, VSwitch, VRouter.'
Required: true
SecondarySiteVpcId:
Type: String
Description:
en: The VPC ID of the secondary site.
Required: true
PrimarySiteName:
Type: String
Description:
en: The name of the primary site.
Required: true
SecondarySiteName:
Type: String
Description:
en: The name of the secondary site.
Required: true
SecondarySiteType:
Type: String
Description:
en: 'The type of the secondary site. Valid values: VPC, VSwitch, VRouter.'
Required: true
PrimarySiteVpcId:
Type: String
Description:
en: The VPC ID of the primary site.
Required: true
PrimarySiteRegionId:
Type: String
Description:
en: The region ID of the primary site.
Required: true
SecondarySiteRegionId:
Type: String
Description:
en: The region ID of the secondary site.
Required: true
Resources:
SitePair:
Type: ALIYUN::HDR::SitePair
Properties:
PrimarySiteType:
Ref: PrimarySiteType
SecondarySiteVpcId:
Ref: SecondarySiteVpcId
PrimarySiteName:
Ref: PrimarySiteName
SecondarySiteName:
Ref: SecondarySiteName
SecondarySiteType:
Ref: SecondarySiteType
PrimarySiteVpcId:
Ref: PrimarySiteVpcId
PrimarySiteRegionId:
Ref: PrimarySiteRegionId
SecondarySiteRegionId:
Ref: SecondarySiteRegionId
Outputs:
PrimarySiteId:
Description: The ID of the primary site.
Value:
Fn::GetAtt:
- SitePair
- PrimarySiteId
SitePairId:
Description: The ID of the site pair.
Value:
Fn::GetAtt:
- SitePair
- SitePairId
SecondarySiteId:
Description: The ID of the secondary site.
Value:
Fn::GetAtt:
- SitePair
- SecondarySiteId
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"PrimarySiteType": {
"Type": "String",
"Description": {
"en": "The type of the primary site. Valid values: VPC, VSwitch, VRouter."
},
"Required": true
},
"SecondarySiteVpcId": {
"Type": "String",
"Description": {
"en": "The VPC ID of the secondary site."
},
"Required": true
},
"PrimarySiteName": {
"Type": "String",
"Description": {
"en": "The name of the primary site."
},
"Required": true
},
"SecondarySiteName": {
"Type": "String",
"Description": {
"en": "The name of the secondary site."
},
"Required": true
},
"SecondarySiteType": {
"Type": "String",
"Description": {
"en": "The type of the secondary site. Valid values: VPC, VSwitch, VRouter."
},
"Required": true
},
"PrimarySiteVpcId": {
"Type": "String",
"Description": {
"en": "The VPC ID of the primary site."
},
"Required": true
},
"PrimarySiteRegionId": {
"Type": "String",
"Description": {
"en": "The region ID of the primary site."
},
"Required": true
},
"SecondarySiteRegionId": {
"Type": "String",
"Description": {
"en": "The region ID of the secondary site."
},
"Required": true
}
},
"Resources": {
"SitePair": {
"Type": "ALIYUN::HDR::SitePair",
"Properties": {
"PrimarySiteType": {
"Ref": "PrimarySiteType"
},
"SecondarySiteVpcId": {
"Ref": "SecondarySiteVpcId"
},
"PrimarySiteName": {
"Ref": "PrimarySiteName"
},
"SecondarySiteName": {
"Ref": "SecondarySiteName"
},
"SecondarySiteType": {
"Ref": "SecondarySiteType"
},
"PrimarySiteVpcId": {
"Ref": "PrimarySiteVpcId"
},
"PrimarySiteRegionId": {
"Ref": "PrimarySiteRegionId"
},
"SecondarySiteRegionId": {
"Ref": "SecondarySiteRegionId"
}
}
}
},
"Outputs": {
"PrimarySiteId": {
"Description": "The ID of the primary site.",
"Value": {
"Fn::GetAtt": [
"SitePair",
"PrimarySiteId"
]
}
},
"SitePairId": {
"Description": "The ID of the site pair.",
"Value": {
"Fn::GetAtt": [
"SitePair",
"SitePairId"
]
}
},
"SecondarySiteId": {
"Description": "The ID of the secondary site.",
"Value": {
"Fn::GetAtt": [
"SitePair",
"SecondarySiteId"
]
}
}
}
}