Skip to content

GatewayProps

Properties for defining a Gateway.

See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-cloudstoragegateway-gateway

Initializer

using AlibabaCloud.SDK.ROS.CDK.Cloudstoragegateway;
new GatewayProps {
    object Category,
    object Location,
    object Name,
    object Type,
    object Description = null,
    object GatewayClass = null,
    object PostPaid = null,
    object PublicNetworkBandwidth = null,
    object ReleaseAfterExpiration = null,
    object ResourceRegionId = null,
    object SecondaryVSwitchId = null,
    object StorageBundleId = null,
    object UntrustedEnvId = null,
    object UntrustedEnvInstanceType = null,
    object VSwitchId = null
};

Properties

Name Type Description
Category object Property category: The category of the gateway.
Location object Property location: The location of the gateway.
Name object Property name: The name of the gateway.
Type object Property type: The type of the gateway.
Description object Property description: The description of the gateway.
GatewayClass object Property gatewayClass: If your gateway is deployed in a data center, which is an on-premises gateway, you can ignore this parameter.
PostPaid object Property postPaid: Valid values: - true: pay-as-you-go.
PublicNetworkBandwidth object Property publicNetworkBandwidth: > - This parameter is supported only for cloud gateways.
ReleaseAfterExpiration object Property releaseAfterExpiration: Specifies whether to release the gateway when the subscription expires.
ResourceRegionId object Property resourceRegionId: The region ID of the resource.
SecondaryVSwitchId object Property secondaryVSwitchId: The ID of the secondary VSwitch.
StorageBundleId object Property storageBundleId: The ID of the gateway cluster.
UntrustedEnvId object Property untrustedEnvId: The ID of the untrusted environment.
UntrustedEnvInstanceType object Property untrustedEnvInstanceType: The instance type of the untrusted environment.
VSwitchId object Property vSwitchId: The ID of the virtual switch.

CategoryRequired

public object Category { get; set; }
  • Type: object

Property category: The category of the gateway.

The default value is Cloud.


LocationRequired

public object Location { get; set; }
  • Type: object

Property location: The location of the gateway.


NameRequired

public object Name { get; set; }
  • Type: object

Property name: The name of the gateway.

The name must be 60 characters in length. The name must start with a letter or a Chinese character. The name can contain letters, Chinese characters, digits, underscores (_), hyphens (-), and periods (.).


TypeRequired

public object Type { get; set; }
  • Type: object

Property type: The type of the gateway.


DescriptionOptional

public object Description { get; set; }
  • Type: object

Property description: The description of the gateway.


GatewayClassOptional

public object GatewayClass { get; set; }
  • Type: object

Property gatewayClass: If your gateway is deployed in a data center, which is an on-premises gateway, you can ignore this parameter.

If your gateway is deployed on the cloud, which is a cloud gateway, valid values are:

  • Basic: Basic
  • Standard: Medium
  • Enhanced: Enhanced
  • Advanced: Performance

PostPaidOptional

public object PostPaid { get; set; }
  • Type: object

Property postPaid: Valid values: - true: pay-as-you-go.

  • false: subscription. Default value: false (subscription).

PublicNetworkBandwidthOptional

public object PublicNetworkBandwidth { get; set; }
  • Type: object

Property publicNetworkBandwidth: > - This parameter is supported only for cloud gateways.

You can ignore this parameter for on-premises gateways.

  • Configure this parameter only when you need to mount an OSS bucket across regions.
  • If you specify 0 or do not specify this parameter, the default value is 5.

ReleaseAfterExpirationOptional

public object ReleaseAfterExpiration { get; set; }
  • Type: object

Property releaseAfterExpiration: Specifies whether to release the gateway when the subscription expires.

Valid values: true: The gateway is automatically released. false: The billing method of the gateway is automatically changed to pay-as-you-go after the subscription expires.


ResourceRegionIdOptional

public object ResourceRegionId { get; set; }
  • Type: object

Property resourceRegionId: The region ID of the resource.


SecondaryVSwitchIdOptional

public object SecondaryVSwitchId { get; set; }
  • Type: object

Property secondaryVSwitchId: The ID of the secondary VSwitch.


StorageBundleIdOptional

public object StorageBundleId { get; set; }
  • Type: object

Property storageBundleId: The ID of the gateway cluster.

You must specify this parameter if you do not specify ResourceRegionId.


UntrustedEnvIdOptional

public object UntrustedEnvId { get; set; }
  • Type: object

Property untrustedEnvId: The ID of the untrusted environment.


UntrustedEnvInstanceTypeOptional

public object UntrustedEnvInstanceType { get; set; }
  • Type: object

Property untrustedEnvInstanceType: The instance type of the untrusted environment.


VSwitchIdOptional

public object VSwitchId { get; set; }
  • Type: object

Property vSwitchId: The ID of the virtual switch.

If your gateway is deployed in a data center, you can ignore this parameter.

  • The vSwitch must be in the same VPC as the ECS instance that you want to attach.
  • If no gateway resources can be allocated in the zone where the vSwitch resides, create a vSwitch in another zone.