1. Packages
  2. Vcd Provider
  3. API Docs
  4. NsxtDynamicSecurityGroup
vcd 3.14.1 published on Monday, Apr 14, 2025 by vmware

vcd.NsxtDynamicSecurityGroup

Explore with Pulumi AI

vcd logo
vcd 3.14.1 published on Monday, Apr 14, 2025 by vmware

    Create NsxtDynamicSecurityGroup Resource

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

    Constructor syntax

    new NsxtDynamicSecurityGroup(name: string, args: NsxtDynamicSecurityGroupArgs, opts?: CustomResourceOptions);
    @overload
    def NsxtDynamicSecurityGroup(resource_name: str,
                                 args: NsxtDynamicSecurityGroupArgs,
                                 opts: Optional[ResourceOptions] = None)
    
    @overload
    def NsxtDynamicSecurityGroup(resource_name: str,
                                 opts: Optional[ResourceOptions] = None,
                                 vdc_group_id: Optional[str] = None,
                                 criterias: Optional[Sequence[NsxtDynamicSecurityGroupCriteriaArgs]] = None,
                                 description: Optional[str] = None,
                                 name: Optional[str] = None,
                                 nsxt_dynamic_security_group_id: Optional[str] = None,
                                 org: Optional[str] = None)
    func NewNsxtDynamicSecurityGroup(ctx *Context, name string, args NsxtDynamicSecurityGroupArgs, opts ...ResourceOption) (*NsxtDynamicSecurityGroup, error)
    public NsxtDynamicSecurityGroup(string name, NsxtDynamicSecurityGroupArgs args, CustomResourceOptions? opts = null)
    public NsxtDynamicSecurityGroup(String name, NsxtDynamicSecurityGroupArgs args)
    public NsxtDynamicSecurityGroup(String name, NsxtDynamicSecurityGroupArgs args, CustomResourceOptions options)
    
    type: vcd:NsxtDynamicSecurityGroup
    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 NsxtDynamicSecurityGroupArgs
    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 NsxtDynamicSecurityGroupArgs
    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 NsxtDynamicSecurityGroupArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args NsxtDynamicSecurityGroupArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args NsxtDynamicSecurityGroupArgs
    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 nsxtDynamicSecurityGroupResource = new Vcd.NsxtDynamicSecurityGroup("nsxtDynamicSecurityGroupResource", new()
    {
        VdcGroupId = "string",
        Criterias = new[]
        {
            new Vcd.Inputs.NsxtDynamicSecurityGroupCriteriaArgs
            {
                Rules = new[]
                {
                    new Vcd.Inputs.NsxtDynamicSecurityGroupCriteriaRuleArgs
                    {
                        Operator = "string",
                        Type = "string",
                        Value = "string",
                    },
                },
            },
        },
        Description = "string",
        Name = "string",
        NsxtDynamicSecurityGroupId = "string",
        Org = "string",
    });
    
    example, err := vcd.NewNsxtDynamicSecurityGroup(ctx, "nsxtDynamicSecurityGroupResource", &vcd.NsxtDynamicSecurityGroupArgs{
    	VdcGroupId: pulumi.String("string"),
    	Criterias: vcd.NsxtDynamicSecurityGroupCriteriaArray{
    		&vcd.NsxtDynamicSecurityGroupCriteriaArgs{
    			Rules: vcd.NsxtDynamicSecurityGroupCriteriaRuleArray{
    				&vcd.NsxtDynamicSecurityGroupCriteriaRuleArgs{
    					Operator: pulumi.String("string"),
    					Type:     pulumi.String("string"),
    					Value:    pulumi.String("string"),
    				},
    			},
    		},
    	},
    	Description:                pulumi.String("string"),
    	Name:                       pulumi.String("string"),
    	NsxtDynamicSecurityGroupId: pulumi.String("string"),
    	Org:                        pulumi.String("string"),
    })
    
    var nsxtDynamicSecurityGroupResource = new NsxtDynamicSecurityGroup("nsxtDynamicSecurityGroupResource", NsxtDynamicSecurityGroupArgs.builder()
        .vdcGroupId("string")
        .criterias(NsxtDynamicSecurityGroupCriteriaArgs.builder()
            .rules(NsxtDynamicSecurityGroupCriteriaRuleArgs.builder()
                .operator("string")
                .type("string")
                .value("string")
                .build())
            .build())
        .description("string")
        .name("string")
        .nsxtDynamicSecurityGroupId("string")
        .org("string")
        .build());
    
    nsxt_dynamic_security_group_resource = vcd.NsxtDynamicSecurityGroup("nsxtDynamicSecurityGroupResource",
        vdc_group_id="string",
        criterias=[{
            "rules": [{
                "operator": "string",
                "type": "string",
                "value": "string",
            }],
        }],
        description="string",
        name="string",
        nsxt_dynamic_security_group_id="string",
        org="string")
    
    const nsxtDynamicSecurityGroupResource = new vcd.NsxtDynamicSecurityGroup("nsxtDynamicSecurityGroupResource", {
        vdcGroupId: "string",
        criterias: [{
            rules: [{
                operator: "string",
                type: "string",
                value: "string",
            }],
        }],
        description: "string",
        name: "string",
        nsxtDynamicSecurityGroupId: "string",
        org: "string",
    });
    
    type: vcd:NsxtDynamicSecurityGroup
    properties:
        criterias:
            - rules:
                - operator: string
                  type: string
                  value: string
        description: string
        name: string
        nsxtDynamicSecurityGroupId: string
        org: string
        vdcGroupId: string
    

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

    VdcGroupId string
    VDC Group ID for Dynamic Security Group creation.
    Criterias List<NsxtDynamicSecurityGroupCriteria>
    Up to 3 criteria for matching VMs. List of criteria is matched with boolean OR operation and matching any of defined criteria will include objects. Each criteria can contains up to 4 rule definitions.
    Description string
    An optional description of the Dynamic Security Group
    Name string
    A unique name for Dynamic Security Group
    NsxtDynamicSecurityGroupId string
    Org string
    The name of organization to use, optional if defined at provider level. Useful when connected as sysadmin working across different organisations.
    VdcGroupId string
    VDC Group ID for Dynamic Security Group creation.
    Criterias []NsxtDynamicSecurityGroupCriteriaArgs
    Up to 3 criteria for matching VMs. List of criteria is matched with boolean OR operation and matching any of defined criteria will include objects. Each criteria can contains up to 4 rule definitions.
    Description string
    An optional description of the Dynamic Security Group
    Name string
    A unique name for Dynamic Security Group
    NsxtDynamicSecurityGroupId string
    Org string
    The name of organization to use, optional if defined at provider level. Useful when connected as sysadmin working across different organisations.
    vdcGroupId String
    VDC Group ID for Dynamic Security Group creation.
    criterias List<NsxtDynamicSecurityGroupCriteria>
    Up to 3 criteria for matching VMs. List of criteria is matched with boolean OR operation and matching any of defined criteria will include objects. Each criteria can contains up to 4 rule definitions.
    description String
    An optional description of the Dynamic Security Group
    name String
    A unique name for Dynamic Security Group
    nsxtDynamicSecurityGroupId String
    org String
    The name of organization to use, optional if defined at provider level. Useful when connected as sysadmin working across different organisations.
    vdcGroupId string
    VDC Group ID for Dynamic Security Group creation.
    criterias NsxtDynamicSecurityGroupCriteria[]
    Up to 3 criteria for matching VMs. List of criteria is matched with boolean OR operation and matching any of defined criteria will include objects. Each criteria can contains up to 4 rule definitions.
    description string
    An optional description of the Dynamic Security Group
    name string
    A unique name for Dynamic Security Group
    nsxtDynamicSecurityGroupId string
    org string
    The name of organization to use, optional if defined at provider level. Useful when connected as sysadmin working across different organisations.
    vdc_group_id str
    VDC Group ID for Dynamic Security Group creation.
    criterias Sequence[NsxtDynamicSecurityGroupCriteriaArgs]
    Up to 3 criteria for matching VMs. List of criteria is matched with boolean OR operation and matching any of defined criteria will include objects. Each criteria can contains up to 4 rule definitions.
    description str
    An optional description of the Dynamic Security Group
    name str
    A unique name for Dynamic Security Group
    nsxt_dynamic_security_group_id str
    org str
    The name of organization to use, optional if defined at provider level. Useful when connected as sysadmin working across different organisations.
    vdcGroupId String
    VDC Group ID for Dynamic Security Group creation.
    criterias List<Property Map>
    Up to 3 criteria for matching VMs. List of criteria is matched with boolean OR operation and matching any of defined criteria will include objects. Each criteria can contains up to 4 rule definitions.
    description String
    An optional description of the Dynamic Security Group
    name String
    A unique name for Dynamic Security Group
    nsxtDynamicSecurityGroupId String
    org String
    The name of organization to use, optional if defined at provider level. Useful when connected as sysadmin working across different organisations.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the NsxtDynamicSecurityGroup resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    MemberVms List<NsxtDynamicSecurityGroupMemberVm>
    A set of member VMs (if exist). see Member VMs below for details.
    Id string
    The provider-assigned unique ID for this managed resource.
    MemberVms []NsxtDynamicSecurityGroupMemberVm
    A set of member VMs (if exist). see Member VMs below for details.
    id String
    The provider-assigned unique ID for this managed resource.
    memberVms List<NsxtDynamicSecurityGroupMemberVm>
    A set of member VMs (if exist). see Member VMs below for details.
    id string
    The provider-assigned unique ID for this managed resource.
    memberVms NsxtDynamicSecurityGroupMemberVm[]
    A set of member VMs (if exist). see Member VMs below for details.
    id str
    The provider-assigned unique ID for this managed resource.
    member_vms Sequence[NsxtDynamicSecurityGroupMemberVm]
    A set of member VMs (if exist). see Member VMs below for details.
    id String
    The provider-assigned unique ID for this managed resource.
    memberVms List<Property Map>
    A set of member VMs (if exist). see Member VMs below for details.

    Look up Existing NsxtDynamicSecurityGroup Resource

    Get an existing NsxtDynamicSecurityGroup 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?: NsxtDynamicSecurityGroupState, opts?: CustomResourceOptions): NsxtDynamicSecurityGroup
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            criterias: Optional[Sequence[NsxtDynamicSecurityGroupCriteriaArgs]] = None,
            description: Optional[str] = None,
            member_vms: Optional[Sequence[NsxtDynamicSecurityGroupMemberVmArgs]] = None,
            name: Optional[str] = None,
            nsxt_dynamic_security_group_id: Optional[str] = None,
            org: Optional[str] = None,
            vdc_group_id: Optional[str] = None) -> NsxtDynamicSecurityGroup
    func GetNsxtDynamicSecurityGroup(ctx *Context, name string, id IDInput, state *NsxtDynamicSecurityGroupState, opts ...ResourceOption) (*NsxtDynamicSecurityGroup, error)
    public static NsxtDynamicSecurityGroup Get(string name, Input<string> id, NsxtDynamicSecurityGroupState? state, CustomResourceOptions? opts = null)
    public static NsxtDynamicSecurityGroup get(String name, Output<String> id, NsxtDynamicSecurityGroupState state, CustomResourceOptions options)
    resources:  _:    type: vcd:NsxtDynamicSecurityGroup    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:
    Criterias List<NsxtDynamicSecurityGroupCriteria>
    Up to 3 criteria for matching VMs. List of criteria is matched with boolean OR operation and matching any of defined criteria will include objects. Each criteria can contains up to 4 rule definitions.
    Description string
    An optional description of the Dynamic Security Group
    MemberVms List<NsxtDynamicSecurityGroupMemberVm>
    A set of member VMs (if exist). see Member VMs below for details.
    Name string
    A unique name for Dynamic Security Group
    NsxtDynamicSecurityGroupId string
    Org string
    The name of organization to use, optional if defined at provider level. Useful when connected as sysadmin working across different organisations.
    VdcGroupId string
    VDC Group ID for Dynamic Security Group creation.
    Criterias []NsxtDynamicSecurityGroupCriteriaArgs
    Up to 3 criteria for matching VMs. List of criteria is matched with boolean OR operation and matching any of defined criteria will include objects. Each criteria can contains up to 4 rule definitions.
    Description string
    An optional description of the Dynamic Security Group
    MemberVms []NsxtDynamicSecurityGroupMemberVmArgs
    A set of member VMs (if exist). see Member VMs below for details.
    Name string
    A unique name for Dynamic Security Group
    NsxtDynamicSecurityGroupId string
    Org string
    The name of organization to use, optional if defined at provider level. Useful when connected as sysadmin working across different organisations.
    VdcGroupId string
    VDC Group ID for Dynamic Security Group creation.
    criterias List<NsxtDynamicSecurityGroupCriteria>
    Up to 3 criteria for matching VMs. List of criteria is matched with boolean OR operation and matching any of defined criteria will include objects. Each criteria can contains up to 4 rule definitions.
    description String
    An optional description of the Dynamic Security Group
    memberVms List<NsxtDynamicSecurityGroupMemberVm>
    A set of member VMs (if exist). see Member VMs below for details.
    name String
    A unique name for Dynamic Security Group
    nsxtDynamicSecurityGroupId String
    org String
    The name of organization to use, optional if defined at provider level. Useful when connected as sysadmin working across different organisations.
    vdcGroupId String
    VDC Group ID for Dynamic Security Group creation.
    criterias NsxtDynamicSecurityGroupCriteria[]
    Up to 3 criteria for matching VMs. List of criteria is matched with boolean OR operation and matching any of defined criteria will include objects. Each criteria can contains up to 4 rule definitions.
    description string
    An optional description of the Dynamic Security Group
    memberVms NsxtDynamicSecurityGroupMemberVm[]
    A set of member VMs (if exist). see Member VMs below for details.
    name string
    A unique name for Dynamic Security Group
    nsxtDynamicSecurityGroupId string
    org string
    The name of organization to use, optional if defined at provider level. Useful when connected as sysadmin working across different organisations.
    vdcGroupId string
    VDC Group ID for Dynamic Security Group creation.
    criterias Sequence[NsxtDynamicSecurityGroupCriteriaArgs]
    Up to 3 criteria for matching VMs. List of criteria is matched with boolean OR operation and matching any of defined criteria will include objects. Each criteria can contains up to 4 rule definitions.
    description str
    An optional description of the Dynamic Security Group
    member_vms Sequence[NsxtDynamicSecurityGroupMemberVmArgs]
    A set of member VMs (if exist). see Member VMs below for details.
    name str
    A unique name for Dynamic Security Group
    nsxt_dynamic_security_group_id str
    org str
    The name of organization to use, optional if defined at provider level. Useful when connected as sysadmin working across different organisations.
    vdc_group_id str
    VDC Group ID for Dynamic Security Group creation.
    criterias List<Property Map>
    Up to 3 criteria for matching VMs. List of criteria is matched with boolean OR operation and matching any of defined criteria will include objects. Each criteria can contains up to 4 rule definitions.
    description String
    An optional description of the Dynamic Security Group
    memberVms List<Property Map>
    A set of member VMs (if exist). see Member VMs below for details.
    name String
    A unique name for Dynamic Security Group
    nsxtDynamicSecurityGroupId String
    org String
    The name of organization to use, optional if defined at provider level. Useful when connected as sysadmin working across different organisations.
    vdcGroupId String
    VDC Group ID for Dynamic Security Group creation.

    Supporting Types

    NsxtDynamicSecurityGroupCriteria, NsxtDynamicSecurityGroupCriteriaArgs

    Rules List<NsxtDynamicSecurityGroupCriteriaRule>

    Up to 4 rules for matching VMs. List of rules are matched with boolean AND operation and all defines rules must match to include object. See Rule for rule definition structure.

    Rules []NsxtDynamicSecurityGroupCriteriaRule

    Up to 4 rules for matching VMs. List of rules are matched with boolean AND operation and all defines rules must match to include object. See Rule for rule definition structure.

    rules List<NsxtDynamicSecurityGroupCriteriaRule>

    Up to 4 rules for matching VMs. List of rules are matched with boolean AND operation and all defines rules must match to include object. See Rule for rule definition structure.

    rules NsxtDynamicSecurityGroupCriteriaRule[]

    Up to 4 rules for matching VMs. List of rules are matched with boolean AND operation and all defines rules must match to include object. See Rule for rule definition structure.

    rules Sequence[NsxtDynamicSecurityGroupCriteriaRule]

    Up to 4 rules for matching VMs. List of rules are matched with boolean AND operation and all defines rules must match to include object. See Rule for rule definition structure.

    rules List<Property Map>

    Up to 4 rules for matching VMs. List of rules are matched with boolean AND operation and all defines rules must match to include object. See Rule for rule definition structure.

    NsxtDynamicSecurityGroupCriteriaRule, NsxtDynamicSecurityGroupCriteriaRuleArgs

    Operator string
    Operator can be one of 'EQUALS', 'CONTAINS', 'STARTS_WITH', 'ENDS_WITH'
    Type string
    Type of object matching 'VM_TAG' or 'VM_NAME'
    Value string
    Filter value
    Operator string
    Operator can be one of 'EQUALS', 'CONTAINS', 'STARTS_WITH', 'ENDS_WITH'
    Type string
    Type of object matching 'VM_TAG' or 'VM_NAME'
    Value string
    Filter value
    operator String
    Operator can be one of 'EQUALS', 'CONTAINS', 'STARTS_WITH', 'ENDS_WITH'
    type String
    Type of object matching 'VM_TAG' or 'VM_NAME'
    value String
    Filter value
    operator string
    Operator can be one of 'EQUALS', 'CONTAINS', 'STARTS_WITH', 'ENDS_WITH'
    type string
    Type of object matching 'VM_TAG' or 'VM_NAME'
    value string
    Filter value
    operator str
    Operator can be one of 'EQUALS', 'CONTAINS', 'STARTS_WITH', 'ENDS_WITH'
    type str
    Type of object matching 'VM_TAG' or 'VM_NAME'
    value str
    Filter value
    operator String
    Operator can be one of 'EQUALS', 'CONTAINS', 'STARTS_WITH', 'ENDS_WITH'
    type String
    Type of object matching 'VM_TAG' or 'VM_NAME'
    value String
    Filter value

    NsxtDynamicSecurityGroupMemberVm, NsxtDynamicSecurityGroupMemberVmArgs

    VappId string
    VappName string
    VmId string
    VmName string
    VappId string
    VappName string
    VmId string
    VmName string
    vappId String
    vappName String
    vmId String
    vmName String
    vappId string
    vappName string
    vmId string
    vmName string
    vappId String
    vappName String
    vmId String
    vmName String

    Package Details

    Repository
    vcd vmware/terraform-provider-vcd
    License
    Notes
    This Pulumi package is based on the vcd Terraform Provider.
    vcd logo
    vcd 3.14.1 published on Monday, Apr 14, 2025 by vmware