published on Monday, May 18, 2026 by vmware
published on Monday, May 18, 2026 by vmware
Create PolicySpoofguardProfileV2 Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new PolicySpoofguardProfileV2(name: string, args: PolicySpoofguardProfileV2Args, opts?: CustomResourceOptions);@overload
def PolicySpoofguardProfileV2(resource_name: str,
args: PolicySpoofguardProfileV2Args,
opts: Optional[ResourceOptions] = None)
@overload
def PolicySpoofguardProfileV2(resource_name: str,
opts: Optional[ResourceOptions] = None,
display_name: Optional[str] = None,
address_binding_allowlist: Optional[bool] = None,
context: Optional[PolicySpoofguardProfileV2ContextArgs] = None,
description: Optional[str] = None,
nsx_id: Optional[str] = None,
policy_spoofguard_profile_id: Optional[str] = None,
tags: Optional[Sequence[PolicySpoofguardProfileV2TagArgs]] = None)func NewPolicySpoofguardProfileV2(ctx *Context, name string, args PolicySpoofguardProfileV2Args, opts ...ResourceOption) (*PolicySpoofguardProfileV2, error)public PolicySpoofguardProfileV2(string name, PolicySpoofguardProfileV2Args args, CustomResourceOptions? opts = null)
public PolicySpoofguardProfileV2(String name, PolicySpoofguardProfileV2Args args)
public PolicySpoofguardProfileV2(String name, PolicySpoofguardProfileV2Args args, CustomResourceOptions options)
type: nsxt:PolicySpoofguardProfileV2
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "nsxt_policyspoofguardprofilev2" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args PolicySpoofguardProfileV2Args
- 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 PolicySpoofguardProfileV2Args
- 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 PolicySpoofguardProfileV2Args
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args PolicySpoofguardProfileV2Args
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args PolicySpoofguardProfileV2Args
- 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 policySpoofguardProfileV2Resource = new Nsxt.PolicySpoofguardProfileV2("policySpoofguardProfileV2Resource", new()
{
DisplayName = "string",
AddressBindingAllowlist = false,
Context = new Nsxt.Inputs.PolicySpoofguardProfileV2ContextArgs
{
ProjectId = "string",
},
Description = "string",
NsxId = "string",
PolicySpoofguardProfileId = "string",
Tags = new[]
{
new Nsxt.Inputs.PolicySpoofguardProfileV2TagArgs
{
Scope = "string",
Tag = "string",
},
},
});
example, err := nsxt.NewPolicySpoofguardProfileV2(ctx, "policySpoofguardProfileV2Resource", &nsxt.PolicySpoofguardProfileV2Args{
DisplayName: pulumi.String("string"),
AddressBindingAllowlist: pulumi.Bool(false),
Context: &nsxt.PolicySpoofguardProfileV2ContextArgs{
ProjectId: pulumi.String("string"),
},
Description: pulumi.String("string"),
NsxId: pulumi.String("string"),
PolicySpoofguardProfileId: pulumi.String("string"),
Tags: nsxt.PolicySpoofguardProfileV2TagArray{
&nsxt.PolicySpoofguardProfileV2TagArgs{
Scope: pulumi.String("string"),
Tag: pulumi.String("string"),
},
},
})
resource "nsxt_policyspoofguardprofilev2" "policySpoofguardProfileV2Resource" {
display_name = "string"
address_binding_allowlist = false
context = {
project_id = "string"
}
description = "string"
nsx_id = "string"
policy_spoofguard_profile_id = "string"
tags {
scope = "string"
tag = "string"
}
}
var policySpoofguardProfileV2Resource = new PolicySpoofguardProfileV2("policySpoofguardProfileV2Resource", PolicySpoofguardProfileV2Args.builder()
.displayName("string")
.addressBindingAllowlist(false)
.context(PolicySpoofguardProfileV2ContextArgs.builder()
.projectId("string")
.build())
.description("string")
.nsxId("string")
.policySpoofguardProfileId("string")
.tags(PolicySpoofguardProfileV2TagArgs.builder()
.scope("string")
.tag("string")
.build())
.build());
policy_spoofguard_profile_v2_resource = nsxt.PolicySpoofguardProfileV2("policySpoofguardProfileV2Resource",
display_name="string",
address_binding_allowlist=False,
context={
"project_id": "string",
},
description="string",
nsx_id="string",
policy_spoofguard_profile_id="string",
tags=[{
"scope": "string",
"tag": "string",
}])
const policySpoofguardProfileV2Resource = new nsxt.PolicySpoofguardProfileV2("policySpoofguardProfileV2Resource", {
displayName: "string",
addressBindingAllowlist: false,
context: {
projectId: "string",
},
description: "string",
nsxId: "string",
policySpoofguardProfileId: "string",
tags: [{
scope: "string",
tag: "string",
}],
});
type: nsxt:PolicySpoofguardProfileV2
properties:
addressBindingAllowlist: false
context:
projectId: string
description: string
displayName: string
nsxId: string
policySpoofguardProfileId: string
tags:
- scope: string
tag: string
PolicySpoofguardProfileV2 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 PolicySpoofguardProfileV2 resource accepts the following input properties:
- Display
Name string - Display name of the resource.
- Address
Binding boolAllowlist - If true, enable the SpoofGuard, which only allows IPs listed in address bindings.
- Context
Policy
Spoofguard Profile V2Context - The context which the object belongs to
- Description string
- Description of the resource.
- Nsx
Id string - The NSX ID of this resource. If set, this ID will be used to create the resource.
- Policy
Spoofguard stringProfile Id - ID of the resource.
-
List<Policy
Spoofguard Profile V2Tag> - A list of scope + tag pairs to associate with this resource.
- Display
Name string - Display name of the resource.
- Address
Binding boolAllowlist - If true, enable the SpoofGuard, which only allows IPs listed in address bindings.
- Context
Policy
Spoofguard Profile V2Context Args - The context which the object belongs to
- Description string
- Description of the resource.
- Nsx
Id string - The NSX ID of this resource. If set, this ID will be used to create the resource.
- Policy
Spoofguard stringProfile Id - ID of the resource.
-
[]Policy
Spoofguard Profile V2Tag Args - A list of scope + tag pairs to associate with this resource.
- display_
name string - Display name of the resource.
- address_
binding_ boolallowlist - If true, enable the SpoofGuard, which only allows IPs listed in address bindings.
- context object
- The context which the object belongs to
- description string
- Description of the resource.
- nsx_
id string - The NSX ID of this resource. If set, this ID will be used to create the resource.
- policy_
spoofguard_ stringprofile_ id - ID of the resource.
- list(object)
- A list of scope + tag pairs to associate with this resource.
- display
Name String - Display name of the resource.
- address
Binding BooleanAllowlist - If true, enable the SpoofGuard, which only allows IPs listed in address bindings.
- context
Policy
Spoofguard Profile V2Context - The context which the object belongs to
- description String
- Description of the resource.
- nsx
Id String - The NSX ID of this resource. If set, this ID will be used to create the resource.
- policy
Spoofguard StringProfile Id - ID of the resource.
-
List<Policy
Spoofguard Profile V2Tag> - A list of scope + tag pairs to associate with this resource.
- display
Name string - Display name of the resource.
- address
Binding booleanAllowlist - If true, enable the SpoofGuard, which only allows IPs listed in address bindings.
- context
Policy
Spoofguard Profile V2Context - The context which the object belongs to
- description string
- Description of the resource.
- nsx
Id string - The NSX ID of this resource. If set, this ID will be used to create the resource.
- policy
Spoofguard stringProfile Id - ID of the resource.
-
Policy
Spoofguard Profile V2Tag[] - A list of scope + tag pairs to associate with this resource.
- display_
name str - Display name of the resource.
- address_
binding_ boolallowlist - If true, enable the SpoofGuard, which only allows IPs listed in address bindings.
- context
Policy
Spoofguard Profile V2Context Args - The context which the object belongs to
- description str
- Description of the resource.
- nsx_
id str - The NSX ID of this resource. If set, this ID will be used to create the resource.
- policy_
spoofguard_ strprofile_ id - ID of the resource.
-
Sequence[Policy
Spoofguard Profile V2Tag Args] - A list of scope + tag pairs to associate with this resource.
- display
Name String - Display name of the resource.
- address
Binding BooleanAllowlist - If true, enable the SpoofGuard, which only allows IPs listed in address bindings.
- context Property Map
- The context which the object belongs to
- description String
- Description of the resource.
- nsx
Id String - The NSX ID of this resource. If set, this ID will be used to create the resource.
- policy
Spoofguard StringProfile Id - ID of the resource.
- List<Property Map>
- A list of scope + tag pairs to associate with this resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the PolicySpoofguardProfileV2 resource produces the following output properties:
Look up Existing PolicySpoofguardProfileV2 Resource
Get an existing PolicySpoofguardProfileV2 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?: PolicySpoofguardProfileV2State, opts?: CustomResourceOptions): PolicySpoofguardProfileV2@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
address_binding_allowlist: Optional[bool] = None,
context: Optional[PolicySpoofguardProfileV2ContextArgs] = None,
description: Optional[str] = None,
display_name: Optional[str] = None,
nsx_id: Optional[str] = None,
path: Optional[str] = None,
policy_spoofguard_profile_id: Optional[str] = None,
revision: Optional[float] = None,
tags: Optional[Sequence[PolicySpoofguardProfileV2TagArgs]] = None) -> PolicySpoofguardProfileV2func GetPolicySpoofguardProfileV2(ctx *Context, name string, id IDInput, state *PolicySpoofguardProfileV2State, opts ...ResourceOption) (*PolicySpoofguardProfileV2, error)public static PolicySpoofguardProfileV2 Get(string name, Input<string> id, PolicySpoofguardProfileV2State? state, CustomResourceOptions? opts = null)public static PolicySpoofguardProfileV2 get(String name, Output<String> id, PolicySpoofguardProfileV2State state, CustomResourceOptions options)resources: _: type: nsxt:PolicySpoofguardProfileV2 get: id: ${id}import {
to = nsxt_policyspoofguardprofilev2.example
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.
- Address
Binding boolAllowlist - If true, enable the SpoofGuard, which only allows IPs listed in address bindings.
- Context
Policy
Spoofguard Profile V2Context - The context which the object belongs to
- Description string
- Description of the resource.
- Display
Name string - Display name of the resource.
- 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.
- Policy
Spoofguard stringProfile Id - ID of the resource.
- Revision double
- Indicates current revision number of the object as seen by NSX-T API server. This attribute can be useful for debugging.
-
List<Policy
Spoofguard Profile V2Tag> - A list of scope + tag pairs to associate with this resource.
- Address
Binding boolAllowlist - If true, enable the SpoofGuard, which only allows IPs listed in address bindings.
- Context
Policy
Spoofguard Profile V2Context Args - The context which the object belongs to
- Description string
- Description of the resource.
- Display
Name string - Display name of the resource.
- 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.
- Policy
Spoofguard stringProfile Id - ID of the resource.
- Revision float64
- Indicates current revision number of the object as seen by NSX-T API server. This attribute can be useful for debugging.
-
[]Policy
Spoofguard Profile V2Tag Args - A list of scope + tag pairs to associate with this resource.
- address_
binding_ boolallowlist - If true, enable the SpoofGuard, which only allows IPs listed in address bindings.
- context object
- The context which the object belongs to
- description string
- Description of the resource.
- display_
name string - Display name of the resource.
- 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.
- policy_
spoofguard_ stringprofile_ id - ID of the resource.
- revision number
- Indicates current revision number of the object as seen by NSX-T API server. This attribute can be useful for debugging.
- list(object)
- A list of scope + tag pairs to associate with this resource.
- address
Binding BooleanAllowlist - If true, enable the SpoofGuard, which only allows IPs listed in address bindings.
- context
Policy
Spoofguard Profile V2Context - The context which the object belongs to
- description String
- Description of the resource.
- display
Name String - Display name of the resource.
- 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.
- policy
Spoofguard StringProfile Id - ID of the resource.
- revision Double
- Indicates current revision number of the object as seen by NSX-T API server. This attribute can be useful for debugging.
-
List<Policy
Spoofguard Profile V2Tag> - A list of scope + tag pairs to associate with this resource.
- address
Binding booleanAllowlist - If true, enable the SpoofGuard, which only allows IPs listed in address bindings.
- context
Policy
Spoofguard Profile V2Context - The context which the object belongs to
- description string
- Description of the resource.
- display
Name string - Display name of the resource.
- 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.
- policy
Spoofguard stringProfile Id - ID of the resource.
- revision number
- Indicates current revision number of the object as seen by NSX-T API server. This attribute can be useful for debugging.
-
Policy
Spoofguard Profile V2Tag[] - A list of scope + tag pairs to associate with this resource.
- address_
binding_ boolallowlist - If true, enable the SpoofGuard, which only allows IPs listed in address bindings.
- context
Policy
Spoofguard Profile V2Context Args - The context which the object belongs to
- description str
- Description of the resource.
- display_
name str - Display name of the resource.
- 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.
- policy_
spoofguard_ strprofile_ id - ID of the resource.
- revision float
- Indicates current revision number of the object as seen by NSX-T API server. This attribute can be useful for debugging.
-
Sequence[Policy
Spoofguard Profile V2Tag Args] - A list of scope + tag pairs to associate with this resource.
- address
Binding BooleanAllowlist - If true, enable the SpoofGuard, which only allows IPs listed in address bindings.
- context Property Map
- The context which the object belongs to
- description String
- Description of the resource.
- display
Name String - Display name of the resource.
- 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.
- policy
Spoofguard StringProfile Id - ID of the resource.
- revision Number
- Indicates current revision number of the object as seen by NSX-T API server. This attribute can be useful for debugging.
- List<Property Map>
- A list of scope + tag pairs to associate with this resource.
Supporting Types
PolicySpoofguardProfileV2Context, PolicySpoofguardProfileV2ContextArgs
- Project
Id string - The ID of the project which the object belongs to
- Project
Id string - The ID of the project which the object belongs to
- project_
id string - The ID of the project which the object belongs to
- project
Id String - The ID of the project which the object belongs to
- project
Id string - The ID of the project which the object belongs to
- project_
id str - The ID of the project which the object belongs to
- project
Id String - The ID of the project which the object belongs to
PolicySpoofguardProfileV2Tag, PolicySpoofguardProfileV2TagArgs
Package Details
- Repository
- nsxt vmware/terraform-provider-nsxt
- License
- Notes
- This Pulumi package is based on the
nsxtTerraform Provider.
published on Monday, May 18, 2026 by vmware