ALIYUN::CloudStorageGateway::Gateway

更新时间:
复制为 MD 格式

ALIYUN::CloudStorageGateway::Gateway类型用于创建网关。

语法

{
  "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
  }
}

属性

属性名称

类型

必须

允许更新

描述

约束

Category

String

网关的类别。

Location

String

网关的位置。

允许值:

  • Cloud

  • On_Premise

Name

String

网关的名称。

Type

String

网关的类型。

允许值:

  • File

  • Iscsi

Description

String

网关的描述。

长度限制:最小0,最大255

GatewayClass

String

网关的规格。

PostPaid

Boolean

网关是否按量付费。

PublicNetworkBandwidth

Integer

网关的公网带宽。

范围限制:最小5,最大200

ReleaseAfterExpiration

Boolean

到期后是否释放网关。

ResourceRegionId

String

资源的地域ID。

SecondaryVSwitchId

String

None

辅助交换机的ID。

StorageBundleId

String

存储包的ID。

UntrustedEnvId

String

非受信环境的ID。

UntrustedEnvInstanceType

String

非受信环境的实例类型。

VSwitchId

String

交换机的ID。

返回值

Fn::GetAtt

GatewayId:网关的ID。

示例

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  Category:
    Type: String
    Description:
      en: The category of the gateway.
      zh: 网关的类别。
    Required: true
  Name:
    Type: String
    Description:
      en: The name of the gateway.
      zh: 网关的名称。
    Required: true
  Type:
    Type: String
    Description:
      en: The type of the gateway.
      zh: 网关的类型。
    AllowedValues:
      - File
      - Iscsi
    Required: true
  Location:
    Type: String
    Description:
      en: The location of the gateway.
      zh: 网关的位置。
    AllowedValues:
      - Cloud
      - On_Premise
    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.
      zh: 网关的ID。
    Value:
      Fn::GetAtt:
        - Gateway
        - GatewayId
{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "Category": {
      "Type": "String",
      "Description": {
        "en": "The category of the gateway.",
        "zh": "网关的类别。"
      },
      "Required": true
    },
    "Name": {
      "Type": "String",
      "Description": {
        "en": "The name of the gateway.",
        "zh": "网关的名称。"
      },
      "Required": true
    },
    "Type": {
      "Type": "String",
      "Description": {
        "en": "The type of the gateway.",
        "zh": "网关的类型。"
      },
      "AllowedValues": [
        "File",
        "Iscsi"
      ],
      "Required": true
    },
    "Location": {
      "Type": "String",
      "Description": {
        "en": "The location of the gateway.",
        "zh": "网关的位置。"
      },
      "AllowedValues": [
        "Cloud",
        "On_Premise"
      ],
      "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.",
        "zh": "网关的ID。"
      },
      "Value": {
        "Fn::GetAtt": [
          "Gateway",
          "GatewayId"
        ]
      }
    }
  }
}