volcengine.vpc.SecurityGroupRule
Explore with Pulumi AI
Provides a resource to manage security group rule
Example Usage
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Volcengine = Pulumi.Volcengine;
return await Deployment.RunAsync(() =>
{
var g1test3 = new Volcengine.Vpc.SecurityGroupRule("g1test3", new()
{
CidrIp = "10.0.0.0/8",
Description = "tft1234",
Direction = "egress",
PortEnd = 9003,
PortStart = 8000,
Protocol = "tcp",
SecurityGroupId = "sg-2d6722jpp55og58ozfd1sqtdb",
});
var g1test2 = new Volcengine.Vpc.SecurityGroupRule("g1test2", new()
{
CidrIp = "10.0.0.0/24",
Direction = "egress",
PortEnd = 9003,
PortStart = 8000,
Protocol = "tcp",
SecurityGroupId = "sg-2d6722jpp55og58ozfd1sqtdb",
});
var g1test1 = new Volcengine.Vpc.SecurityGroupRule("g1test1", new()
{
CidrIp = "10.0.0.0/24",
Direction = "egress",
PortEnd = 9003,
PortStart = 8000,
Priority = 2,
Protocol = "tcp",
SecurityGroupId = "sg-2d6722jpp55og58ozfd1sqtdb",
});
var g1test0 = new Volcengine.Vpc.SecurityGroupRule("g1test0", new()
{
CidrIp = "10.0.0.0/24",
Description = "tft",
Direction = "ingress",
Policy = "drop",
PortEnd = 80,
PortStart = 80,
Priority = 2,
Protocol = "tcp",
SecurityGroupId = "sg-2d6722jpp55og58ozfd1sqtdb",
});
var g1test06 = new Volcengine.Vpc.SecurityGroupRule("g1test06", new()
{
Description = "tft",
Direction = "ingress",
Policy = "drop",
PortEnd = 9003,
PortStart = 8000,
Priority = 2,
Protocol = "tcp",
SecurityGroupId = "sg-2d6722jpp55og58ozfd1sqtdb",
SourceGroupId = "sg-3rfe5j4xdnklc5zsk2hcw5c6q",
});
});
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/vpc"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := vpc.NewSecurityGroupRule(ctx, "g1test3", &vpc.SecurityGroupRuleArgs{
CidrIp: pulumi.String("10.0.0.0/8"),
Description: pulumi.String("tft1234"),
Direction: pulumi.String("egress"),
PortEnd: pulumi.Int(9003),
PortStart: pulumi.Int(8000),
Protocol: pulumi.String("tcp"),
SecurityGroupId: pulumi.String("sg-2d6722jpp55og58ozfd1sqtdb"),
})
if err != nil {
return err
}
_, err = vpc.NewSecurityGroupRule(ctx, "g1test2", &vpc.SecurityGroupRuleArgs{
CidrIp: pulumi.String("10.0.0.0/24"),
Direction: pulumi.String("egress"),
PortEnd: pulumi.Int(9003),
PortStart: pulumi.Int(8000),
Protocol: pulumi.String("tcp"),
SecurityGroupId: pulumi.String("sg-2d6722jpp55og58ozfd1sqtdb"),
})
if err != nil {
return err
}
_, err = vpc.NewSecurityGroupRule(ctx, "g1test1", &vpc.SecurityGroupRuleArgs{
CidrIp: pulumi.String("10.0.0.0/24"),
Direction: pulumi.String("egress"),
PortEnd: pulumi.Int(9003),
PortStart: pulumi.Int(8000),
Priority: pulumi.Int(2),
Protocol: pulumi.String("tcp"),
SecurityGroupId: pulumi.String("sg-2d6722jpp55og58ozfd1sqtdb"),
})
if err != nil {
return err
}
_, err = vpc.NewSecurityGroupRule(ctx, "g1test0", &vpc.SecurityGroupRuleArgs{
CidrIp: pulumi.String("10.0.0.0/24"),
Description: pulumi.String("tft"),
Direction: pulumi.String("ingress"),
Policy: pulumi.String("drop"),
PortEnd: pulumi.Int(80),
PortStart: pulumi.Int(80),
Priority: pulumi.Int(2),
Protocol: pulumi.String("tcp"),
SecurityGroupId: pulumi.String("sg-2d6722jpp55og58ozfd1sqtdb"),
})
if err != nil {
return err
}
_, err = vpc.NewSecurityGroupRule(ctx, "g1test06", &vpc.SecurityGroupRuleArgs{
Description: pulumi.String("tft"),
Direction: pulumi.String("ingress"),
Policy: pulumi.String("drop"),
PortEnd: pulumi.Int(9003),
PortStart: pulumi.Int(8000),
Priority: pulumi.Int(2),
Protocol: pulumi.String("tcp"),
SecurityGroupId: pulumi.String("sg-2d6722jpp55og58ozfd1sqtdb"),
SourceGroupId: pulumi.String("sg-3rfe5j4xdnklc5zsk2hcw5c6q"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.volcengine.vpc.SecurityGroupRule;
import com.pulumi.volcengine.vpc.SecurityGroupRuleArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var g1test3 = new SecurityGroupRule("g1test3", SecurityGroupRuleArgs.builder()
.cidrIp("10.0.0.0/8")
.description("tft1234")
.direction("egress")
.portEnd(9003)
.portStart(8000)
.protocol("tcp")
.securityGroupId("sg-2d6722jpp55og58ozfd1sqtdb")
.build());
var g1test2 = new SecurityGroupRule("g1test2", SecurityGroupRuleArgs.builder()
.cidrIp("10.0.0.0/24")
.direction("egress")
.portEnd(9003)
.portStart(8000)
.protocol("tcp")
.securityGroupId("sg-2d6722jpp55og58ozfd1sqtdb")
.build());
var g1test1 = new SecurityGroupRule("g1test1", SecurityGroupRuleArgs.builder()
.cidrIp("10.0.0.0/24")
.direction("egress")
.portEnd(9003)
.portStart(8000)
.priority(2)
.protocol("tcp")
.securityGroupId("sg-2d6722jpp55og58ozfd1sqtdb")
.build());
var g1test0 = new SecurityGroupRule("g1test0", SecurityGroupRuleArgs.builder()
.cidrIp("10.0.0.0/24")
.description("tft")
.direction("ingress")
.policy("drop")
.portEnd(80)
.portStart(80)
.priority(2)
.protocol("tcp")
.securityGroupId("sg-2d6722jpp55og58ozfd1sqtdb")
.build());
var g1test06 = new SecurityGroupRule("g1test06", SecurityGroupRuleArgs.builder()
.description("tft")
.direction("ingress")
.policy("drop")
.portEnd(9003)
.portStart(8000)
.priority(2)
.protocol("tcp")
.securityGroupId("sg-2d6722jpp55og58ozfd1sqtdb")
.sourceGroupId("sg-3rfe5j4xdnklc5zsk2hcw5c6q")
.build());
}
}
import pulumi
import pulumi_volcengine as volcengine
g1test3 = volcengine.vpc.SecurityGroupRule("g1test3",
cidr_ip="10.0.0.0/8",
description="tft1234",
direction="egress",
port_end=9003,
port_start=8000,
protocol="tcp",
security_group_id="sg-2d6722jpp55og58ozfd1sqtdb")
g1test2 = volcengine.vpc.SecurityGroupRule("g1test2",
cidr_ip="10.0.0.0/24",
direction="egress",
port_end=9003,
port_start=8000,
protocol="tcp",
security_group_id="sg-2d6722jpp55og58ozfd1sqtdb")
g1test1 = volcengine.vpc.SecurityGroupRule("g1test1",
cidr_ip="10.0.0.0/24",
direction="egress",
port_end=9003,
port_start=8000,
priority=2,
protocol="tcp",
security_group_id="sg-2d6722jpp55og58ozfd1sqtdb")
g1test0 = volcengine.vpc.SecurityGroupRule("g1test0",
cidr_ip="10.0.0.0/24",
description="tft",
direction="ingress",
policy="drop",
port_end=80,
port_start=80,
priority=2,
protocol="tcp",
security_group_id="sg-2d6722jpp55og58ozfd1sqtdb")
g1test06 = volcengine.vpc.SecurityGroupRule("g1test06",
description="tft",
direction="ingress",
policy="drop",
port_end=9003,
port_start=8000,
priority=2,
protocol="tcp",
security_group_id="sg-2d6722jpp55og58ozfd1sqtdb",
source_group_id="sg-3rfe5j4xdnklc5zsk2hcw5c6q")
import * as pulumi from "@pulumi/pulumi";
import * as volcengine from "@volcengine/pulumi";
const g1test3 = new volcengine.vpc.SecurityGroupRule("g1test3", {
cidrIp: "10.0.0.0/8",
description: "tft1234",
direction: "egress",
portEnd: 9003,
portStart: 8000,
protocol: "tcp",
securityGroupId: "sg-2d6722jpp55og58ozfd1sqtdb",
});
const g1test2 = new volcengine.vpc.SecurityGroupRule("g1test2", {
cidrIp: "10.0.0.0/24",
direction: "egress",
portEnd: 9003,
portStart: 8000,
protocol: "tcp",
securityGroupId: "sg-2d6722jpp55og58ozfd1sqtdb",
});
const g1test1 = new volcengine.vpc.SecurityGroupRule("g1test1", {
cidrIp: "10.0.0.0/24",
direction: "egress",
portEnd: 9003,
portStart: 8000,
priority: 2,
protocol: "tcp",
securityGroupId: "sg-2d6722jpp55og58ozfd1sqtdb",
});
const g1test0 = new volcengine.vpc.SecurityGroupRule("g1test0", {
cidrIp: "10.0.0.0/24",
description: "tft",
direction: "ingress",
policy: "drop",
portEnd: 80,
portStart: 80,
priority: 2,
protocol: "tcp",
securityGroupId: "sg-2d6722jpp55og58ozfd1sqtdb",
});
const g1test06 = new volcengine.vpc.SecurityGroupRule("g1test06", {
description: "tft",
direction: "ingress",
policy: "drop",
portEnd: 9003,
portStart: 8000,
priority: 2,
protocol: "tcp",
securityGroupId: "sg-2d6722jpp55og58ozfd1sqtdb",
sourceGroupId: "sg-3rfe5j4xdnklc5zsk2hcw5c6q",
});
resources:
g1test3:
type: volcengine:vpc:SecurityGroupRule
properties:
cidrIp: 10.0.0.0/8
description: tft1234
direction: egress
portEnd: 9003
portStart: 8000
protocol: tcp
securityGroupId: sg-2d6722jpp55og58ozfd1sqtdb
g1test2:
type: volcengine:vpc:SecurityGroupRule
properties:
cidrIp: 10.0.0.0/24
direction: egress
portEnd: 9003
portStart: 8000
protocol: tcp
securityGroupId: sg-2d6722jpp55og58ozfd1sqtdb
g1test1:
type: volcengine:vpc:SecurityGroupRule
properties:
cidrIp: 10.0.0.0/24
direction: egress
portEnd: 9003
portStart: 8000
priority: 2
protocol: tcp
securityGroupId: sg-2d6722jpp55og58ozfd1sqtdb
g1test0:
type: volcengine:vpc:SecurityGroupRule
properties:
cidrIp: 10.0.0.0/24
description: tft
direction: ingress
policy: drop
portEnd: 80
portStart: 80
priority: 2
protocol: tcp
securityGroupId: sg-2d6722jpp55og58ozfd1sqtdb
g1test06:
type: volcengine:vpc:SecurityGroupRule
properties:
description: tft
direction: ingress
policy: drop
portEnd: 9003
portStart: 8000
priority: 2
protocol: tcp
securityGroupId: sg-2d6722jpp55og58ozfd1sqtdb
sourceGroupId: sg-3rfe5j4xdnklc5zsk2hcw5c6q
Create SecurityGroupRule Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new SecurityGroupRule(name: string, args: SecurityGroupRuleArgs, opts?: CustomResourceOptions);
@overload
def SecurityGroupRule(resource_name: str,
args: SecurityGroupRuleArgs,
opts: Optional[ResourceOptions] = None)
@overload
def SecurityGroupRule(resource_name: str,
opts: Optional[ResourceOptions] = None,
direction: Optional[str] = None,
port_end: Optional[int] = None,
port_start: Optional[int] = None,
protocol: Optional[str] = None,
security_group_id: Optional[str] = None,
cidr_ip: Optional[str] = None,
description: Optional[str] = None,
policy: Optional[str] = None,
priority: Optional[int] = None,
source_group_id: Optional[str] = None)
func NewSecurityGroupRule(ctx *Context, name string, args SecurityGroupRuleArgs, opts ...ResourceOption) (*SecurityGroupRule, error)
public SecurityGroupRule(string name, SecurityGroupRuleArgs args, CustomResourceOptions? opts = null)
public SecurityGroupRule(String name, SecurityGroupRuleArgs args)
public SecurityGroupRule(String name, SecurityGroupRuleArgs args, CustomResourceOptions options)
type: volcengine:vpc:SecurityGroupRule
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args SecurityGroupRuleArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args SecurityGroupRuleArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args SecurityGroupRuleArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args SecurityGroupRuleArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args SecurityGroupRuleArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var securityGroupRuleResource = new Volcengine.Vpc.SecurityGroupRule("securityGroupRuleResource", new()
{
Direction = "string",
PortEnd = 0,
PortStart = 0,
Protocol = "string",
SecurityGroupId = "string",
CidrIp = "string",
Description = "string",
Policy = "string",
Priority = 0,
SourceGroupId = "string",
});
example, err := vpc.NewSecurityGroupRule(ctx, "securityGroupRuleResource", &vpc.SecurityGroupRuleArgs{
Direction: pulumi.String("string"),
PortEnd: pulumi.Int(0),
PortStart: pulumi.Int(0),
Protocol: pulumi.String("string"),
SecurityGroupId: pulumi.String("string"),
CidrIp: pulumi.String("string"),
Description: pulumi.String("string"),
Policy: pulumi.String("string"),
Priority: pulumi.Int(0),
SourceGroupId: pulumi.String("string"),
})
var securityGroupRuleResource = new SecurityGroupRule("securityGroupRuleResource", SecurityGroupRuleArgs.builder()
.direction("string")
.portEnd(0)
.portStart(0)
.protocol("string")
.securityGroupId("string")
.cidrIp("string")
.description("string")
.policy("string")
.priority(0)
.sourceGroupId("string")
.build());
security_group_rule_resource = volcengine.vpc.SecurityGroupRule("securityGroupRuleResource",
direction="string",
port_end=0,
port_start=0,
protocol="string",
security_group_id="string",
cidr_ip="string",
description="string",
policy="string",
priority=0,
source_group_id="string")
const securityGroupRuleResource = new volcengine.vpc.SecurityGroupRule("securityGroupRuleResource", {
direction: "string",
portEnd: 0,
portStart: 0,
protocol: "string",
securityGroupId: "string",
cidrIp: "string",
description: "string",
policy: "string",
priority: 0,
sourceGroupId: "string",
});
type: volcengine:vpc:SecurityGroupRule
properties:
cidrIp: string
description: string
direction: string
policy: string
portEnd: 0
portStart: 0
priority: 0
protocol: string
securityGroupId: string
sourceGroupId: string
SecurityGroupRule Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The SecurityGroupRule resource accepts the following input properties:
- Direction string
- Direction of rule, ingress (inbound) or egress (outbound).
- Port
End int - Port end of egress/ingress Rule.
- Port
Start int - Port start of egress/ingress Rule.
- Protocol string
- Protocol of the SecurityGroup, the value can be
tcp
orudp
oricmp
orall
oricmpv6
. - Security
Group stringId - Id of SecurityGroup.
- Cidr
Ip string - Cidr ip of egress/ingress Rule.
- Description string
- description of a egress rule.
- Policy string
- Access strategy.
- Priority int
- Priority of a security group rule.
- Source
Group stringId - ID of the source security group whose access permission you want to set.
- Direction string
- Direction of rule, ingress (inbound) or egress (outbound).
- Port
End int - Port end of egress/ingress Rule.
- Port
Start int - Port start of egress/ingress Rule.
- Protocol string
- Protocol of the SecurityGroup, the value can be
tcp
orudp
oricmp
orall
oricmpv6
. - Security
Group stringId - Id of SecurityGroup.
- Cidr
Ip string - Cidr ip of egress/ingress Rule.
- Description string
- description of a egress rule.
- Policy string
- Access strategy.
- Priority int
- Priority of a security group rule.
- Source
Group stringId - ID of the source security group whose access permission you want to set.
- direction String
- Direction of rule, ingress (inbound) or egress (outbound).
- port
End Integer - Port end of egress/ingress Rule.
- port
Start Integer - Port start of egress/ingress Rule.
- protocol String
- Protocol of the SecurityGroup, the value can be
tcp
orudp
oricmp
orall
oricmpv6
. - security
Group StringId - Id of SecurityGroup.
- cidr
Ip String - Cidr ip of egress/ingress Rule.
- description String
- description of a egress rule.
- policy String
- Access strategy.
- priority Integer
- Priority of a security group rule.
- source
Group StringId - ID of the source security group whose access permission you want to set.
- direction string
- Direction of rule, ingress (inbound) or egress (outbound).
- port
End number - Port end of egress/ingress Rule.
- port
Start number - Port start of egress/ingress Rule.
- protocol string
- Protocol of the SecurityGroup, the value can be
tcp
orudp
oricmp
orall
oricmpv6
. - security
Group stringId - Id of SecurityGroup.
- cidr
Ip string - Cidr ip of egress/ingress Rule.
- description string
- description of a egress rule.
- policy string
- Access strategy.
- priority number
- Priority of a security group rule.
- source
Group stringId - ID of the source security group whose access permission you want to set.
- direction str
- Direction of rule, ingress (inbound) or egress (outbound).
- port_
end int - Port end of egress/ingress Rule.
- port_
start int - Port start of egress/ingress Rule.
- protocol str
- Protocol of the SecurityGroup, the value can be
tcp
orudp
oricmp
orall
oricmpv6
. - security_
group_ strid - Id of SecurityGroup.
- cidr_
ip str - Cidr ip of egress/ingress Rule.
- description str
- description of a egress rule.
- policy str
- Access strategy.
- priority int
- Priority of a security group rule.
- source_
group_ strid - ID of the source security group whose access permission you want to set.
- direction String
- Direction of rule, ingress (inbound) or egress (outbound).
- port
End Number - Port end of egress/ingress Rule.
- port
Start Number - Port start of egress/ingress Rule.
- protocol String
- Protocol of the SecurityGroup, the value can be
tcp
orudp
oricmp
orall
oricmpv6
. - security
Group StringId - Id of SecurityGroup.
- cidr
Ip String - Cidr ip of egress/ingress Rule.
- description String
- description of a egress rule.
- policy String
- Access strategy.
- priority Number
- Priority of a security group rule.
- source
Group StringId - ID of the source security group whose access permission you want to set.
Outputs
All input properties are implicitly available as output properties. Additionally, the SecurityGroupRule resource produces the following output properties:
Look up Existing SecurityGroupRule Resource
Get an existing SecurityGroupRule resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: SecurityGroupRuleState, opts?: CustomResourceOptions): SecurityGroupRule
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
cidr_ip: Optional[str] = None,
description: Optional[str] = None,
direction: Optional[str] = None,
policy: Optional[str] = None,
port_end: Optional[int] = None,
port_start: Optional[int] = None,
priority: Optional[int] = None,
protocol: Optional[str] = None,
security_group_id: Optional[str] = None,
source_group_id: Optional[str] = None,
status: Optional[str] = None) -> SecurityGroupRule
func GetSecurityGroupRule(ctx *Context, name string, id IDInput, state *SecurityGroupRuleState, opts ...ResourceOption) (*SecurityGroupRule, error)
public static SecurityGroupRule Get(string name, Input<string> id, SecurityGroupRuleState? state, CustomResourceOptions? opts = null)
public static SecurityGroupRule get(String name, Output<String> id, SecurityGroupRuleState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Cidr
Ip string - Cidr ip of egress/ingress Rule.
- Description string
- description of a egress rule.
- Direction string
- Direction of rule, ingress (inbound) or egress (outbound).
- Policy string
- Access strategy.
- Port
End int - Port end of egress/ingress Rule.
- Port
Start int - Port start of egress/ingress Rule.
- Priority int
- Priority of a security group rule.
- Protocol string
- Protocol of the SecurityGroup, the value can be
tcp
orudp
oricmp
orall
oricmpv6
. - Security
Group stringId - Id of SecurityGroup.
- Source
Group stringId - ID of the source security group whose access permission you want to set.
- Status string
- Status of SecurityGroup.
- Cidr
Ip string - Cidr ip of egress/ingress Rule.
- Description string
- description of a egress rule.
- Direction string
- Direction of rule, ingress (inbound) or egress (outbound).
- Policy string
- Access strategy.
- Port
End int - Port end of egress/ingress Rule.
- Port
Start int - Port start of egress/ingress Rule.
- Priority int
- Priority of a security group rule.
- Protocol string
- Protocol of the SecurityGroup, the value can be
tcp
orudp
oricmp
orall
oricmpv6
. - Security
Group stringId - Id of SecurityGroup.
- Source
Group stringId - ID of the source security group whose access permission you want to set.
- Status string
- Status of SecurityGroup.
- cidr
Ip String - Cidr ip of egress/ingress Rule.
- description String
- description of a egress rule.
- direction String
- Direction of rule, ingress (inbound) or egress (outbound).
- policy String
- Access strategy.
- port
End Integer - Port end of egress/ingress Rule.
- port
Start Integer - Port start of egress/ingress Rule.
- priority Integer
- Priority of a security group rule.
- protocol String
- Protocol of the SecurityGroup, the value can be
tcp
orudp
oricmp
orall
oricmpv6
. - security
Group StringId - Id of SecurityGroup.
- source
Group StringId - ID of the source security group whose access permission you want to set.
- status String
- Status of SecurityGroup.
- cidr
Ip string - Cidr ip of egress/ingress Rule.
- description string
- description of a egress rule.
- direction string
- Direction of rule, ingress (inbound) or egress (outbound).
- policy string
- Access strategy.
- port
End number - Port end of egress/ingress Rule.
- port
Start number - Port start of egress/ingress Rule.
- priority number
- Priority of a security group rule.
- protocol string
- Protocol of the SecurityGroup, the value can be
tcp
orudp
oricmp
orall
oricmpv6
. - security
Group stringId - Id of SecurityGroup.
- source
Group stringId - ID of the source security group whose access permission you want to set.
- status string
- Status of SecurityGroup.
- cidr_
ip str - Cidr ip of egress/ingress Rule.
- description str
- description of a egress rule.
- direction str
- Direction of rule, ingress (inbound) or egress (outbound).
- policy str
- Access strategy.
- port_
end int - Port end of egress/ingress Rule.
- port_
start int - Port start of egress/ingress Rule.
- priority int
- Priority of a security group rule.
- protocol str
- Protocol of the SecurityGroup, the value can be
tcp
orudp
oricmp
orall
oricmpv6
. - security_
group_ strid - Id of SecurityGroup.
- source_
group_ strid - ID of the source security group whose access permission you want to set.
- status str
- Status of SecurityGroup.
- cidr
Ip String - Cidr ip of egress/ingress Rule.
- description String
- description of a egress rule.
- direction String
- Direction of rule, ingress (inbound) or egress (outbound).
- policy String
- Access strategy.
- port
End Number - Port end of egress/ingress Rule.
- port
Start Number - Port start of egress/ingress Rule.
- priority Number
- Priority of a security group rule.
- protocol String
- Protocol of the SecurityGroup, the value can be
tcp
orudp
oricmp
orall
oricmpv6
. - security
Group StringId - Id of SecurityGroup.
- source
Group StringId - ID of the source security group whose access permission you want to set.
- status String
- Status of SecurityGroup.
Import
SecurityGroupRule can be imported using the id, e.g.
$ pulumi import volcengine:vpc/securityGroupRule:SecurityGroupRule default ID is a string concatenated with colons(SecurityGroupId:Protocol:PortStart:PortEnd:CidrIp:SourceGroupId:Direction:Policy:Priority)
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- volcengine volcengine/pulumi-volcengine
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
volcengine
Terraform Provider.