SecurityGroupIngressProps
Properties for defining a SecurityGroupIngress
.
See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-ecs-securitygroupingress
Initializer
using AlibabaCloud.SDK.ROS.CDK.Ecs;
new SecurityGroupIngressProps {
object IpProtocol,
object PortRange,
object Description = null,
object Ipv6SourceCidrIp = null,
object NicType = null,
object Policy = null,
object Priority = null,
object SecurityGroupId = null,
object SourceCidrIp = null,
object SourceGroupId = null,
object SourceGroupOwnerId = null,
object SourcePortRange = null,
object SourcePrefixListId = null
};
Properties
Name | Type | Description |
---|---|---|
IpProtocol |
object |
Property ipProtocol: Ip protocol for in rule. |
PortRange |
object |
Property portRange: Ip protocol relative port range. |
Description |
object |
Property description: Description of the security group rule, [1, 512] characters. |
Ipv6SourceCidrIp |
object |
Property ipv6SourceCidrIp: Source IPv6 CIDR address segment. |
NicType |
object |
Property nicType: Network type, could be 'internet' or 'intranet'. |
Policy |
object |
Property policy: Authorization policies, parameter values can be: accept (accepted access), drop (denied access). |
Priority |
object |
Property priority: Authorization policies priority range[1, 100]. |
SecurityGroupId |
object |
Property securityGroupId: Id of the security group. |
SourceCidrIp |
object |
Property sourceCidrIp: The source IPv4 CIDR block to which you want to control access. |
SourceGroupId |
object |
Property sourceGroupId: Source Group Id. |
SourceGroupOwnerId |
object |
Property sourceGroupOwnerId: Source Group Owner Account ID. |
SourcePortRange |
object |
Property sourcePortRange: The range of the ports enabled by the source security group for the transport layer protocol. |
SourcePrefixListId |
object |
Property sourcePrefixListId: The ID of the source prefix list to which you want to control access. |
IpProtocol
Required
public object IpProtocol { get; set; }
- Type: object
Property ipProtocol: Ip protocol for in rule.
PortRange
Required
public object PortRange { get; set; }
- Type: object
Property portRange: Ip protocol relative port range.
For tcp and udp, the port rang is [1,65535], using format '1/200'For icmp|gre|all protocel, the port range should be '-1/-1'
Description
Optional
public object Description { get; set; }
- Type: object
Property description: Description of the security group rule, [1, 512] characters.
The default is empty.
Ipv6SourceCidrIp
Optional
public object Ipv6SourceCidrIp { get; set; }
- Type: object
Property ipv6SourceCidrIp: Source IPv6 CIDR address segment.
Supports IP address ranges in CIDR format and IPv6 format. Note Only VPC type IP addresses are supported.
NicType
Optional
public object NicType { get; set; }
- Type: object
Property nicType: Network type, could be 'internet' or 'intranet'.
Default value is internet.
Policy
Optional
public object Policy { get; set; }
- Type: object
Property policy: Authorization policies, parameter values can be: accept (accepted access), drop (denied access).
Default value is accept.
Priority
Optional
public object Priority { get; set; }
- Type: object
Property priority: Authorization policies priority range[1, 100].
SecurityGroupId
Optional
public object SecurityGroupId { get; set; }
- Type: object
Property securityGroupId: Id of the security group.
SourceCidrIp
Optional
public object SourceCidrIp { get; set; }
- Type: object
Property sourceCidrIp: The source IPv4 CIDR block to which you want to control access.
CIDR blocks and IPv4 addresses are supported.
SourceGroupId
Optional
public object SourceGroupId { get; set; }
- Type: object
Property sourceGroupId: Source Group Id.
SourceGroupOwnerId
Optional
public object SourceGroupOwnerId { get; set; }
- Type: object
Property sourceGroupOwnerId: Source Group Owner Account ID.
SourcePortRange
Optional
public object SourcePortRange { get; set; }
- Type: object
Property sourcePortRange: The range of the ports enabled by the source security group for the transport layer protocol.
Valid values: TCP/UDP: Value range: 1 to 65535. The start port and the end port are separated by a slash (/). Correct example: 1/200. Incorrect example: 200/1.ICMP: -1/-1.GRE: -1/-1.ALL: -1/-1.
SourcePrefixListId
Optional
public object SourcePrefixListId { get; set; }
- Type: object
Property sourcePrefixListId: The ID of the source prefix list to which you want to control access.
You can call the DescribePrefixLists operation to query the IDs of available prefix lists. Take note of the following items:
- If a security group is in the classic network, you cannot configure prefix lists in the security group rules.
- If you specify the SourceCidrIp, Ipv6SourceCidrIp, or SourceGroupId parameter, this parameter is ignored.