Use ALIYUN::DataWorks::Route para crie uma rota em um recurso de rede do DataWorks.
Sintaxe
{
"Type": "ALIYUN::DataWorks::Route",
"Properties": {
"DestinationCidr": String,
"NetworkId": Integer,
"DwResourceGroupId": String
}
}
Propriedades
|
Parâmetro |
Tipo |
Obrigatório |
Atualização permitida |
Descrição |
Restrições |
|
DestinationCidr |
String |
Sim |
Sim |
Bloco CIDR de destino. |
Nenhuma |
|
NetworkId |
Integer |
Sim |
Não |
ID do recurso de rede associado. |
Nenhuma |
|
DwResourceGroupId |
String |
Não |
Não |
ID do grupo de recursos associado. |
Nenhuma |
Valores de retorno
Fn::GetAtt
ResourceId: ID da rota.
CreateTime: Timestamp de criação da rota.
RouteId: ID da rota.
NetworkId: ID do recurso de rede associado.
DwResourceGroupId: ID do grupo de recursos associado.
DestinationCidr: Bloco CIDR de destino.
Exemplos
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
NetworkId:
Type: Number
Description: The ID of the network resource to which the route belongs.
Required: true
DestinationCidr:
Type: String
Description: The destination CIDR block for the route.
Required: true
Resources:
ExtensionResource:
Type: ALIYUN::DataWorks::Route
Properties:
NetworkId:
Ref: NetworkId
DestinationCidr:
Ref: DestinationCidr
Outputs:
ResourceId:
Description: The ID of the route.
Value:
Fn::GetAtt:
- ExtensionResource
- ResourceId
CreateTime:
Description: The creation timestamp of the route.
Value:
Fn::GetAtt:
- ExtensionResource
- CreateTime
RouteId:
Description: The ID of the route.
Value:
Fn::GetAtt:
- ExtensionResource
- RouteId
NetworkId:
Description: The ID of the network resource to which the route belongs.
Value:
Fn::GetAtt:
- ExtensionResource
- NetworkId
DwResourceGroupId:
Description: The ID of the resource group to which the route belongs.
Value:
Fn::GetAtt:
- ExtensionResource
- DwResourceGroupId
DestinationCidr:
Description: The destination CIDR block for the route.
Value:
Fn::GetAtt:
- ExtensionResource
- DestinationCidr
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"NetworkId": {
"Type": "Number",
"Description": "The ID of the network resource to which the route belongs.",
"Required": true
},
"DestinationCidr": {
"Type": "String",
"Description": "The destination CIDR block for the route.",
"Required": true
}
},
"Resources": {
"ExtensionResource": {
"Type": "ALIYUN::DataWorks::Route",
"Properties": {
"NetworkId": {
"Ref": "NetworkId"
},
"DestinationCidr": {
"Ref": "DestinationCidr"
}
}
}
},
"Outputs": {
"ResourceId": {
"Description": "The ID of the route.",
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"ResourceId"
]
}
},
"CreateTime": {
"Description": "The creation timestamp of the route.",
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"CreateTime"
]
}
},
"RouteId": {
"Description": "The ID of the route.",
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"RouteId"
]
}
},
"NetworkId": {
"Description": "The ID of the network resource to which the route belongs.",
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"NetworkId"
]
}
},
"DwResourceGroupId": {
"Description": "The ID of the resource group to which the route belongs.",
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"DwResourceGroupId"
]
}
},
"DestinationCidr": {
"Description": "The destination CIDR block for the route.",
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"DestinationCidr"
]
}
}
}
}