1. Packages
  2. Nsxt Provider
  3. API Docs
  4. PolicySpoofGuardProfile
nsxt 3.8.1 published on Wednesday, Apr 30, 2025 by vmware

nsxt.PolicySpoofGuardProfile

Explore with Pulumi AI

nsxt logo
nsxt 3.8.1 published on Wednesday, Apr 30, 2025 by vmware

    Create PolicySpoofGuardProfile Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new PolicySpoofGuardProfile(name: string, args: PolicySpoofGuardProfileArgs, opts?: CustomResourceOptions);
    @overload
    def PolicySpoofGuardProfile(resource_name: str,
                                args: PolicySpoofGuardProfileArgs,
                                opts: Optional[ResourceOptions] = None)
    
    @overload
    def PolicySpoofGuardProfile(resource_name: str,
                                opts: Optional[ResourceOptions] = None,
                                display_name: Optional[str] = None,
                                address_binding_allowlist: Optional[bool] = None,
                                context: Optional[PolicySpoofGuardProfileContextArgs] = None,
                                description: Optional[str] = None,
                                nsx_id: Optional[str] = None,
                                policy_spoof_guard_profile_id: Optional[str] = None,
                                tags: Optional[Sequence[PolicySpoofGuardProfileTagArgs]] = None)
    func NewPolicySpoofGuardProfile(ctx *Context, name string, args PolicySpoofGuardProfileArgs, opts ...ResourceOption) (*PolicySpoofGuardProfile, error)
    public PolicySpoofGuardProfile(string name, PolicySpoofGuardProfileArgs args, CustomResourceOptions? opts = null)
    public PolicySpoofGuardProfile(String name, PolicySpoofGuardProfileArgs args)
    public PolicySpoofGuardProfile(String name, PolicySpoofGuardProfileArgs args, CustomResourceOptions options)
    
    type: nsxt:PolicySpoofGuardProfile
    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 PolicySpoofGuardProfileArgs
    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 PolicySpoofGuardProfileArgs
    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 PolicySpoofGuardProfileArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args PolicySpoofGuardProfileArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args PolicySpoofGuardProfileArgs
    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 policySpoofGuardProfileResource = new Nsxt.PolicySpoofGuardProfile("policySpoofGuardProfileResource", new()
    {
        DisplayName = "string",
        AddressBindingAllowlist = false,
        Context = new Nsxt.Inputs.PolicySpoofGuardProfileContextArgs
        {
            ProjectId = "string",
        },
        Description = "string",
        NsxId = "string",
        PolicySpoofGuardProfileId = "string",
        Tags = new[]
        {
            new Nsxt.Inputs.PolicySpoofGuardProfileTagArgs
            {
                Scope = "string",
                Tag = "string",
            },
        },
    });
    
    example, err := nsxt.NewPolicySpoofGuardProfile(ctx, "policySpoofGuardProfileResource", &nsxt.PolicySpoofGuardProfileArgs{
    	DisplayName:             pulumi.String("string"),
    	AddressBindingAllowlist: pulumi.Bool(false),
    	Context: &nsxt.PolicySpoofGuardProfileContextArgs{
    		ProjectId: pulumi.String("string"),
    	},
    	Description:               pulumi.String("string"),
    	NsxId:                     pulumi.String("string"),
    	PolicySpoofGuardProfileId: pulumi.String("string"),
    	Tags: nsxt.PolicySpoofGuardProfileTagArray{
    		&nsxt.PolicySpoofGuardProfileTagArgs{
    			Scope: pulumi.String("string"),
    			Tag:   pulumi.String("string"),
    		},
    	},
    })
    
    var policySpoofGuardProfileResource = new PolicySpoofGuardProfile("policySpoofGuardProfileResource", PolicySpoofGuardProfileArgs.builder()
        .displayName("string")
        .addressBindingAllowlist(false)
        .context(PolicySpoofGuardProfileContextArgs.builder()
            .projectId("string")
            .build())
        .description("string")
        .nsxId("string")
        .policySpoofGuardProfileId("string")
        .tags(PolicySpoofGuardProfileTagArgs.builder()
            .scope("string")
            .tag("string")
            .build())
        .build());
    
    policy_spoof_guard_profile_resource = nsxt.PolicySpoofGuardProfile("policySpoofGuardProfileResource",
        display_name="string",
        address_binding_allowlist=False,
        context={
            "project_id": "string",
        },
        description="string",
        nsx_id="string",
        policy_spoof_guard_profile_id="string",
        tags=[{
            "scope": "string",
            "tag": "string",
        }])
    
    const policySpoofGuardProfileResource = new nsxt.PolicySpoofGuardProfile("policySpoofGuardProfileResource", {
        displayName: "string",
        addressBindingAllowlist: false,
        context: {
            projectId: "string",
        },
        description: "string",
        nsxId: "string",
        policySpoofGuardProfileId: "string",
        tags: [{
            scope: "string",
            tag: "string",
        }],
    });
    
    type: nsxt:PolicySpoofGuardProfile
    properties:
        addressBindingAllowlist: false
        context:
            projectId: string
        description: string
        displayName: string
        nsxId: string
        policySpoofGuardProfileId: string
        tags:
            - scope: string
              tag: string
    

    PolicySpoofGuardProfile 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 PolicySpoofGuardProfile resource accepts the following input properties:

    DisplayName string
    Display name of the resource.
    AddressBindingAllowlist bool
    If true, enable the SpoofGuard, which only allows IPs listed in address bindings.
    Context PolicySpoofGuardProfileContext
    The context which the object belongs to
    Description string
    Description of the resource.
    NsxId string
    The NSX ID of this resource. If set, this ID will be used to create the resource.
    PolicySpoofGuardProfileId string
    ID of the resource.
    Tags List<PolicySpoofGuardProfileTag>
    A list of scope + tag pairs to associate with this resource.
    DisplayName string
    Display name of the resource.
    AddressBindingAllowlist bool
    If true, enable the SpoofGuard, which only allows IPs listed in address bindings.
    Context PolicySpoofGuardProfileContextArgs
    The context which the object belongs to
    Description string
    Description of the resource.
    NsxId string
    The NSX ID of this resource. If set, this ID will be used to create the resource.
    PolicySpoofGuardProfileId string
    ID of the resource.
    Tags []PolicySpoofGuardProfileTagArgs
    A list of scope + tag pairs to associate with this resource.
    displayName String
    Display name of the resource.
    addressBindingAllowlist Boolean
    If true, enable the SpoofGuard, which only allows IPs listed in address bindings.
    context PolicySpoofGuardProfileContext
    The context which the object belongs to
    description String
    Description of the resource.
    nsxId String
    The NSX ID of this resource. If set, this ID will be used to create the resource.
    policySpoofGuardProfileId String
    ID of the resource.
    tags List<PolicySpoofGuardProfileTag>
    A list of scope + tag pairs to associate with this resource.
    displayName string
    Display name of the resource.
    addressBindingAllowlist boolean
    If true, enable the SpoofGuard, which only allows IPs listed in address bindings.
    context PolicySpoofGuardProfileContext
    The context which the object belongs to
    description string
    Description of the resource.
    nsxId string
    The NSX ID of this resource. If set, this ID will be used to create the resource.
    policySpoofGuardProfileId string
    ID of the resource.
    tags PolicySpoofGuardProfileTag[]
    A list of scope + tag pairs to associate with this resource.
    display_name str
    Display name of the resource.
    address_binding_allowlist bool
    If true, enable the SpoofGuard, which only allows IPs listed in address bindings.
    context PolicySpoofGuardProfileContextArgs
    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_spoof_guard_profile_id str
    ID of the resource.
    tags Sequence[PolicySpoofGuardProfileTagArgs]
    A list of scope + tag pairs to associate with this resource.
    displayName String
    Display name of the resource.
    addressBindingAllowlist Boolean
    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.
    nsxId String
    The NSX ID of this resource. If set, this ID will be used to create the resource.
    policySpoofGuardProfileId String
    ID of the resource.
    tags 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 PolicySpoofGuardProfile resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed 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.
    Id string
    The provider-assigned unique ID for this managed 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.
    id String
    The provider-assigned unique ID for this managed 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.
    id string
    The provider-assigned unique ID for this managed 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.
    id str
    The provider-assigned unique ID for this managed 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.
    id String
    The provider-assigned unique ID for this managed 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.

    Look up Existing PolicySpoofGuardProfile Resource

    Get an existing PolicySpoofGuardProfile 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?: PolicySpoofGuardProfileState, opts?: CustomResourceOptions): PolicySpoofGuardProfile
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            address_binding_allowlist: Optional[bool] = None,
            context: Optional[PolicySpoofGuardProfileContextArgs] = None,
            description: Optional[str] = None,
            display_name: Optional[str] = None,
            nsx_id: Optional[str] = None,
            path: Optional[str] = None,
            policy_spoof_guard_profile_id: Optional[str] = None,
            revision: Optional[float] = None,
            tags: Optional[Sequence[PolicySpoofGuardProfileTagArgs]] = None) -> PolicySpoofGuardProfile
    func GetPolicySpoofGuardProfile(ctx *Context, name string, id IDInput, state *PolicySpoofGuardProfileState, opts ...ResourceOption) (*PolicySpoofGuardProfile, error)
    public static PolicySpoofGuardProfile Get(string name, Input<string> id, PolicySpoofGuardProfileState? state, CustomResourceOptions? opts = null)
    public static PolicySpoofGuardProfile get(String name, Output<String> id, PolicySpoofGuardProfileState state, CustomResourceOptions options)
    resources:  _:    type: nsxt:PolicySpoofGuardProfile    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.
    The following state arguments are supported:
    AddressBindingAllowlist bool
    If true, enable the SpoofGuard, which only allows IPs listed in address bindings.
    Context PolicySpoofGuardProfileContext
    The context which the object belongs to
    Description string
    Description of the resource.
    DisplayName string
    Display name of the resource.
    NsxId 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.
    PolicySpoofGuardProfileId string
    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.
    Tags List<PolicySpoofGuardProfileTag>
    A list of scope + tag pairs to associate with this resource.
    AddressBindingAllowlist bool
    If true, enable the SpoofGuard, which only allows IPs listed in address bindings.
    Context PolicySpoofGuardProfileContextArgs
    The context which the object belongs to
    Description string
    Description of the resource.
    DisplayName string
    Display name of the resource.
    NsxId 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.
    PolicySpoofGuardProfileId string
    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.
    Tags []PolicySpoofGuardProfileTagArgs
    A list of scope + tag pairs to associate with this resource.
    addressBindingAllowlist Boolean
    If true, enable the SpoofGuard, which only allows IPs listed in address bindings.
    context PolicySpoofGuardProfileContext
    The context which the object belongs to
    description String
    Description of the resource.
    displayName String
    Display name of the resource.
    nsxId 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.
    policySpoofGuardProfileId String
    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.
    tags List<PolicySpoofGuardProfileTag>
    A list of scope + tag pairs to associate with this resource.
    addressBindingAllowlist boolean
    If true, enable the SpoofGuard, which only allows IPs listed in address bindings.
    context PolicySpoofGuardProfileContext
    The context which the object belongs to
    description string
    Description of the resource.
    displayName string
    Display name of the resource.
    nsxId 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.
    policySpoofGuardProfileId string
    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.
    tags PolicySpoofGuardProfileTag[]
    A list of scope + tag pairs to associate with this resource.
    address_binding_allowlist bool
    If true, enable the SpoofGuard, which only allows IPs listed in address bindings.
    context PolicySpoofGuardProfileContextArgs
    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_spoof_guard_profile_id str
    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.
    tags Sequence[PolicySpoofGuardProfileTagArgs]
    A list of scope + tag pairs to associate with this resource.
    addressBindingAllowlist Boolean
    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.
    displayName String
    Display name of the resource.
    nsxId 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.
    policySpoofGuardProfileId String
    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.
    tags List<Property Map>
    A list of scope + tag pairs to associate with this resource.

    Supporting Types

    PolicySpoofGuardProfileContext, PolicySpoofGuardProfileContextArgs

    ProjectId string
    The ID of the project which the object belongs to
    ProjectId string
    The ID of the project which the object belongs to
    projectId String
    The ID of the project which the object belongs to
    projectId string
    The ID of the project which the object belongs to
    project_id str
    The ID of the project which the object belongs to
    projectId String
    The ID of the project which the object belongs to

    PolicySpoofGuardProfileTag, PolicySpoofGuardProfileTagArgs

    Scope string
    Tag string
    A list of scope + tag pairs to associate with this resource.
    Scope string
    Tag string
    A list of scope + tag pairs to associate with this resource.
    scope String
    tag String
    A list of scope + tag pairs to associate with this resource.
    scope string
    tag string
    A list of scope + tag pairs to associate with this resource.
    scope str
    tag str
    A list of scope + tag pairs to associate with this resource.
    scope String
    tag String
    A list of scope + tag pairs to associate with this resource.

    Package Details

    Repository
    nsxt vmware/terraform-provider-nsxt
    License
    Notes
    This Pulumi package is based on the nsxt Terraform Provider.
    nsxt logo
    nsxt 3.8.1 published on Wednesday, Apr 30, 2025 by vmware