nsxt.NsGroup
Explore with Pulumi AI
Create NsGroup Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new NsGroup(name: string, args?: NsGroupArgs, opts?: CustomResourceOptions);
@overload
def NsGroup(resource_name: str,
args: Optional[NsGroupArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def NsGroup(resource_name: str,
opts: Optional[ResourceOptions] = None,
description: Optional[str] = None,
display_name: Optional[str] = None,
members: Optional[Sequence[NsGroupMemberArgs]] = None,
membership_criterias: Optional[Sequence[NsGroupMembershipCriteriaArgs]] = None,
ns_group_id: Optional[str] = None,
tags: Optional[Sequence[NsGroupTagArgs]] = None)
func NewNsGroup(ctx *Context, name string, args *NsGroupArgs, opts ...ResourceOption) (*NsGroup, error)
public NsGroup(string name, NsGroupArgs? args = null, CustomResourceOptions? opts = null)
public NsGroup(String name, NsGroupArgs args)
public NsGroup(String name, NsGroupArgs args, CustomResourceOptions options)
type: nsxt:NsGroup
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 NsGroupArgs
- 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 NsGroupArgs
- 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 NsGroupArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args NsGroupArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args NsGroupArgs
- 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 nsGroupResource = new Nsxt.NsGroup("nsGroupResource", new()
{
Description = "string",
DisplayName = "string",
Members = new[]
{
new Nsxt.Inputs.NsGroupMemberArgs
{
TargetType = "string",
Value = "string",
},
},
MembershipCriterias = new[]
{
new Nsxt.Inputs.NsGroupMembershipCriteriaArgs
{
TargetType = "string",
Scope = "string",
ScopeOp = "string",
Tag = "string",
TagOp = "string",
},
},
NsGroupId = "string",
Tags = new[]
{
new Nsxt.Inputs.NsGroupTagArgs
{
Scope = "string",
Tag = "string",
},
},
});
example, err := nsxt.NewNsGroup(ctx, "nsGroupResource", &nsxt.NsGroupArgs{
Description: pulumi.String("string"),
DisplayName: pulumi.String("string"),
Members: nsxt.NsGroupMemberArray{
&nsxt.NsGroupMemberArgs{
TargetType: pulumi.String("string"),
Value: pulumi.String("string"),
},
},
MembershipCriterias: nsxt.NsGroupMembershipCriteriaArray{
&nsxt.NsGroupMembershipCriteriaArgs{
TargetType: pulumi.String("string"),
Scope: pulumi.String("string"),
ScopeOp: pulumi.String("string"),
Tag: pulumi.String("string"),
TagOp: pulumi.String("string"),
},
},
NsGroupId: pulumi.String("string"),
Tags: nsxt.NsGroupTagArray{
&nsxt.NsGroupTagArgs{
Scope: pulumi.String("string"),
Tag: pulumi.String("string"),
},
},
})
var nsGroupResource = new NsGroup("nsGroupResource", NsGroupArgs.builder()
.description("string")
.displayName("string")
.members(NsGroupMemberArgs.builder()
.targetType("string")
.value("string")
.build())
.membershipCriterias(NsGroupMembershipCriteriaArgs.builder()
.targetType("string")
.scope("string")
.scopeOp("string")
.tag("string")
.tagOp("string")
.build())
.nsGroupId("string")
.tags(NsGroupTagArgs.builder()
.scope("string")
.tag("string")
.build())
.build());
ns_group_resource = nsxt.NsGroup("nsGroupResource",
description="string",
display_name="string",
members=[{
"target_type": "string",
"value": "string",
}],
membership_criterias=[{
"target_type": "string",
"scope": "string",
"scope_op": "string",
"tag": "string",
"tag_op": "string",
}],
ns_group_id="string",
tags=[{
"scope": "string",
"tag": "string",
}])
const nsGroupResource = new nsxt.NsGroup("nsGroupResource", {
description: "string",
displayName: "string",
members: [{
targetType: "string",
value: "string",
}],
membershipCriterias: [{
targetType: "string",
scope: "string",
scopeOp: "string",
tag: "string",
tagOp: "string",
}],
nsGroupId: "string",
tags: [{
scope: "string",
tag: "string",
}],
});
type: nsxt:NsGroup
properties:
description: string
displayName: string
members:
- targetType: string
value: string
membershipCriterias:
- scope: string
scopeOp: string
tag: string
tagOp: string
targetType: string
nsGroupId: string
tags:
- scope: string
tag: string
NsGroup 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 NsGroup resource accepts the following input properties:
- Description string
- Description of this resource.
- Display
Name string - The display name of this resource. Defaults to ID if not set.
- Members
List<Ns
Group Member> - Reference to the direct/static members of the NSGroup. Can be ID based expressions only. VirtualMachine cannot be added as a static member.
- Membership
Criterias List<NsGroup Membership Criteria> - List of tag or ID expressions which define the membership criteria for this NSGroup. An object must satisfy at least one of these expressions to qualify as a member of this group.
- Ns
Group stringId - ID of the NS group.
- List<Ns
Group Tag> - A list of scope + tag pairs to associate with this NS group.
- Description string
- Description of this resource.
- Display
Name string - The display name of this resource. Defaults to ID if not set.
- Members
[]Ns
Group Member Args - Reference to the direct/static members of the NSGroup. Can be ID based expressions only. VirtualMachine cannot be added as a static member.
- Membership
Criterias []NsGroup Membership Criteria Args - List of tag or ID expressions which define the membership criteria for this NSGroup. An object must satisfy at least one of these expressions to qualify as a member of this group.
- Ns
Group stringId - ID of the NS group.
- []Ns
Group Tag Args - A list of scope + tag pairs to associate with this NS group.
- description String
- Description of this resource.
- display
Name String - The display name of this resource. Defaults to ID if not set.
- members
List<Ns
Group Member> - Reference to the direct/static members of the NSGroup. Can be ID based expressions only. VirtualMachine cannot be added as a static member.
- membership
Criterias List<NsGroup Membership Criteria> - List of tag or ID expressions which define the membership criteria for this NSGroup. An object must satisfy at least one of these expressions to qualify as a member of this group.
- ns
Group StringId - ID of the NS group.
- List<Ns
Group Tag> - A list of scope + tag pairs to associate with this NS group.
- description string
- Description of this resource.
- display
Name string - The display name of this resource. Defaults to ID if not set.
- members
Ns
Group Member[] - Reference to the direct/static members of the NSGroup. Can be ID based expressions only. VirtualMachine cannot be added as a static member.
- membership
Criterias NsGroup Membership Criteria[] - List of tag or ID expressions which define the membership criteria for this NSGroup. An object must satisfy at least one of these expressions to qualify as a member of this group.
- ns
Group stringId - ID of the NS group.
- Ns
Group Tag[] - A list of scope + tag pairs to associate with this NS group.
- description str
- Description of this resource.
- display_
name str - The display name of this resource. Defaults to ID if not set.
- members
Sequence[Ns
Group Member Args] - Reference to the direct/static members of the NSGroup. Can be ID based expressions only. VirtualMachine cannot be added as a static member.
- membership_
criterias Sequence[NsGroup Membership Criteria Args] - List of tag or ID expressions which define the membership criteria for this NSGroup. An object must satisfy at least one of these expressions to qualify as a member of this group.
- ns_
group_ strid - ID of the NS group.
- Sequence[Ns
Group Tag Args] - A list of scope + tag pairs to associate with this NS group.
- description String
- Description of this resource.
- display
Name String - The display name of this resource. Defaults to ID if not set.
- members List<Property Map>
- Reference to the direct/static members of the NSGroup. Can be ID based expressions only. VirtualMachine cannot be added as a static member.
- membership
Criterias List<Property Map> - List of tag or ID expressions which define the membership criteria for this NSGroup. An object must satisfy at least one of these expressions to qualify as a member of this group.
- ns
Group StringId - ID of the NS group.
- List<Property Map>
- A list of scope + tag pairs to associate with this NS group.
Outputs
All input properties are implicitly available as output properties. Additionally, the NsGroup resource produces the following output properties:
Look up Existing NsGroup Resource
Get an existing NsGroup 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?: NsGroupState, opts?: CustomResourceOptions): NsGroup
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
description: Optional[str] = None,
display_name: Optional[str] = None,
members: Optional[Sequence[NsGroupMemberArgs]] = None,
membership_criterias: Optional[Sequence[NsGroupMembershipCriteriaArgs]] = None,
ns_group_id: Optional[str] = None,
revision: Optional[float] = None,
tags: Optional[Sequence[NsGroupTagArgs]] = None) -> NsGroup
func GetNsGroup(ctx *Context, name string, id IDInput, state *NsGroupState, opts ...ResourceOption) (*NsGroup, error)
public static NsGroup Get(string name, Input<string> id, NsGroupState? state, CustomResourceOptions? opts = null)
public static NsGroup get(String name, Output<String> id, NsGroupState state, CustomResourceOptions options)
resources: _: type: nsxt:NsGroup 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.
- Description string
- Description of this resource.
- Display
Name string - The display name of this resource. Defaults to ID if not set.
- Members
List<Ns
Group Member> - Reference to the direct/static members of the NSGroup. Can be ID based expressions only. VirtualMachine cannot be added as a static member.
- Membership
Criterias List<NsGroup Membership Criteria> - List of tag or ID expressions which define the membership criteria for this NSGroup. An object must satisfy at least one of these expressions to qualify as a member of this group.
- Ns
Group stringId - ID of the NS group.
- Revision double
- Indicates current revision number of the object as seen by NSX-T API server. This attribute can be useful for debugging.
- List<Ns
Group Tag> - A list of scope + tag pairs to associate with this NS group.
- Description string
- Description of this resource.
- Display
Name string - The display name of this resource. Defaults to ID if not set.
- Members
[]Ns
Group Member Args - Reference to the direct/static members of the NSGroup. Can be ID based expressions only. VirtualMachine cannot be added as a static member.
- Membership
Criterias []NsGroup Membership Criteria Args - List of tag or ID expressions which define the membership criteria for this NSGroup. An object must satisfy at least one of these expressions to qualify as a member of this group.
- Ns
Group stringId - ID of the NS group.
- Revision float64
- Indicates current revision number of the object as seen by NSX-T API server. This attribute can be useful for debugging.
- []Ns
Group Tag Args - A list of scope + tag pairs to associate with this NS group.
- description String
- Description of this resource.
- display
Name String - The display name of this resource. Defaults to ID if not set.
- members
List<Ns
Group Member> - Reference to the direct/static members of the NSGroup. Can be ID based expressions only. VirtualMachine cannot be added as a static member.
- membership
Criterias List<NsGroup Membership Criteria> - List of tag or ID expressions which define the membership criteria for this NSGroup. An object must satisfy at least one of these expressions to qualify as a member of this group.
- ns
Group StringId - ID of the NS group.
- revision Double
- Indicates current revision number of the object as seen by NSX-T API server. This attribute can be useful for debugging.
- List<Ns
Group Tag> - A list of scope + tag pairs to associate with this NS group.
- description string
- Description of this resource.
- display
Name string - The display name of this resource. Defaults to ID if not set.
- members
Ns
Group Member[] - Reference to the direct/static members of the NSGroup. Can be ID based expressions only. VirtualMachine cannot be added as a static member.
- membership
Criterias NsGroup Membership Criteria[] - List of tag or ID expressions which define the membership criteria for this NSGroup. An object must satisfy at least one of these expressions to qualify as a member of this group.
- ns
Group stringId - ID of the NS group.
- revision number
- Indicates current revision number of the object as seen by NSX-T API server. This attribute can be useful for debugging.
- Ns
Group Tag[] - A list of scope + tag pairs to associate with this NS group.
- description str
- Description of this resource.
- display_
name str - The display name of this resource. Defaults to ID if not set.
- members
Sequence[Ns
Group Member Args] - Reference to the direct/static members of the NSGroup. Can be ID based expressions only. VirtualMachine cannot be added as a static member.
- membership_
criterias Sequence[NsGroup Membership Criteria Args] - List of tag or ID expressions which define the membership criteria for this NSGroup. An object must satisfy at least one of these expressions to qualify as a member of this group.
- ns_
group_ strid - ID of the NS group.
- revision float
- Indicates current revision number of the object as seen by NSX-T API server. This attribute can be useful for debugging.
- Sequence[Ns
Group Tag Args] - A list of scope + tag pairs to associate with this NS group.
- description String
- Description of this resource.
- display
Name String - The display name of this resource. Defaults to ID if not set.
- members List<Property Map>
- Reference to the direct/static members of the NSGroup. Can be ID based expressions only. VirtualMachine cannot be added as a static member.
- membership
Criterias List<Property Map> - List of tag or ID expressions which define the membership criteria for this NSGroup. An object must satisfy at least one of these expressions to qualify as a member of this group.
- ns
Group StringId - ID of the NS group.
- 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 NS group.
Supporting Types
NsGroupMember, NsGroupMemberArgs
- Target
Type string - Static member type, one of: NSGroup, IPSet, LogicalPort, LogicalSwitch, MACSet
- Value string
- Member ID
- Target
Type string - Static member type, one of: NSGroup, IPSet, LogicalPort, LogicalSwitch, MACSet
- Value string
- Member ID
- target
Type String - Static member type, one of: NSGroup, IPSet, LogicalPort, LogicalSwitch, MACSet
- value String
- Member ID
- target
Type string - Static member type, one of: NSGroup, IPSet, LogicalPort, LogicalSwitch, MACSet
- value string
- Member ID
- target_
type str - Static member type, one of: NSGroup, IPSet, LogicalPort, LogicalSwitch, MACSet
- value str
- Member ID
- target
Type String - Static member type, one of: NSGroup, IPSet, LogicalPort, LogicalSwitch, MACSet
- value String
- Member ID
NsGroupMembershipCriteria, NsGroupMembershipCriteriaArgs
- Target
Type string - Dynamic member type, one of: LogicalPort, LogicalSwitch, VirtualMachine.
- Scope string
- Tag scope for matching dynamic members.
- Scope
Op string - Tag string
- Tag value for matching dynamic members.
- Tag
Op string
- Target
Type string - Dynamic member type, one of: LogicalPort, LogicalSwitch, VirtualMachine.
- Scope string
- Tag scope for matching dynamic members.
- Scope
Op string - Tag string
- Tag value for matching dynamic members.
- Tag
Op string
- target
Type String - Dynamic member type, one of: LogicalPort, LogicalSwitch, VirtualMachine.
- scope String
- Tag scope for matching dynamic members.
- scope
Op String - tag String
- Tag value for matching dynamic members.
- tag
Op String
- target
Type string - Dynamic member type, one of: LogicalPort, LogicalSwitch, VirtualMachine.
- scope string
- Tag scope for matching dynamic members.
- scope
Op string - tag string
- Tag value for matching dynamic members.
- tag
Op string
- target_
type str - Dynamic member type, one of: LogicalPort, LogicalSwitch, VirtualMachine.
- scope str
- Tag scope for matching dynamic members.
- scope_
op str - tag str
- Tag value for matching dynamic members.
- tag_
op str
- target
Type String - Dynamic member type, one of: LogicalPort, LogicalSwitch, VirtualMachine.
- scope String
- Tag scope for matching dynamic members.
- scope
Op String - tag String
- Tag value for matching dynamic members.
- tag
Op String
NsGroupTag, NsGroupTagArgs
Package Details
- Repository
- nsxt vmware/terraform-provider-nsxt
- License
- Notes
- This Pulumi package is based on the
nsxt
Terraform Provider.