Skip to content

SecurityGroupProps

Properties for defining a SecurityGroup.

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

Initializer

using AlibabaCloud.SDK.ROS.CDK.Ecs;
new SecurityGroupProps {
    object Description = null,
    object ResourceGroupId = null,
    object SecurityGroupEgress = null,
    object SecurityGroupIngress = null,
    object SecurityGroupName = null,
    object SecurityGroupType = null,
    TagsProperty[] Tags = null,
    object VpcId = null
};

Properties

Name Type Description
Description object Property description: The description of the security group.
ResourceGroupId object Property resourceGroupId: Resource group id.
SecurityGroupEgress object Property securityGroupEgress: egress rules for the security group.
SecurityGroupIngress object Property securityGroupIngress: Ingress rules for the security group.
SecurityGroupName object Property securityGroupName: The name of the security group.
SecurityGroupType object Property securityGroupType: The type of the security group.
Tags TagsProperty[] Property tags: Tags to attach to security group.
VpcId object Property vpcId: The ID of the VPC in which you want to create the security group.

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.


ResourceGroupIdOptional

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

Property resourceGroupId: Resource group id.


SecurityGroupEgressOptional

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

Property securityGroupEgress: egress rules for the security group.


SecurityGroupIngressOptional

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

Property securityGroupIngress: Ingress rules for the security group.


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.

TagsOptional

public TagsProperty[] Tags { get; set; }

Property tags: Tags to attach to security group.

Max support 20 tags to add during create security group. Each tag with two properties Key and Value, and Key is required.


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.