Skip to content

SecurityGroupCloneProps

Properties for defining a SecurityGroupClone.

See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-ecs-securitygroupclone

Initializer

using AlibabaCloud.SDK.ROS.CDK.Ecs;
new SecurityGroupCloneProps {
    object SourceSecurityGroupId,
    object Description = null,
    object DestinationRegionId = null,
    object NetworkType = null,
    object ResourceGroupId = null,
    object SecurityGroupName = null,
    object SecurityGroupType = null,
    object VpcId = null
};

Properties

Name Type Description
SourceSecurityGroupId object Property sourceSecurityGroupId: Source security group ID is used to copy properties to clone new security group.
Description object Property description: The description of the security group.
DestinationRegionId object Property destinationRegionId: Clone security group to the specified region.
NetworkType object Property networkType: Clone new security group as classic network type.
ResourceGroupId object Property resourceGroupId: Resource group id.
SecurityGroupName object Property securityGroupName: The name of the security group.
SecurityGroupType object Property securityGroupType: The type of the security group.
VpcId object Property vpcId: The ID of the VPC in which you want to create the security group.

SourceSecurityGroupIdRequired

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

Property sourceSecurityGroupId: Source security group ID is used to copy properties to clone new security group.

If the NetworkType and VpcId is not specified, the same security group will be cloned. If NetworkType or VpcId is specified, only proper security group rules will be cloned.


DescriptionOptional

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

Property description: The description of the security group.

The description must be 2 to 256 characters in length. It cannot start with http:\/\/ or https:\/\/. By default, this parameter is left empty.


DestinationRegionIdOptional

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

Property destinationRegionId: Clone security group to the specified region.

Default to current region.


NetworkTypeOptional

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

Property networkType: Clone new security group as classic network type.

If the VpcId is specified, the value will be ignored.


ResourceGroupIdOptional

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

Property resourceGroupId: Resource group id.


SecurityGroupNameOptional

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

Property securityGroupName: The name of the security group.

The name must be 2 to 128 characters in length. The name must start with a letter and cannot start with http:\/\/ or https:\/\/. The name can contain letters, digits, colons (:), underscores (_), periods (.), and hyphens (-).


SecurityGroupTypeOptional

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

Property securityGroupType: The type of the security group.

Valid values:

  • normal: basic security group
  • enterprise: advanced security group Default value: normal.

VpcIdOptional

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

Property vpcId: The ID of the VPC in which you want to create the security group.

The VpcId parameter is required only if you want to create security groups of the VPC type.