vcd.NsxtDynamicSecurityGroup
Explore with Pulumi AI
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:
- Vdc
Group stringId - VDC Group ID for Dynamic Security Group creation.
- Criterias
List<Nsxt
Dynamic Security Group Criteria> - 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. Eachcriteria
can contains up to 4rule
definitions. - Description string
- An optional description of the Dynamic Security Group
- Name string
- A unique name for Dynamic Security Group
- Nsxt
Dynamic stringSecurity Group Id - 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 stringId - VDC Group ID for Dynamic Security Group creation.
- Criterias
[]Nsxt
Dynamic Security Group Criteria Args - 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. Eachcriteria
can contains up to 4rule
definitions. - Description string
- An optional description of the Dynamic Security Group
- Name string
- A unique name for Dynamic Security Group
- Nsxt
Dynamic stringSecurity Group Id - 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 StringId - VDC Group ID for Dynamic Security Group creation.
- criterias
List<Nsxt
Dynamic Security Group Criteria> - 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. Eachcriteria
can contains up to 4rule
definitions. - description String
- An optional description of the Dynamic Security Group
- name String
- A unique name for Dynamic Security Group
- nsxt
Dynamic StringSecurity Group Id - 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 stringId - VDC Group ID for Dynamic Security Group creation.
- criterias
Nsxt
Dynamic Security Group Criteria[] - 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. Eachcriteria
can contains up to 4rule
definitions. - description string
- An optional description of the Dynamic Security Group
- name string
- A unique name for Dynamic Security Group
- nsxt
Dynamic stringSecurity Group Id - 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_ strid - VDC Group ID for Dynamic Security Group creation.
- criterias
Sequence[Nsxt
Dynamic Security Group Criteria Args] - 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. Eachcriteria
can contains up to 4rule
definitions. - description str
- An optional description of the Dynamic Security Group
- name str
- A unique name for Dynamic Security Group
- nsxt_
dynamic_ strsecurity_ group_ id - 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 StringId - 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. Eachcriteria
can contains up to 4rule
definitions. - description String
- An optional description of the Dynamic Security Group
- name String
- A unique name for Dynamic Security Group
- nsxt
Dynamic StringSecurity Group Id - 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.
- Member
Vms List<NsxtDynamic Security Group Member Vm> - A set of member VMs (if exist). see Member VMs below for details.
- Id string
- The provider-assigned unique ID for this managed resource.
- Member
Vms []NsxtDynamic Security Group Member Vm - A set of member VMs (if exist). see Member VMs below for details.
- id String
- The provider-assigned unique ID for this managed resource.
- member
Vms List<NsxtDynamic Security Group Member Vm> - A set of member VMs (if exist). see Member VMs below for details.
- id string
- The provider-assigned unique ID for this managed resource.
- member
Vms NsxtDynamic Security Group Member Vm[] - 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[NsxtDynamic Security Group Member Vm] - A set of member VMs (if exist). see Member VMs below for details.
- id String
- The provider-assigned unique ID for this managed resource.
- member
Vms 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.
- Criterias
List<Nsxt
Dynamic Security Group Criteria> - 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. Eachcriteria
can contains up to 4rule
definitions. - Description string
- An optional description of the Dynamic Security Group
- Member
Vms List<NsxtDynamic Security Group Member Vm> - A set of member VMs (if exist). see Member VMs below for details.
- Name string
- A unique name for Dynamic Security Group
- Nsxt
Dynamic stringSecurity Group Id - 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 stringId - VDC Group ID for Dynamic Security Group creation.
- Criterias
[]Nsxt
Dynamic Security Group Criteria Args - 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. Eachcriteria
can contains up to 4rule
definitions. - Description string
- An optional description of the Dynamic Security Group
- Member
Vms []NsxtDynamic Security Group Member Vm Args - A set of member VMs (if exist). see Member VMs below for details.
- Name string
- A unique name for Dynamic Security Group
- Nsxt
Dynamic stringSecurity Group Id - 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 stringId - VDC Group ID for Dynamic Security Group creation.
- criterias
List<Nsxt
Dynamic Security Group Criteria> - 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. Eachcriteria
can contains up to 4rule
definitions. - description String
- An optional description of the Dynamic Security Group
- member
Vms List<NsxtDynamic Security Group Member Vm> - A set of member VMs (if exist). see Member VMs below for details.
- name String
- A unique name for Dynamic Security Group
- nsxt
Dynamic StringSecurity Group Id - 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 StringId - VDC Group ID for Dynamic Security Group creation.
- criterias
Nsxt
Dynamic Security Group Criteria[] - 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. Eachcriteria
can contains up to 4rule
definitions. - description string
- An optional description of the Dynamic Security Group
- member
Vms NsxtDynamic Security Group Member Vm[] - A set of member VMs (if exist). see Member VMs below for details.
- name string
- A unique name for Dynamic Security Group
- nsxt
Dynamic stringSecurity Group Id - 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 stringId - VDC Group ID for Dynamic Security Group creation.
- criterias
Sequence[Nsxt
Dynamic Security Group Criteria Args] - 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. Eachcriteria
can contains up to 4rule
definitions. - description str
- An optional description of the Dynamic Security Group
- member_
vms Sequence[NsxtDynamic Security Group Member Vm Args] - A set of member VMs (if exist). see Member VMs below for details.
- name str
- A unique name for Dynamic Security Group
- nsxt_
dynamic_ strsecurity_ group_ id - 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_ strid - 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. Eachcriteria
can contains up to 4rule
definitions. - description String
- An optional description of the Dynamic Security Group
- member
Vms 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
- nsxt
Dynamic StringSecurity Group Id - 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 StringId - VDC Group ID for Dynamic Security Group creation.
Supporting Types
NsxtDynamicSecurityGroupCriteria, NsxtDynamicSecurityGroupCriteriaArgs
- Rules
List<Nsxt
Dynamic Security Group Criteria Rule> 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
[]Nsxt
Dynamic Security Group Criteria Rule 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<Nsxt
Dynamic Security Group Criteria Rule> 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
Nsxt
Dynamic Security Group Criteria Rule[] 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[Nsxt
Dynamic Security Group Criteria Rule] 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
NsxtDynamicSecurityGroupMemberVm, NsxtDynamicSecurityGroupMemberVmArgs
Package Details
- Repository
- vcd vmware/terraform-provider-vcd
- License
- Notes
- This Pulumi package is based on the
vcd
Terraform Provider.