vcd.getNsxtSegmentSecurityProfile
Explore with Pulumi AI
Provides a VMware Cloud Director NSX-T Segment Security Profile data source. This can be used to read NSX-T Segment Profile definitions.
Supported in provider v3.11+.
Example Usage
Segment Security Profile)
import * as pulumi from "@pulumi/pulumi";
import * as vcd from "@pulumi/vcd";
const nsxt = vcd.getNsxtManager({
name: "nsxManager1",
});
const first = nsxt.then(nsxt => vcd.getNsxtSegmentSecurityProfile({
name: "segment-security-profile-0",
nsxtManagerId: nsxt.id,
}));
import pulumi
import pulumi_vcd as vcd
nsxt = vcd.get_nsxt_manager(name="nsxManager1")
first = vcd.get_nsxt_segment_security_profile(name="segment-security-profile-0",
nsxt_manager_id=nsxt.id)
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/vcd/v3/vcd"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
nsxt, err := vcd.GetNsxtManager(ctx, &vcd.GetNsxtManagerArgs{
Name: "nsxManager1",
}, nil)
if err != nil {
return err
}
_, err = vcd.GetNsxtSegmentSecurityProfile(ctx, &vcd.GetNsxtSegmentSecurityProfileArgs{
Name: "segment-security-profile-0",
NsxtManagerId: pulumi.StringRef(nsxt.Id),
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Vcd = Pulumi.Vcd;
return await Deployment.RunAsync(() =>
{
var nsxt = Vcd.GetNsxtManager.Invoke(new()
{
Name = "nsxManager1",
});
var first = Vcd.GetNsxtSegmentSecurityProfile.Invoke(new()
{
Name = "segment-security-profile-0",
NsxtManagerId = nsxt.Apply(getNsxtManagerResult => getNsxtManagerResult.Id),
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.vcd.VcdFunctions;
import com.pulumi.vcd.inputs.GetNsxtManagerArgs;
import com.pulumi.vcd.inputs.GetNsxtSegmentSecurityProfileArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var nsxt = VcdFunctions.getNsxtManager(GetNsxtManagerArgs.builder()
.name("nsxManager1")
.build());
final var first = VcdFunctions.getNsxtSegmentSecurityProfile(GetNsxtSegmentSecurityProfileArgs.builder()
.name("segment-security-profile-0")
.nsxtManagerId(nsxt.applyValue(getNsxtManagerResult -> getNsxtManagerResult.id()))
.build());
}
}
variables:
nsxt:
fn::invoke:
function: vcd:getNsxtManager
arguments:
name: nsxManager1
first:
fn::invoke:
function: vcd:getNsxtSegmentSecurityProfile
arguments:
name: segment-security-profile-0
nsxtManagerId: ${nsxt.id}
Using getNsxtSegmentSecurityProfile
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getNsxtSegmentSecurityProfile(args: GetNsxtSegmentSecurityProfileArgs, opts?: InvokeOptions): Promise<GetNsxtSegmentSecurityProfileResult>
function getNsxtSegmentSecurityProfileOutput(args: GetNsxtSegmentSecurityProfileOutputArgs, opts?: InvokeOptions): Output<GetNsxtSegmentSecurityProfileResult>
def get_nsxt_segment_security_profile(bpdu_filter_allow_lists: Optional[Sequence[str]] = None,
id: Optional[str] = None,
name: Optional[str] = None,
nsxt_manager_id: Optional[str] = None,
vdc_group_id: Optional[str] = None,
vdc_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetNsxtSegmentSecurityProfileResult
def get_nsxt_segment_security_profile_output(bpdu_filter_allow_lists: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
id: Optional[pulumi.Input[str]] = None,
name: Optional[pulumi.Input[str]] = None,
nsxt_manager_id: Optional[pulumi.Input[str]] = None,
vdc_group_id: Optional[pulumi.Input[str]] = None,
vdc_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetNsxtSegmentSecurityProfileResult]
func GetNsxtSegmentSecurityProfile(ctx *Context, args *GetNsxtSegmentSecurityProfileArgs, opts ...InvokeOption) (*GetNsxtSegmentSecurityProfileResult, error)
func GetNsxtSegmentSecurityProfileOutput(ctx *Context, args *GetNsxtSegmentSecurityProfileOutputArgs, opts ...InvokeOption) GetNsxtSegmentSecurityProfileResultOutput
> Note: This function is named GetNsxtSegmentSecurityProfile
in the Go SDK.
public static class GetNsxtSegmentSecurityProfile
{
public static Task<GetNsxtSegmentSecurityProfileResult> InvokeAsync(GetNsxtSegmentSecurityProfileArgs args, InvokeOptions? opts = null)
public static Output<GetNsxtSegmentSecurityProfileResult> Invoke(GetNsxtSegmentSecurityProfileInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetNsxtSegmentSecurityProfileResult> getNsxtSegmentSecurityProfile(GetNsxtSegmentSecurityProfileArgs args, InvokeOptions options)
public static Output<GetNsxtSegmentSecurityProfileResult> getNsxtSegmentSecurityProfile(GetNsxtSegmentSecurityProfileArgs args, InvokeOptions options)
fn::invoke:
function: vcd:index/getNsxtSegmentSecurityProfile:getNsxtSegmentSecurityProfile
arguments:
# arguments dictionary
The following arguments are supported:
- Name string
- The name of Segment Profile
- Bpdu
Filter List<string>Allow Lists - Pre-defined list of allowed MAC addresses to be excluded from BPDU filtering.
- Id string
- Nsxt
Manager stringId - Segment Profile search context. Use when searching by NSX-T manager
- Vdc
Group stringId Segment Profile search context. Use when searching by VDC group
Note: only one of
nsxt_manager_id
,vdc_id
,vdc_group_id
can be used- Vdc
Id string - Segment Profile search context. Use when searching by VDC
- Name string
- The name of Segment Profile
- Bpdu
Filter []stringAllow Lists - Pre-defined list of allowed MAC addresses to be excluded from BPDU filtering.
- Id string
- Nsxt
Manager stringId - Segment Profile search context. Use when searching by NSX-T manager
- Vdc
Group stringId Segment Profile search context. Use when searching by VDC group
Note: only one of
nsxt_manager_id
,vdc_id
,vdc_group_id
can be used- Vdc
Id string - Segment Profile search context. Use when searching by VDC
- name String
- The name of Segment Profile
- bpdu
Filter List<String>Allow Lists - Pre-defined list of allowed MAC addresses to be excluded from BPDU filtering.
- id String
- nsxt
Manager StringId - Segment Profile search context. Use when searching by NSX-T manager
- vdc
Group StringId Segment Profile search context. Use when searching by VDC group
Note: only one of
nsxt_manager_id
,vdc_id
,vdc_group_id
can be used- vdc
Id String - Segment Profile search context. Use when searching by VDC
- name string
- The name of Segment Profile
- bpdu
Filter string[]Allow Lists - Pre-defined list of allowed MAC addresses to be excluded from BPDU filtering.
- id string
- nsxt
Manager stringId - Segment Profile search context. Use when searching by NSX-T manager
- vdc
Group stringId Segment Profile search context. Use when searching by VDC group
Note: only one of
nsxt_manager_id
,vdc_id
,vdc_group_id
can be used- vdc
Id string - Segment Profile search context. Use when searching by VDC
- name str
- The name of Segment Profile
- bpdu_
filter_ Sequence[str]allow_ lists - Pre-defined list of allowed MAC addresses to be excluded from BPDU filtering.
- id str
- nsxt_
manager_ strid - Segment Profile search context. Use when searching by NSX-T manager
- vdc_
group_ strid Segment Profile search context. Use when searching by VDC group
Note: only one of
nsxt_manager_id
,vdc_id
,vdc_group_id
can be used- vdc_
id str - Segment Profile search context. Use when searching by VDC
- name String
- The name of Segment Profile
- bpdu
Filter List<String>Allow Lists - Pre-defined list of allowed MAC addresses to be excluded from BPDU filtering.
- id String
- nsxt
Manager StringId - Segment Profile search context. Use when searching by NSX-T manager
- vdc
Group StringId Segment Profile search context. Use when searching by VDC group
Note: only one of
nsxt_manager_id
,vdc_id
,vdc_group_id
can be used- vdc
Id String - Segment Profile search context. Use when searching by VDC
getNsxtSegmentSecurityProfile Result
The following output properties are available:
- Description string
- Description of Segment Security Profile
- Id string
- Is
Bpdu boolFilter Enabled - Defines whether BPDU filter is enabled.
- Is
Dhcp boolV4Client Block Enabled - Defines whether DHCP Client block IPv4 is enabled. This filters DHCP Client IPv4 traffic.
- Is
Dhcp boolV4Server Block Enabled - Defines whether DHCP Server block IPv4 is enabled. This filters DHCP Server IPv4 traffic.
- Is
Dhcp boolV6Client Block Enabled - Defines whether DHCP Client block IPv6 is enabled. This filters DHCP Client IPv6 traffic.
- Is
Dhcp boolV6Server Block Enabled - Defines whether DHCP Server block IPv6 is enabled. This filters DHCP Server IPv6 traffic.
- Is
Non boolIp Traffic Block Enabled - Defines whether non IP traffic block is enabled. If true, it blocks all traffic except IP/(G)ARP/BPDU.
- Is
Ra boolGuard Enabled - Defines whether Router Advertisement Guard is enabled. This filters DHCP Server IPv6 traffic.
- Is
Rate boolLimitting Enabled - Defines whether Rate Limiting is enabled.
- Name string
- Rx
Broadcast doubleLimit - Incoming broadcast traffic limit in packets per second.
- Rx
Multicast doubleLimit - Incoming multicast traffic limit in packets per second.
- Tx
Broadcast doubleLimit - Outgoing broadcast traffic limit in packets per second.
- Tx
Multicast doubleLimit - Outgoing multicast traffic limit in packets per second.
- Bpdu
Filter List<string>Allow Lists - Pre-defined list of allowed MAC addresses to be excluded from BPDU filtering.
- Nsxt
Manager stringId - Vdc
Group stringId - Vdc
Id string
- Description string
- Description of Segment Security Profile
- Id string
- Is
Bpdu boolFilter Enabled - Defines whether BPDU filter is enabled.
- Is
Dhcp boolV4Client Block Enabled - Defines whether DHCP Client block IPv4 is enabled. This filters DHCP Client IPv4 traffic.
- Is
Dhcp boolV4Server Block Enabled - Defines whether DHCP Server block IPv4 is enabled. This filters DHCP Server IPv4 traffic.
- Is
Dhcp boolV6Client Block Enabled - Defines whether DHCP Client block IPv6 is enabled. This filters DHCP Client IPv6 traffic.
- Is
Dhcp boolV6Server Block Enabled - Defines whether DHCP Server block IPv6 is enabled. This filters DHCP Server IPv6 traffic.
- Is
Non boolIp Traffic Block Enabled - Defines whether non IP traffic block is enabled. If true, it blocks all traffic except IP/(G)ARP/BPDU.
- Is
Ra boolGuard Enabled - Defines whether Router Advertisement Guard is enabled. This filters DHCP Server IPv6 traffic.
- Is
Rate boolLimitting Enabled - Defines whether Rate Limiting is enabled.
- Name string
- Rx
Broadcast float64Limit - Incoming broadcast traffic limit in packets per second.
- Rx
Multicast float64Limit - Incoming multicast traffic limit in packets per second.
- Tx
Broadcast float64Limit - Outgoing broadcast traffic limit in packets per second.
- Tx
Multicast float64Limit - Outgoing multicast traffic limit in packets per second.
- Bpdu
Filter []stringAllow Lists - Pre-defined list of allowed MAC addresses to be excluded from BPDU filtering.
- Nsxt
Manager stringId - Vdc
Group stringId - Vdc
Id string
- description String
- Description of Segment Security Profile
- id String
- is
Bpdu BooleanFilter Enabled - Defines whether BPDU filter is enabled.
- is
Dhcp BooleanV4Client Block Enabled - Defines whether DHCP Client block IPv4 is enabled. This filters DHCP Client IPv4 traffic.
- is
Dhcp BooleanV4Server Block Enabled - Defines whether DHCP Server block IPv4 is enabled. This filters DHCP Server IPv4 traffic.
- is
Dhcp BooleanV6Client Block Enabled - Defines whether DHCP Client block IPv6 is enabled. This filters DHCP Client IPv6 traffic.
- is
Dhcp BooleanV6Server Block Enabled - Defines whether DHCP Server block IPv6 is enabled. This filters DHCP Server IPv6 traffic.
- is
Non BooleanIp Traffic Block Enabled - Defines whether non IP traffic block is enabled. If true, it blocks all traffic except IP/(G)ARP/BPDU.
- is
Ra BooleanGuard Enabled - Defines whether Router Advertisement Guard is enabled. This filters DHCP Server IPv6 traffic.
- is
Rate BooleanLimitting Enabled - Defines whether Rate Limiting is enabled.
- name String
- rx
Broadcast DoubleLimit - Incoming broadcast traffic limit in packets per second.
- rx
Multicast DoubleLimit - Incoming multicast traffic limit in packets per second.
- tx
Broadcast DoubleLimit - Outgoing broadcast traffic limit in packets per second.
- tx
Multicast DoubleLimit - Outgoing multicast traffic limit in packets per second.
- bpdu
Filter List<String>Allow Lists - Pre-defined list of allowed MAC addresses to be excluded from BPDU filtering.
- nsxt
Manager StringId - vdc
Group StringId - vdc
Id String
- description string
- Description of Segment Security Profile
- id string
- is
Bpdu booleanFilter Enabled - Defines whether BPDU filter is enabled.
- is
Dhcp booleanV4Client Block Enabled - Defines whether DHCP Client block IPv4 is enabled. This filters DHCP Client IPv4 traffic.
- is
Dhcp booleanV4Server Block Enabled - Defines whether DHCP Server block IPv4 is enabled. This filters DHCP Server IPv4 traffic.
- is
Dhcp booleanV6Client Block Enabled - Defines whether DHCP Client block IPv6 is enabled. This filters DHCP Client IPv6 traffic.
- is
Dhcp booleanV6Server Block Enabled - Defines whether DHCP Server block IPv6 is enabled. This filters DHCP Server IPv6 traffic.
- is
Non booleanIp Traffic Block Enabled - Defines whether non IP traffic block is enabled. If true, it blocks all traffic except IP/(G)ARP/BPDU.
- is
Ra booleanGuard Enabled - Defines whether Router Advertisement Guard is enabled. This filters DHCP Server IPv6 traffic.
- is
Rate booleanLimitting Enabled - Defines whether Rate Limiting is enabled.
- name string
- rx
Broadcast numberLimit - Incoming broadcast traffic limit in packets per second.
- rx
Multicast numberLimit - Incoming multicast traffic limit in packets per second.
- tx
Broadcast numberLimit - Outgoing broadcast traffic limit in packets per second.
- tx
Multicast numberLimit - Outgoing multicast traffic limit in packets per second.
- bpdu
Filter string[]Allow Lists - Pre-defined list of allowed MAC addresses to be excluded from BPDU filtering.
- nsxt
Manager stringId - vdc
Group stringId - vdc
Id string
- description str
- Description of Segment Security Profile
- id str
- is_
bpdu_ boolfilter_ enabled - Defines whether BPDU filter is enabled.
- is_
dhcp_ boolv4_ client_ block_ enabled - Defines whether DHCP Client block IPv4 is enabled. This filters DHCP Client IPv4 traffic.
- is_
dhcp_ boolv4_ server_ block_ enabled - Defines whether DHCP Server block IPv4 is enabled. This filters DHCP Server IPv4 traffic.
- is_
dhcp_ boolv6_ client_ block_ enabled - Defines whether DHCP Client block IPv6 is enabled. This filters DHCP Client IPv6 traffic.
- is_
dhcp_ boolv6_ server_ block_ enabled - Defines whether DHCP Server block IPv6 is enabled. This filters DHCP Server IPv6 traffic.
- is_
non_ boolip_ traffic_ block_ enabled - Defines whether non IP traffic block is enabled. If true, it blocks all traffic except IP/(G)ARP/BPDU.
- is_
ra_ boolguard_ enabled - Defines whether Router Advertisement Guard is enabled. This filters DHCP Server IPv6 traffic.
- is_
rate_ boollimitting_ enabled - Defines whether Rate Limiting is enabled.
- name str
- rx_
broadcast_ floatlimit - Incoming broadcast traffic limit in packets per second.
- rx_
multicast_ floatlimit - Incoming multicast traffic limit in packets per second.
- tx_
broadcast_ floatlimit - Outgoing broadcast traffic limit in packets per second.
- tx_
multicast_ floatlimit - Outgoing multicast traffic limit in packets per second.
- bpdu_
filter_ Sequence[str]allow_ lists - Pre-defined list of allowed MAC addresses to be excluded from BPDU filtering.
- nsxt_
manager_ strid - vdc_
group_ strid - vdc_
id str
- description String
- Description of Segment Security Profile
- id String
- is
Bpdu BooleanFilter Enabled - Defines whether BPDU filter is enabled.
- is
Dhcp BooleanV4Client Block Enabled - Defines whether DHCP Client block IPv4 is enabled. This filters DHCP Client IPv4 traffic.
- is
Dhcp BooleanV4Server Block Enabled - Defines whether DHCP Server block IPv4 is enabled. This filters DHCP Server IPv4 traffic.
- is
Dhcp BooleanV6Client Block Enabled - Defines whether DHCP Client block IPv6 is enabled. This filters DHCP Client IPv6 traffic.
- is
Dhcp BooleanV6Server Block Enabled - Defines whether DHCP Server block IPv6 is enabled. This filters DHCP Server IPv6 traffic.
- is
Non BooleanIp Traffic Block Enabled - Defines whether non IP traffic block is enabled. If true, it blocks all traffic except IP/(G)ARP/BPDU.
- is
Ra BooleanGuard Enabled - Defines whether Router Advertisement Guard is enabled. This filters DHCP Server IPv6 traffic.
- is
Rate BooleanLimitting Enabled - Defines whether Rate Limiting is enabled.
- name String
- rx
Broadcast NumberLimit - Incoming broadcast traffic limit in packets per second.
- rx
Multicast NumberLimit - Incoming multicast traffic limit in packets per second.
- tx
Broadcast NumberLimit - Outgoing broadcast traffic limit in packets per second.
- tx
Multicast NumberLimit - Outgoing multicast traffic limit in packets per second.
- bpdu
Filter List<String>Allow Lists - Pre-defined list of allowed MAC addresses to be excluded from BPDU filtering.
- nsxt
Manager StringId - vdc
Group StringId - vdc
Id String
Package Details
- Repository
- vcd vmware/terraform-provider-vcd
- License
- Notes
- This Pulumi package is based on the
vcd
Terraform Provider.