vcd.NsxtSecurityGroup
Explore with Pulumi AI
Create NsxtSecurityGroup Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new NsxtSecurityGroup(name: string, args: NsxtSecurityGroupArgs, opts?: CustomResourceOptions);
@overload
def NsxtSecurityGroup(resource_name: str,
args: NsxtSecurityGroupArgs,
opts: Optional[ResourceOptions] = None)
@overload
def NsxtSecurityGroup(resource_name: str,
opts: Optional[ResourceOptions] = None,
edge_gateway_id: Optional[str] = None,
description: Optional[str] = None,
member_org_network_ids: Optional[Sequence[str]] = None,
name: Optional[str] = None,
nsxt_security_group_id: Optional[str] = None,
org: Optional[str] = None,
vdc: Optional[str] = None)
func NewNsxtSecurityGroup(ctx *Context, name string, args NsxtSecurityGroupArgs, opts ...ResourceOption) (*NsxtSecurityGroup, error)
public NsxtSecurityGroup(string name, NsxtSecurityGroupArgs args, CustomResourceOptions? opts = null)
public NsxtSecurityGroup(String name, NsxtSecurityGroupArgs args)
public NsxtSecurityGroup(String name, NsxtSecurityGroupArgs args, CustomResourceOptions options)
type: vcd:NsxtSecurityGroup
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 NsxtSecurityGroupArgs
- 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 NsxtSecurityGroupArgs
- 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 NsxtSecurityGroupArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args NsxtSecurityGroupArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args NsxtSecurityGroupArgs
- 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 nsxtSecurityGroupResource = new Vcd.NsxtSecurityGroup("nsxtSecurityGroupResource", new()
{
EdgeGatewayId = "string",
Description = "string",
MemberOrgNetworkIds = new[]
{
"string",
},
Name = "string",
NsxtSecurityGroupId = "string",
Org = "string",
});
example, err := vcd.NewNsxtSecurityGroup(ctx, "nsxtSecurityGroupResource", &vcd.NsxtSecurityGroupArgs{
EdgeGatewayId: pulumi.String("string"),
Description: pulumi.String("string"),
MemberOrgNetworkIds: pulumi.StringArray{
pulumi.String("string"),
},
Name: pulumi.String("string"),
NsxtSecurityGroupId: pulumi.String("string"),
Org: pulumi.String("string"),
})
var nsxtSecurityGroupResource = new NsxtSecurityGroup("nsxtSecurityGroupResource", NsxtSecurityGroupArgs.builder()
.edgeGatewayId("string")
.description("string")
.memberOrgNetworkIds("string")
.name("string")
.nsxtSecurityGroupId("string")
.org("string")
.build());
nsxt_security_group_resource = vcd.NsxtSecurityGroup("nsxtSecurityGroupResource",
edge_gateway_id="string",
description="string",
member_org_network_ids=["string"],
name="string",
nsxt_security_group_id="string",
org="string")
const nsxtSecurityGroupResource = new vcd.NsxtSecurityGroup("nsxtSecurityGroupResource", {
edgeGatewayId: "string",
description: "string",
memberOrgNetworkIds: ["string"],
name: "string",
nsxtSecurityGroupId: "string",
org: "string",
});
type: vcd:NsxtSecurityGroup
properties:
description: string
edgeGatewayId: string
memberOrgNetworkIds:
- string
name: string
nsxtSecurityGroupId: string
org: string
NsxtSecurityGroup 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 NsxtSecurityGroup resource accepts the following input properties:
- Edge
Gateway stringId - The ID of the Edge Gateway (NSX-T only). Can be looked up using
vcd.NsxtEdgegateway
data source - Description string
- An optional description of the Security Group
- Member
Org List<string>Network Ids - A set of Org Network IDs
- Name string
- A unique name for Security Group
- Nsxt
Security stringGroup 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 string
- The name of VDC to use, optional if defined at provider level. Deprecated
in favor of
edge_gateway_id
field.
- Edge
Gateway stringId - The ID of the Edge Gateway (NSX-T only). Can be looked up using
vcd.NsxtEdgegateway
data source - Description string
- An optional description of the Security Group
- Member
Org []stringNetwork Ids - A set of Org Network IDs
- Name string
- A unique name for Security Group
- Nsxt
Security stringGroup 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 string
- The name of VDC to use, optional if defined at provider level. Deprecated
in favor of
edge_gateway_id
field.
- edge
Gateway StringId - The ID of the Edge Gateway (NSX-T only). Can be looked up using
vcd.NsxtEdgegateway
data source - description String
- An optional description of the Security Group
- member
Org List<String>Network Ids - A set of Org Network IDs
- name String
- A unique name for Security Group
- nsxt
Security StringGroup 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 String
- The name of VDC to use, optional if defined at provider level. Deprecated
in favor of
edge_gateway_id
field.
- edge
Gateway stringId - The ID of the Edge Gateway (NSX-T only). Can be looked up using
vcd.NsxtEdgegateway
data source - description string
- An optional description of the Security Group
- member
Org string[]Network Ids - A set of Org Network IDs
- name string
- A unique name for Security Group
- nsxt
Security stringGroup 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 string
- The name of VDC to use, optional if defined at provider level. Deprecated
in favor of
edge_gateway_id
field.
- edge_
gateway_ strid - The ID of the Edge Gateway (NSX-T only). Can be looked up using
vcd.NsxtEdgegateway
data source - description str
- An optional description of the Security Group
- member_
org_ Sequence[str]network_ ids - A set of Org Network IDs
- name str
- A unique name for Security Group
- nsxt_
security_ strgroup_ 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 str
- The name of VDC to use, optional if defined at provider level. Deprecated
in favor of
edge_gateway_id
field.
- edge
Gateway StringId - The ID of the Edge Gateway (NSX-T only). Can be looked up using
vcd.NsxtEdgegateway
data source - description String
- An optional description of the Security Group
- member
Org List<String>Network Ids - A set of Org Network IDs
- name String
- A unique name for Security Group
- nsxt
Security StringGroup 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 String
- The name of VDC to use, optional if defined at provider level. Deprecated
in favor of
edge_gateway_id
field.
Outputs
All input properties are implicitly available as output properties. Additionally, the NsxtSecurityGroup resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Member
Vms List<NsxtSecurity Group Member Vm> - A set of member VMs (if exist). see Member VMs below for details.
- Owner
Id string - ID of VDC or VDC Group
- Id string
- The provider-assigned unique ID for this managed resource.
- Member
Vms []NsxtSecurity Group Member Vm - A set of member VMs (if exist). see Member VMs below for details.
- Owner
Id string - ID of VDC or VDC Group
- id String
- The provider-assigned unique ID for this managed resource.
- member
Vms List<NsxtSecurity Group Member Vm> - A set of member VMs (if exist). see Member VMs below for details.
- owner
Id String - ID of VDC or VDC Group
- id string
- The provider-assigned unique ID for this managed resource.
- member
Vms NsxtSecurity Group Member Vm[] - A set of member VMs (if exist). see Member VMs below for details.
- owner
Id string - ID of VDC or VDC Group
- id str
- The provider-assigned unique ID for this managed resource.
- member_
vms Sequence[NsxtSecurity Group Member Vm] - A set of member VMs (if exist). see Member VMs below for details.
- owner_
id str - ID of VDC or VDC Group
- 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.
- owner
Id String - ID of VDC or VDC Group
Look up Existing NsxtSecurityGroup Resource
Get an existing NsxtSecurityGroup 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?: NsxtSecurityGroupState, opts?: CustomResourceOptions): NsxtSecurityGroup
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
description: Optional[str] = None,
edge_gateway_id: Optional[str] = None,
member_org_network_ids: Optional[Sequence[str]] = None,
member_vms: Optional[Sequence[NsxtSecurityGroupMemberVmArgs]] = None,
name: Optional[str] = None,
nsxt_security_group_id: Optional[str] = None,
org: Optional[str] = None,
owner_id: Optional[str] = None,
vdc: Optional[str] = None) -> NsxtSecurityGroup
func GetNsxtSecurityGroup(ctx *Context, name string, id IDInput, state *NsxtSecurityGroupState, opts ...ResourceOption) (*NsxtSecurityGroup, error)
public static NsxtSecurityGroup Get(string name, Input<string> id, NsxtSecurityGroupState? state, CustomResourceOptions? opts = null)
public static NsxtSecurityGroup get(String name, Output<String> id, NsxtSecurityGroupState state, CustomResourceOptions options)
resources: _: type: vcd:NsxtSecurityGroup 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
- An optional description of the Security Group
- Edge
Gateway stringId - The ID of the Edge Gateway (NSX-T only). Can be looked up using
vcd.NsxtEdgegateway
data source - Member
Org List<string>Network Ids - A set of Org Network IDs
- Member
Vms List<NsxtSecurity Group Member Vm> - A set of member VMs (if exist). see Member VMs below for details.
- Name string
- A unique name for Security Group
- Nsxt
Security stringGroup Id - Org string
- The name of organization to use, optional if defined at provider level. Useful when connected as sysadmin working across different organisations.
- Owner
Id string - ID of VDC or VDC Group
- Vdc string
- The name of VDC to use, optional if defined at provider level. Deprecated
in favor of
edge_gateway_id
field.
- Description string
- An optional description of the Security Group
- Edge
Gateway stringId - The ID of the Edge Gateway (NSX-T only). Can be looked up using
vcd.NsxtEdgegateway
data source - Member
Org []stringNetwork Ids - A set of Org Network IDs
- Member
Vms []NsxtSecurity Group Member Vm Args - A set of member VMs (if exist). see Member VMs below for details.
- Name string
- A unique name for Security Group
- Nsxt
Security stringGroup Id - Org string
- The name of organization to use, optional if defined at provider level. Useful when connected as sysadmin working across different organisations.
- Owner
Id string - ID of VDC or VDC Group
- Vdc string
- The name of VDC to use, optional if defined at provider level. Deprecated
in favor of
edge_gateway_id
field.
- description String
- An optional description of the Security Group
- edge
Gateway StringId - The ID of the Edge Gateway (NSX-T only). Can be looked up using
vcd.NsxtEdgegateway
data source - member
Org List<String>Network Ids - A set of Org Network IDs
- member
Vms List<NsxtSecurity Group Member Vm> - A set of member VMs (if exist). see Member VMs below for details.
- name String
- A unique name for Security Group
- nsxt
Security StringGroup Id - org String
- The name of organization to use, optional if defined at provider level. Useful when connected as sysadmin working across different organisations.
- owner
Id String - ID of VDC or VDC Group
- vdc String
- The name of VDC to use, optional if defined at provider level. Deprecated
in favor of
edge_gateway_id
field.
- description string
- An optional description of the Security Group
- edge
Gateway stringId - The ID of the Edge Gateway (NSX-T only). Can be looked up using
vcd.NsxtEdgegateway
data source - member
Org string[]Network Ids - A set of Org Network IDs
- member
Vms NsxtSecurity Group Member Vm[] - A set of member VMs (if exist). see Member VMs below for details.
- name string
- A unique name for Security Group
- nsxt
Security stringGroup Id - org string
- The name of organization to use, optional if defined at provider level. Useful when connected as sysadmin working across different organisations.
- owner
Id string - ID of VDC or VDC Group
- vdc string
- The name of VDC to use, optional if defined at provider level. Deprecated
in favor of
edge_gateway_id
field.
- description str
- An optional description of the Security Group
- edge_
gateway_ strid - The ID of the Edge Gateway (NSX-T only). Can be looked up using
vcd.NsxtEdgegateway
data source - member_
org_ Sequence[str]network_ ids - A set of Org Network IDs
- member_
vms Sequence[NsxtSecurity Group Member Vm Args] - A set of member VMs (if exist). see Member VMs below for details.
- name str
- A unique name for Security Group
- nsxt_
security_ strgroup_ id - org str
- The name of organization to use, optional if defined at provider level. Useful when connected as sysadmin working across different organisations.
- owner_
id str - ID of VDC or VDC Group
- vdc str
- The name of VDC to use, optional if defined at provider level. Deprecated
in favor of
edge_gateway_id
field.
- description String
- An optional description of the Security Group
- edge
Gateway StringId - The ID of the Edge Gateway (NSX-T only). Can be looked up using
vcd.NsxtEdgegateway
data source - member
Org List<String>Network Ids - A set of Org Network IDs
- member
Vms List<Property Map> - A set of member VMs (if exist). see Member VMs below for details.
- name String
- A unique name for Security Group
- nsxt
Security StringGroup Id - org String
- The name of organization to use, optional if defined at provider level. Useful when connected as sysadmin working across different organisations.
- owner
Id String - ID of VDC or VDC Group
- vdc String
- The name of VDC to use, optional if defined at provider level. Deprecated
in favor of
edge_gateway_id
field.
Supporting Types
NsxtSecurityGroupMemberVm, NsxtSecurityGroupMemberVmArgs
Package Details
- Repository
- vcd vmware/terraform-provider-vcd
- License
- Notes
- This Pulumi package is based on the
vcd
Terraform Provider.