Cria um Cloud Storage Gateway.
Sintaxe
{
"Type": "ALIYUN::CloudStorageGateway::Gateway",
"Properties": {
"Category": String,
"Location": String,
"Name": String,
"Type": String,
"Description": String,
"GatewayClass": String,
"PublicNetworkBandwidth": Integer,
"PostPaid": Boolean,
"ResourceRegionId": String,
"ReleaseAfterExpiration": Boolean,
"StorageBundleId": String,
"SecondaryVSwitchId": String,
"UntrustedEnvId": String,
"UntrustedEnvInstanceType": String,
"VSwitchId": String
}
}
Propriedades
|
Parâmetro |
Tipo |
Obrigatório |
Atualize permitida |
Descrição |
Restrições |
|
Category |
String |
Sim |
Não |
Categoria do gateway. |
Nenhuma |
|
Location |
String |
Sim |
Não |
Local de implantação do gateway. |
Valores permitidos:
|
|
Name |
String |
Sim |
Não |
Nome do gateway. |
Nenhuma |
|
Type |
String |
Sim |
Não |
Tipo do gateway. |
Valores permitidos:
|
|
Description |
String |
Não |
Não |
Descrição do gateway. |
Comprimento: 0 a 255 caracteres. |
|
GatewayClass |
String |
Não |
Não |
Classe do gateway. |
Nenhuma |
|
PostPaid |
Boolean |
Não |
Não |
Indica se o gateway usa faturamento conforme o uso. |
Nenhuma |
|
PublicNetworkBandwidth |
Integer |
Não |
Não |
Largura de banda da rede pública do gateway. |
Intervalo: 5 a 200. |
|
ReleaseAfterExpiration |
Boolean |
Não |
Não |
Indica se o gateway será liberado automaticamente após o vencimento. |
Nenhuma |
|
ResourceRegionId |
String |
Não |
Não |
ID da região do recurso. |
Nenhuma |
|
SecondaryVSwitchId |
String |
Não |
Não |
ID do vSwitch secundário. |
Nenhuma |
|
StorageBundleId |
String |
Não |
Não |
ID do pacote de armazenamento. |
Nenhuma |
|
UntrustedEnvId |
String |
Não |
Não |
ID do ambiente não confiável. |
Nenhuma |
|
UntrustedEnvInstanceType |
String |
Não |
Não |
Tipo de instância do ambiente não confiável. |
Nenhuma |
|
VSwitchId |
String |
Não |
Não |
ID do vSwitch. |
Nenhuma |
Valores de retorno
Fn::GetAtt
GatewayId: ID do gateway.
Exemplos
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
Category:
Type: String
Description:
en: The category of the gateway.
Required: true
Name:
Type: String
Description:
en: The name of the gateway.
Required: true
Type:
Type: String
Description:
en: The type of the gateway.
AllowedValues:
- File
- Iscsi
Required: true
Location:
Type: String
Description:
en: The location where the gateway is deployed.
AllowedValues:
- cloud
- on-premises
Required: true
Resources:
Gateway:
Type: ALIYUN::CloudStorageGateway::Gateway
Properties:
Category:
Ref: Category
Name:
Ref: Name
Type:
Ref: Type
Location:
Ref: Location
Outputs:
GatewayId:
Description:
en: The ID of the gateway.
Value:
Fn::GetAtt:
- Gateway
- GatewayId
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"Category": {
"Type": "String",
"Description": {
"en": "The category of the gateway."
},
"Required": true
},
"Name": {
"Type": "String",
"Description": {
"en": "The name of the gateway."
},
"Required": true
},
"Type": {
"Type": "String",
"Description": {
"en": "The type of the gateway."
},
"AllowedValues": [
"File",
"Iscsi"
],
"Required": true
},
"Location": {
"Type": "String",
"Description": {
"en": "The location where the gateway is deployed."
},
"AllowedValues": [
"cloud",
"on-premises"
],
"Required": true
}
},
"Resources": {
"Gateway": {
"Type": "ALIYUN::CloudStorageGateway::Gateway",
"Properties": {
"Category": {
"Ref": "Category"
},
"Name": {
"Ref": "Name"
},
"Type": {
"Ref": "Type"
},
"Location": {
"Ref": "Location"
}
}
}
},
"Outputs": {
"GatewayId": {
"Description": {
"en": "The ID of the gateway."
},
"Value": {
"Fn::GetAtt": [
"Gateway",
"GatewayId"
]
}
}
}
}