nsxt.VpcSecurityPolicy
Explore with Pulumi AI
Create VpcSecurityPolicy Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new VpcSecurityPolicy(name: string, args: VpcSecurityPolicyArgs, opts?: CustomResourceOptions);
@overload
def VpcSecurityPolicy(resource_name: str,
args: VpcSecurityPolicyArgs,
opts: Optional[ResourceOptions] = None)
@overload
def VpcSecurityPolicy(resource_name: str,
opts: Optional[ResourceOptions] = None,
display_name: Optional[str] = None,
context: Optional[VpcSecurityPolicyContextArgs] = None,
rules: Optional[Sequence[VpcSecurityPolicyRuleArgs]] = None,
description: Optional[str] = None,
locked: Optional[bool] = None,
nsx_id: Optional[str] = None,
comments: Optional[str] = None,
scopes: Optional[Sequence[str]] = None,
sequence_number: Optional[float] = None,
stateful: Optional[bool] = None,
tags: Optional[Sequence[VpcSecurityPolicyTagArgs]] = None,
tcp_strict: Optional[bool] = None,
vpc_security_policy_id: Optional[str] = None)
func NewVpcSecurityPolicy(ctx *Context, name string, args VpcSecurityPolicyArgs, opts ...ResourceOption) (*VpcSecurityPolicy, error)
public VpcSecurityPolicy(string name, VpcSecurityPolicyArgs args, CustomResourceOptions? opts = null)
public VpcSecurityPolicy(String name, VpcSecurityPolicyArgs args)
public VpcSecurityPolicy(String name, VpcSecurityPolicyArgs args, CustomResourceOptions options)
type: nsxt:VpcSecurityPolicy
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 VpcSecurityPolicyArgs
- 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 VpcSecurityPolicyArgs
- 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 VpcSecurityPolicyArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args VpcSecurityPolicyArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args VpcSecurityPolicyArgs
- 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 vpcSecurityPolicyResource = new Nsxt.VpcSecurityPolicy("vpcSecurityPolicyResource", new()
{
DisplayName = "string",
Context = new Nsxt.Inputs.VpcSecurityPolicyContextArgs
{
ProjectId = "string",
VpcId = "string",
},
Rules = new[]
{
new Nsxt.Inputs.VpcSecurityPolicyRuleArgs
{
DisplayName = "string",
Notes = "string",
Path = "string",
DestinationsExcluded = false,
Direction = "string",
Disabled = false,
Description = "string",
IpVersion = "string",
LogLabel = "string",
Logged = false,
Action = "string",
DestinationGroups = new[]
{
"string",
},
Profiles = new[]
{
"string",
},
NsxId = "string",
Revision = 0,
RuleId = 0,
Scopes = new[]
{
"string",
},
SequenceNumber = 0,
Services = new[]
{
"string",
},
SourceGroups = new[]
{
"string",
},
SourcesExcluded = false,
Tags = new[]
{
new Nsxt.Inputs.VpcSecurityPolicyRuleTagArgs
{
Scope = "string",
Tag = "string",
},
},
},
},
Description = "string",
Locked = false,
NsxId = "string",
Comments = "string",
Scopes = new[]
{
"string",
},
SequenceNumber = 0,
Stateful = false,
Tags = new[]
{
new Nsxt.Inputs.VpcSecurityPolicyTagArgs
{
Scope = "string",
Tag = "string",
},
},
TcpStrict = false,
VpcSecurityPolicyId = "string",
});
example, err := nsxt.NewVpcSecurityPolicy(ctx, "vpcSecurityPolicyResource", &nsxt.VpcSecurityPolicyArgs{
DisplayName: pulumi.String("string"),
Context: &nsxt.VpcSecurityPolicyContextArgs{
ProjectId: pulumi.String("string"),
VpcId: pulumi.String("string"),
},
Rules: nsxt.VpcSecurityPolicyRuleArray{
&nsxt.VpcSecurityPolicyRuleArgs{
DisplayName: pulumi.String("string"),
Notes: pulumi.String("string"),
Path: pulumi.String("string"),
DestinationsExcluded: pulumi.Bool(false),
Direction: pulumi.String("string"),
Disabled: pulumi.Bool(false),
Description: pulumi.String("string"),
IpVersion: pulumi.String("string"),
LogLabel: pulumi.String("string"),
Logged: pulumi.Bool(false),
Action: pulumi.String("string"),
DestinationGroups: pulumi.StringArray{
pulumi.String("string"),
},
Profiles: pulumi.StringArray{
pulumi.String("string"),
},
NsxId: pulumi.String("string"),
Revision: pulumi.Float64(0),
RuleId: pulumi.Float64(0),
Scopes: pulumi.StringArray{
pulumi.String("string"),
},
SequenceNumber: pulumi.Float64(0),
Services: pulumi.StringArray{
pulumi.String("string"),
},
SourceGroups: pulumi.StringArray{
pulumi.String("string"),
},
SourcesExcluded: pulumi.Bool(false),
Tags: nsxt.VpcSecurityPolicyRuleTagArray{
&nsxt.VpcSecurityPolicyRuleTagArgs{
Scope: pulumi.String("string"),
Tag: pulumi.String("string"),
},
},
},
},
Description: pulumi.String("string"),
Locked: pulumi.Bool(false),
NsxId: pulumi.String("string"),
Comments: pulumi.String("string"),
Scopes: pulumi.StringArray{
pulumi.String("string"),
},
SequenceNumber: pulumi.Float64(0),
Stateful: pulumi.Bool(false),
Tags: nsxt.VpcSecurityPolicyTagArray{
&nsxt.VpcSecurityPolicyTagArgs{
Scope: pulumi.String("string"),
Tag: pulumi.String("string"),
},
},
TcpStrict: pulumi.Bool(false),
VpcSecurityPolicyId: pulumi.String("string"),
})
var vpcSecurityPolicyResource = new VpcSecurityPolicy("vpcSecurityPolicyResource", VpcSecurityPolicyArgs.builder()
.displayName("string")
.context(VpcSecurityPolicyContextArgs.builder()
.projectId("string")
.vpcId("string")
.build())
.rules(VpcSecurityPolicyRuleArgs.builder()
.displayName("string")
.notes("string")
.path("string")
.destinationsExcluded(false)
.direction("string")
.disabled(false)
.description("string")
.ipVersion("string")
.logLabel("string")
.logged(false)
.action("string")
.destinationGroups("string")
.profiles("string")
.nsxId("string")
.revision(0)
.ruleId(0)
.scopes("string")
.sequenceNumber(0)
.services("string")
.sourceGroups("string")
.sourcesExcluded(false)
.tags(VpcSecurityPolicyRuleTagArgs.builder()
.scope("string")
.tag("string")
.build())
.build())
.description("string")
.locked(false)
.nsxId("string")
.comments("string")
.scopes("string")
.sequenceNumber(0)
.stateful(false)
.tags(VpcSecurityPolicyTagArgs.builder()
.scope("string")
.tag("string")
.build())
.tcpStrict(false)
.vpcSecurityPolicyId("string")
.build());
vpc_security_policy_resource = nsxt.VpcSecurityPolicy("vpcSecurityPolicyResource",
display_name="string",
context={
"project_id": "string",
"vpc_id": "string",
},
rules=[{
"display_name": "string",
"notes": "string",
"path": "string",
"destinations_excluded": False,
"direction": "string",
"disabled": False,
"description": "string",
"ip_version": "string",
"log_label": "string",
"logged": False,
"action": "string",
"destination_groups": ["string"],
"profiles": ["string"],
"nsx_id": "string",
"revision": 0,
"rule_id": 0,
"scopes": ["string"],
"sequence_number": 0,
"services": ["string"],
"source_groups": ["string"],
"sources_excluded": False,
"tags": [{
"scope": "string",
"tag": "string",
}],
}],
description="string",
locked=False,
nsx_id="string",
comments="string",
scopes=["string"],
sequence_number=0,
stateful=False,
tags=[{
"scope": "string",
"tag": "string",
}],
tcp_strict=False,
vpc_security_policy_id="string")
const vpcSecurityPolicyResource = new nsxt.VpcSecurityPolicy("vpcSecurityPolicyResource", {
displayName: "string",
context: {
projectId: "string",
vpcId: "string",
},
rules: [{
displayName: "string",
notes: "string",
path: "string",
destinationsExcluded: false,
direction: "string",
disabled: false,
description: "string",
ipVersion: "string",
logLabel: "string",
logged: false,
action: "string",
destinationGroups: ["string"],
profiles: ["string"],
nsxId: "string",
revision: 0,
ruleId: 0,
scopes: ["string"],
sequenceNumber: 0,
services: ["string"],
sourceGroups: ["string"],
sourcesExcluded: false,
tags: [{
scope: "string",
tag: "string",
}],
}],
description: "string",
locked: false,
nsxId: "string",
comments: "string",
scopes: ["string"],
sequenceNumber: 0,
stateful: false,
tags: [{
scope: "string",
tag: "string",
}],
tcpStrict: false,
vpcSecurityPolicyId: "string",
});
type: nsxt:VpcSecurityPolicy
properties:
comments: string
context:
projectId: string
vpcId: string
description: string
displayName: string
locked: false
nsxId: string
rules:
- action: string
description: string
destinationGroups:
- string
destinationsExcluded: false
direction: string
disabled: false
displayName: string
ipVersion: string
logLabel: string
logged: false
notes: string
nsxId: string
path: string
profiles:
- string
revision: 0
ruleId: 0
scopes:
- string
sequenceNumber: 0
services:
- string
sourceGroups:
- string
sourcesExcluded: false
tags:
- scope: string
tag: string
scopes:
- string
sequenceNumber: 0
stateful: false
tags:
- scope: string
tag: string
tcpStrict: false
vpcSecurityPolicyId: string
VpcSecurityPolicy 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 VpcSecurityPolicy resource accepts the following input properties:
- Context
Vpc
Security Policy Context - The context which the object belongs to
- Display
Name string - Display name of the resource.
- Comments string
- Comments for security policy lock/unlock.
- Description string
- Description of the resource.
- Locked bool
- Indicates whether a security policy should be locked. If locked by a user, no other user would be able to modify this policy.
- Nsx
Id string - The NSX ID of this resource. If set, this ID will be used to create the resource.
- Rules
List<Vpc
Security Policy Rule> - A repeatable block to specify rules for the Security Policy. Each rule includes the following fields:
- Scopes List<string>
- The list of policy object paths where the rules in this policy will get applied.
- Sequence
Number double - This field is used to resolve conflicts between security policies.
- Stateful bool
- If true, state of the network connects are tracked and a stateful packet inspection is performed. Default is true.
- List<Vpc
Security Policy Tag> - A list of scope + tag pairs to associate with this policy.
- Tcp
Strict bool - Ensures that a 3 way TCP handshake is done before the data packets are sent. Default is false.
- Vpc
Security stringPolicy Id - ID of the Security Policy.
- Context
Vpc
Security Policy Context Args - The context which the object belongs to
- Display
Name string - Display name of the resource.
- Comments string
- Comments for security policy lock/unlock.
- Description string
- Description of the resource.
- Locked bool
- Indicates whether a security policy should be locked. If locked by a user, no other user would be able to modify this policy.
- Nsx
Id string - The NSX ID of this resource. If set, this ID will be used to create the resource.
- Rules
[]Vpc
Security Policy Rule Args - A repeatable block to specify rules for the Security Policy. Each rule includes the following fields:
- Scopes []string
- The list of policy object paths where the rules in this policy will get applied.
- Sequence
Number float64 - This field is used to resolve conflicts between security policies.
- Stateful bool
- If true, state of the network connects are tracked and a stateful packet inspection is performed. Default is true.
- []Vpc
Security Policy Tag Args - A list of scope + tag pairs to associate with this policy.
- Tcp
Strict bool - Ensures that a 3 way TCP handshake is done before the data packets are sent. Default is false.
- Vpc
Security stringPolicy Id - ID of the Security Policy.
- context
Vpc
Security Policy Context - The context which the object belongs to
- display
Name String - Display name of the resource.
- comments String
- Comments for security policy lock/unlock.
- description String
- Description of the resource.
- locked Boolean
- Indicates whether a security policy should be locked. If locked by a user, no other user would be able to modify this policy.
- nsx
Id String - The NSX ID of this resource. If set, this ID will be used to create the resource.
- rules
List<Vpc
Security Policy Rule> - A repeatable block to specify rules for the Security Policy. Each rule includes the following fields:
- scopes List<String>
- The list of policy object paths where the rules in this policy will get applied.
- sequence
Number Double - This field is used to resolve conflicts between security policies.
- stateful Boolean
- If true, state of the network connects are tracked and a stateful packet inspection is performed. Default is true.
- List<Vpc
Security Policy Tag> - A list of scope + tag pairs to associate with this policy.
- tcp
Strict Boolean - Ensures that a 3 way TCP handshake is done before the data packets are sent. Default is false.
- vpc
Security StringPolicy Id - ID of the Security Policy.
- context
Vpc
Security Policy Context - The context which the object belongs to
- display
Name string - Display name of the resource.
- comments string
- Comments for security policy lock/unlock.
- description string
- Description of the resource.
- locked boolean
- Indicates whether a security policy should be locked. If locked by a user, no other user would be able to modify this policy.
- nsx
Id string - The NSX ID of this resource. If set, this ID will be used to create the resource.
- rules
Vpc
Security Policy Rule[] - A repeatable block to specify rules for the Security Policy. Each rule includes the following fields:
- scopes string[]
- The list of policy object paths where the rules in this policy will get applied.
- sequence
Number number - This field is used to resolve conflicts between security policies.
- stateful boolean
- If true, state of the network connects are tracked and a stateful packet inspection is performed. Default is true.
- Vpc
Security Policy Tag[] - A list of scope + tag pairs to associate with this policy.
- tcp
Strict boolean - Ensures that a 3 way TCP handshake is done before the data packets are sent. Default is false.
- vpc
Security stringPolicy Id - ID of the Security Policy.
- context
Vpc
Security Policy Context Args - The context which the object belongs to
- display_
name str - Display name of the resource.
- comments str
- Comments for security policy lock/unlock.
- description str
- Description of the resource.
- locked bool
- Indicates whether a security policy should be locked. If locked by a user, no other user would be able to modify this policy.
- nsx_
id str - The NSX ID of this resource. If set, this ID will be used to create the resource.
- rules
Sequence[Vpc
Security Policy Rule Args] - A repeatable block to specify rules for the Security Policy. Each rule includes the following fields:
- scopes Sequence[str]
- The list of policy object paths where the rules in this policy will get applied.
- sequence_
number float - This field is used to resolve conflicts between security policies.
- stateful bool
- If true, state of the network connects are tracked and a stateful packet inspection is performed. Default is true.
- Sequence[Vpc
Security Policy Tag Args] - A list of scope + tag pairs to associate with this policy.
- tcp_
strict bool - Ensures that a 3 way TCP handshake is done before the data packets are sent. Default is false.
- vpc_
security_ strpolicy_ id - ID of the Security Policy.
- context Property Map
- The context which the object belongs to
- display
Name String - Display name of the resource.
- comments String
- Comments for security policy lock/unlock.
- description String
- Description of the resource.
- locked Boolean
- Indicates whether a security policy should be locked. If locked by a user, no other user would be able to modify this policy.
- nsx
Id String - The NSX ID of this resource. If set, this ID will be used to create the resource.
- rules List<Property Map>
- A repeatable block to specify rules for the Security Policy. Each rule includes the following fields:
- scopes List<String>
- The list of policy object paths where the rules in this policy will get applied.
- sequence
Number Number - This field is used to resolve conflicts between security policies.
- stateful Boolean
- If true, state of the network connects are tracked and a stateful packet inspection is performed. Default is true.
- List<Property Map>
- A list of scope + tag pairs to associate with this policy.
- tcp
Strict Boolean - Ensures that a 3 way TCP handshake is done before the data packets are sent. Default is false.
- vpc
Security StringPolicy Id - ID of the Security Policy.
Outputs
All input properties are implicitly available as output properties. Additionally, the VpcSecurityPolicy resource produces the following output properties:
Look up Existing VpcSecurityPolicy Resource
Get an existing VpcSecurityPolicy 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?: VpcSecurityPolicyState, opts?: CustomResourceOptions): VpcSecurityPolicy
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
comments: Optional[str] = None,
context: Optional[VpcSecurityPolicyContextArgs] = None,
description: Optional[str] = None,
display_name: Optional[str] = None,
locked: Optional[bool] = None,
nsx_id: Optional[str] = None,
path: Optional[str] = None,
revision: Optional[float] = None,
rules: Optional[Sequence[VpcSecurityPolicyRuleArgs]] = None,
scopes: Optional[Sequence[str]] = None,
sequence_number: Optional[float] = None,
stateful: Optional[bool] = None,
tags: Optional[Sequence[VpcSecurityPolicyTagArgs]] = None,
tcp_strict: Optional[bool] = None,
vpc_security_policy_id: Optional[str] = None) -> VpcSecurityPolicy
func GetVpcSecurityPolicy(ctx *Context, name string, id IDInput, state *VpcSecurityPolicyState, opts ...ResourceOption) (*VpcSecurityPolicy, error)
public static VpcSecurityPolicy Get(string name, Input<string> id, VpcSecurityPolicyState? state, CustomResourceOptions? opts = null)
public static VpcSecurityPolicy get(String name, Output<String> id, VpcSecurityPolicyState state, CustomResourceOptions options)
resources: _: type: nsxt:VpcSecurityPolicy get: id: ${id}
- 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.
- Comments string
- Comments for security policy lock/unlock.
- Context
Vpc
Security Policy Context - The context which the object belongs to
- Description string
- Description of the resource.
- Display
Name string - Display name of the resource.
- Locked bool
- Indicates whether a security policy should be locked. If locked by a user, no other user would be able to modify this policy.
- Nsx
Id string - The NSX ID of this resource. If set, this ID will be used to create the resource.
- Path string
- The NSX path of the policy resource.
- Revision double
- Indicates current revision number of the object as seen by NSX-T API server. This attribute can be useful for debugging.
- Rules
List<Vpc
Security Policy Rule> - A repeatable block to specify rules for the Security Policy. Each rule includes the following fields:
- Scopes List<string>
- The list of policy object paths where the rules in this policy will get applied.
- Sequence
Number double - This field is used to resolve conflicts between security policies.
- Stateful bool
- If true, state of the network connects are tracked and a stateful packet inspection is performed. Default is true.
- List<Vpc
Security Policy Tag> - A list of scope + tag pairs to associate with this policy.
- Tcp
Strict bool - Ensures that a 3 way TCP handshake is done before the data packets are sent. Default is false.
- Vpc
Security stringPolicy Id - ID of the Security Policy.
- Comments string
- Comments for security policy lock/unlock.
- Context
Vpc
Security Policy Context Args - The context which the object belongs to
- Description string
- Description of the resource.
- Display
Name string - Display name of the resource.
- Locked bool
- Indicates whether a security policy should be locked. If locked by a user, no other user would be able to modify this policy.
- Nsx
Id string - The NSX ID of this resource. If set, this ID will be used to create the resource.
- Path string
- The NSX path of the policy resource.
- Revision float64
- Indicates current revision number of the object as seen by NSX-T API server. This attribute can be useful for debugging.
- Rules
[]Vpc
Security Policy Rule Args - A repeatable block to specify rules for the Security Policy. Each rule includes the following fields:
- Scopes []string
- The list of policy object paths where the rules in this policy will get applied.
- Sequence
Number float64 - This field is used to resolve conflicts between security policies.
- Stateful bool
- If true, state of the network connects are tracked and a stateful packet inspection is performed. Default is true.
- []Vpc
Security Policy Tag Args - A list of scope + tag pairs to associate with this policy.
- Tcp
Strict bool - Ensures that a 3 way TCP handshake is done before the data packets are sent. Default is false.
- Vpc
Security stringPolicy Id - ID of the Security Policy.
- comments String
- Comments for security policy lock/unlock.
- context
Vpc
Security Policy Context - The context which the object belongs to
- description String
- Description of the resource.
- display
Name String - Display name of the resource.
- locked Boolean
- Indicates whether a security policy should be locked. If locked by a user, no other user would be able to modify this policy.
- nsx
Id String - The NSX ID of this resource. If set, this ID will be used to create the resource.
- path String
- The NSX path of the policy resource.
- revision Double
- Indicates current revision number of the object as seen by NSX-T API server. This attribute can be useful for debugging.
- rules
List<Vpc
Security Policy Rule> - A repeatable block to specify rules for the Security Policy. Each rule includes the following fields:
- scopes List<String>
- The list of policy object paths where the rules in this policy will get applied.
- sequence
Number Double - This field is used to resolve conflicts between security policies.
- stateful Boolean
- If true, state of the network connects are tracked and a stateful packet inspection is performed. Default is true.
- List<Vpc
Security Policy Tag> - A list of scope + tag pairs to associate with this policy.
- tcp
Strict Boolean - Ensures that a 3 way TCP handshake is done before the data packets are sent. Default is false.
- vpc
Security StringPolicy Id - ID of the Security Policy.
- comments string
- Comments for security policy lock/unlock.
- context
Vpc
Security Policy Context - The context which the object belongs to
- description string
- Description of the resource.
- display
Name string - Display name of the resource.
- locked boolean
- Indicates whether a security policy should be locked. If locked by a user, no other user would be able to modify this policy.
- nsx
Id string - The NSX ID of this resource. If set, this ID will be used to create the resource.
- path string
- The NSX path of the policy resource.
- revision number
- Indicates current revision number of the object as seen by NSX-T API server. This attribute can be useful for debugging.
- rules
Vpc
Security Policy Rule[] - A repeatable block to specify rules for the Security Policy. Each rule includes the following fields:
- scopes string[]
- The list of policy object paths where the rules in this policy will get applied.
- sequence
Number number - This field is used to resolve conflicts between security policies.
- stateful boolean
- If true, state of the network connects are tracked and a stateful packet inspection is performed. Default is true.
- Vpc
Security Policy Tag[] - A list of scope + tag pairs to associate with this policy.
- tcp
Strict boolean - Ensures that a 3 way TCP handshake is done before the data packets are sent. Default is false.
- vpc
Security stringPolicy Id - ID of the Security Policy.
- comments str
- Comments for security policy lock/unlock.
- context
Vpc
Security Policy Context Args - The context which the object belongs to
- description str
- Description of the resource.
- display_
name str - Display name of the resource.
- locked bool
- Indicates whether a security policy should be locked. If locked by a user, no other user would be able to modify this policy.
- nsx_
id str - The NSX ID of this resource. If set, this ID will be used to create the resource.
- path str
- The NSX path of the policy resource.
- revision float
- Indicates current revision number of the object as seen by NSX-T API server. This attribute can be useful for debugging.
- rules
Sequence[Vpc
Security Policy Rule Args] - A repeatable block to specify rules for the Security Policy. Each rule includes the following fields:
- scopes Sequence[str]
- The list of policy object paths where the rules in this policy will get applied.
- sequence_
number float - This field is used to resolve conflicts between security policies.
- stateful bool
- If true, state of the network connects are tracked and a stateful packet inspection is performed. Default is true.
- Sequence[Vpc
Security Policy Tag Args] - A list of scope + tag pairs to associate with this policy.
- tcp_
strict bool - Ensures that a 3 way TCP handshake is done before the data packets are sent. Default is false.
- vpc_
security_ strpolicy_ id - ID of the Security Policy.
- comments String
- Comments for security policy lock/unlock.
- context Property Map
- The context which the object belongs to
- description String
- Description of the resource.
- display
Name String - Display name of the resource.
- locked Boolean
- Indicates whether a security policy should be locked. If locked by a user, no other user would be able to modify this policy.
- nsx
Id String - The NSX ID of this resource. If set, this ID will be used to create the resource.
- path String
- The NSX path of the policy resource.
- revision Number
- Indicates current revision number of the object as seen by NSX-T API server. This attribute can be useful for debugging.
- rules List<Property Map>
- A repeatable block to specify rules for the Security Policy. Each rule includes the following fields:
- scopes List<String>
- The list of policy object paths where the rules in this policy will get applied.
- sequence
Number Number - This field is used to resolve conflicts between security policies.
- stateful Boolean
- If true, state of the network connects are tracked and a stateful packet inspection is performed. Default is true.
- List<Property Map>
- A list of scope + tag pairs to associate with this policy.
- tcp
Strict Boolean - Ensures that a 3 way TCP handshake is done before the data packets are sent. Default is false.
- vpc
Security StringPolicy Id - ID of the Security Policy.
Supporting Types
VpcSecurityPolicyContext, VpcSecurityPolicyContextArgs
- project_
id str - The ID of the project which the object belongs to
- vpc_
id str - The ID of the VPC which the object belongs to
VpcSecurityPolicyRule, VpcSecurityPolicyRuleArgs
- Display
Name string - Display name of the resource.
- Action string
- Rule action, one of
ALLOW
,DROP
andREJECT
. Default isALLOW
.. - Description string
- Description of the resource.
- Destination
Groups List<string> - Set of group paths that serve as the destination for this rule. IPs, IP ranges, or CIDRs may also be used starting in NSX-T 3.0. An empty set can be used to specify "Any".
- Destinations
Excluded bool - A boolean value indicating negation of destination groups.
- Direction string
- Traffic direction, one of
IN
,OUT
orIN_OUT
. Default isIN_OUT
. - Disabled bool
- Flag to disable this rule. Default is false.
- Ip
Version string - Version of IP protocol, one of
NONE
,IPV4
,IPV6
,IPV4_IPV6
. Default isIPV4_IPV6
. - Log
Label string - Additional information (string) which will be propagated to the rule syslog.
- Logged bool
- Flag to enable packet logging. Default is false.
- Notes string
- Additional notes on changes.
- Nsx
Id string - The NSX ID of this resource. If set, this ID will be used to create the resource.
- Path string
- The NSX path of the policy resource.
- Profiles List<string>
- Set of profile paths relevant for this rule.
- Revision double
- Indicates current revision number of the object as seen by NSX-T API server. This attribute can be useful for debugging.
- Rule
Id double - Unique positive number that is assigned by the system and is useful for debugging.
- Scopes List<string>
- Set of policy object paths where the rule is applied.
- Sequence
Number double - It is recommended not to specify sequence number for rules, and rely on provider to auto-assign them. If you choose to specify sequence numbers, you must make sure the numbers are consistent with order of the rules in configuration. Please note that sequence numbers should start with 1 and not 0. To avoid confusion, either specify sequence numbers in all rules, or none at all.
- Services List<string>
- Set of service paths to match.
- Source
Groups List<string> - Set of group paths that serve as the source for this rule. IPs, IP ranges, or CIDRs may also be used starting in NSX-T 3.0. An empty set can be used to specify "Any".
- Sources
Excluded bool - A boolean value indicating negation of source groups.
- List<Vpc
Security Policy Rule Tag> - A list of scope + tag pairs to associate with this Rule.
- Display
Name string - Display name of the resource.
- Action string
- Rule action, one of
ALLOW
,DROP
andREJECT
. Default isALLOW
.. - Description string
- Description of the resource.
- Destination
Groups []string - Set of group paths that serve as the destination for this rule. IPs, IP ranges, or CIDRs may also be used starting in NSX-T 3.0. An empty set can be used to specify "Any".
- Destinations
Excluded bool - A boolean value indicating negation of destination groups.
- Direction string
- Traffic direction, one of
IN
,OUT
orIN_OUT
. Default isIN_OUT
. - Disabled bool
- Flag to disable this rule. Default is false.
- Ip
Version string - Version of IP protocol, one of
NONE
,IPV4
,IPV6
,IPV4_IPV6
. Default isIPV4_IPV6
. - Log
Label string - Additional information (string) which will be propagated to the rule syslog.
- Logged bool
- Flag to enable packet logging. Default is false.
- Notes string
- Additional notes on changes.
- Nsx
Id string - The NSX ID of this resource. If set, this ID will be used to create the resource.
- Path string
- The NSX path of the policy resource.
- Profiles []string
- Set of profile paths relevant for this rule.
- Revision float64
- Indicates current revision number of the object as seen by NSX-T API server. This attribute can be useful for debugging.
- Rule
Id float64 - Unique positive number that is assigned by the system and is useful for debugging.
- Scopes []string
- Set of policy object paths where the rule is applied.
- Sequence
Number float64 - It is recommended not to specify sequence number for rules, and rely on provider to auto-assign them. If you choose to specify sequence numbers, you must make sure the numbers are consistent with order of the rules in configuration. Please note that sequence numbers should start with 1 and not 0. To avoid confusion, either specify sequence numbers in all rules, or none at all.
- Services []string
- Set of service paths to match.
- Source
Groups []string - Set of group paths that serve as the source for this rule. IPs, IP ranges, or CIDRs may also be used starting in NSX-T 3.0. An empty set can be used to specify "Any".
- Sources
Excluded bool - A boolean value indicating negation of source groups.
- []Vpc
Security Policy Rule Tag - A list of scope + tag pairs to associate with this Rule.
- display
Name String - Display name of the resource.
- action String
- Rule action, one of
ALLOW
,DROP
andREJECT
. Default isALLOW
.. - description String
- Description of the resource.
- destination
Groups List<String> - Set of group paths that serve as the destination for this rule. IPs, IP ranges, or CIDRs may also be used starting in NSX-T 3.0. An empty set can be used to specify "Any".
- destinations
Excluded Boolean - A boolean value indicating negation of destination groups.
- direction String
- Traffic direction, one of
IN
,OUT
orIN_OUT
. Default isIN_OUT
. - disabled Boolean
- Flag to disable this rule. Default is false.
- ip
Version String - Version of IP protocol, one of
NONE
,IPV4
,IPV6
,IPV4_IPV6
. Default isIPV4_IPV6
. - log
Label String - Additional information (string) which will be propagated to the rule syslog.
- logged Boolean
- Flag to enable packet logging. Default is false.
- notes String
- Additional notes on changes.
- nsx
Id String - The NSX ID of this resource. If set, this ID will be used to create the resource.
- path String
- The NSX path of the policy resource.
- profiles List<String>
- Set of profile paths relevant for this rule.
- revision Double
- Indicates current revision number of the object as seen by NSX-T API server. This attribute can be useful for debugging.
- rule
Id Double - Unique positive number that is assigned by the system and is useful for debugging.
- scopes List<String>
- Set of policy object paths where the rule is applied.
- sequence
Number Double - It is recommended not to specify sequence number for rules, and rely on provider to auto-assign them. If you choose to specify sequence numbers, you must make sure the numbers are consistent with order of the rules in configuration. Please note that sequence numbers should start with 1 and not 0. To avoid confusion, either specify sequence numbers in all rules, or none at all.
- services List<String>
- Set of service paths to match.
- source
Groups List<String> - Set of group paths that serve as the source for this rule. IPs, IP ranges, or CIDRs may also be used starting in NSX-T 3.0. An empty set can be used to specify "Any".
- sources
Excluded Boolean - A boolean value indicating negation of source groups.
- List<Vpc
Security Policy Rule Tag> - A list of scope + tag pairs to associate with this Rule.
- display
Name string - Display name of the resource.
- action string
- Rule action, one of
ALLOW
,DROP
andREJECT
. Default isALLOW
.. - description string
- Description of the resource.
- destination
Groups string[] - Set of group paths that serve as the destination for this rule. IPs, IP ranges, or CIDRs may also be used starting in NSX-T 3.0. An empty set can be used to specify "Any".
- destinations
Excluded boolean - A boolean value indicating negation of destination groups.
- direction string
- Traffic direction, one of
IN
,OUT
orIN_OUT
. Default isIN_OUT
. - disabled boolean
- Flag to disable this rule. Default is false.
- ip
Version string - Version of IP protocol, one of
NONE
,IPV4
,IPV6
,IPV4_IPV6
. Default isIPV4_IPV6
. - log
Label string - Additional information (string) which will be propagated to the rule syslog.
- logged boolean
- Flag to enable packet logging. Default is false.
- notes string
- Additional notes on changes.
- nsx
Id string - The NSX ID of this resource. If set, this ID will be used to create the resource.
- path string
- The NSX path of the policy resource.
- profiles string[]
- Set of profile paths relevant for this rule.
- revision number
- Indicates current revision number of the object as seen by NSX-T API server. This attribute can be useful for debugging.
- rule
Id number - Unique positive number that is assigned by the system and is useful for debugging.
- scopes string[]
- Set of policy object paths where the rule is applied.
- sequence
Number number - It is recommended not to specify sequence number for rules, and rely on provider to auto-assign them. If you choose to specify sequence numbers, you must make sure the numbers are consistent with order of the rules in configuration. Please note that sequence numbers should start with 1 and not 0. To avoid confusion, either specify sequence numbers in all rules, or none at all.
- services string[]
- Set of service paths to match.
- source
Groups string[] - Set of group paths that serve as the source for this rule. IPs, IP ranges, or CIDRs may also be used starting in NSX-T 3.0. An empty set can be used to specify "Any".
- sources
Excluded boolean - A boolean value indicating negation of source groups.
- Vpc
Security Policy Rule Tag[] - A list of scope + tag pairs to associate with this Rule.
- display_
name str - Display name of the resource.
- action str
- Rule action, one of
ALLOW
,DROP
andREJECT
. Default isALLOW
.. - description str
- Description of the resource.
- destination_
groups Sequence[str] - Set of group paths that serve as the destination for this rule. IPs, IP ranges, or CIDRs may also be used starting in NSX-T 3.0. An empty set can be used to specify "Any".
- destinations_
excluded bool - A boolean value indicating negation of destination groups.
- direction str
- Traffic direction, one of
IN
,OUT
orIN_OUT
. Default isIN_OUT
. - disabled bool
- Flag to disable this rule. Default is false.
- ip_
version str - Version of IP protocol, one of
NONE
,IPV4
,IPV6
,IPV4_IPV6
. Default isIPV4_IPV6
. - log_
label str - Additional information (string) which will be propagated to the rule syslog.
- logged bool
- Flag to enable packet logging. Default is false.
- notes str
- Additional notes on changes.
- nsx_
id str - The NSX ID of this resource. If set, this ID will be used to create the resource.
- path str
- The NSX path of the policy resource.
- profiles Sequence[str]
- Set of profile paths relevant for this rule.
- revision float
- Indicates current revision number of the object as seen by NSX-T API server. This attribute can be useful for debugging.
- rule_
id float - Unique positive number that is assigned by the system and is useful for debugging.
- scopes Sequence[str]
- Set of policy object paths where the rule is applied.
- sequence_
number float - It is recommended not to specify sequence number for rules, and rely on provider to auto-assign them. If you choose to specify sequence numbers, you must make sure the numbers are consistent with order of the rules in configuration. Please note that sequence numbers should start with 1 and not 0. To avoid confusion, either specify sequence numbers in all rules, or none at all.
- services Sequence[str]
- Set of service paths to match.
- source_
groups Sequence[str] - Set of group paths that serve as the source for this rule. IPs, IP ranges, or CIDRs may also be used starting in NSX-T 3.0. An empty set can be used to specify "Any".
- sources_
excluded bool - A boolean value indicating negation of source groups.
- Sequence[Vpc
Security Policy Rule Tag] - A list of scope + tag pairs to associate with this Rule.
- display
Name String - Display name of the resource.
- action String
- Rule action, one of
ALLOW
,DROP
andREJECT
. Default isALLOW
.. - description String
- Description of the resource.
- destination
Groups List<String> - Set of group paths that serve as the destination for this rule. IPs, IP ranges, or CIDRs may also be used starting in NSX-T 3.0. An empty set can be used to specify "Any".
- destinations
Excluded Boolean - A boolean value indicating negation of destination groups.
- direction String
- Traffic direction, one of
IN
,OUT
orIN_OUT
. Default isIN_OUT
. - disabled Boolean
- Flag to disable this rule. Default is false.
- ip
Version String - Version of IP protocol, one of
NONE
,IPV4
,IPV6
,IPV4_IPV6
. Default isIPV4_IPV6
. - log
Label String - Additional information (string) which will be propagated to the rule syslog.
- logged Boolean
- Flag to enable packet logging. Default is false.
- notes String
- Additional notes on changes.
- nsx
Id String - The NSX ID of this resource. If set, this ID will be used to create the resource.
- path String
- The NSX path of the policy resource.
- profiles List<String>
- Set of profile paths relevant for this rule.
- revision Number
- Indicates current revision number of the object as seen by NSX-T API server. This attribute can be useful for debugging.
- rule
Id Number - Unique positive number that is assigned by the system and is useful for debugging.
- scopes List<String>
- Set of policy object paths where the rule is applied.
- sequence
Number Number - It is recommended not to specify sequence number for rules, and rely on provider to auto-assign them. If you choose to specify sequence numbers, you must make sure the numbers are consistent with order of the rules in configuration. Please note that sequence numbers should start with 1 and not 0. To avoid confusion, either specify sequence numbers in all rules, or none at all.
- services List<String>
- Set of service paths to match.
- source
Groups List<String> - Set of group paths that serve as the source for this rule. IPs, IP ranges, or CIDRs may also be used starting in NSX-T 3.0. An empty set can be used to specify "Any".
- sources
Excluded Boolean - A boolean value indicating negation of source groups.
- List<Property Map>
- A list of scope + tag pairs to associate with this Rule.
VpcSecurityPolicyRuleTag, VpcSecurityPolicyRuleTagArgs
VpcSecurityPolicyTag, VpcSecurityPolicyTagArgs
Package Details
- Repository
- nsxt vmware/terraform-provider-nsxt
- License
- Notes
- This Pulumi package is based on the
nsxt
Terraform Provider.