This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.89.1 published on Sunday, Mar 2, 2025 by Pulumi
azure-native.avs.getWorkloadNetworkSegment
Explore with Pulumi AI
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.89.1 published on Sunday, Mar 2, 2025 by Pulumi
NSX Segment Azure REST API version: 2022-05-01.
Other available API versions: 2023-03-01, 2023-09-01.
Using getWorkloadNetworkSegment
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 getWorkloadNetworkSegment(args: GetWorkloadNetworkSegmentArgs, opts?: InvokeOptions): Promise<GetWorkloadNetworkSegmentResult>
function getWorkloadNetworkSegmentOutput(args: GetWorkloadNetworkSegmentOutputArgs, opts?: InvokeOptions): Output<GetWorkloadNetworkSegmentResult>def get_workload_network_segment(private_cloud_name: Optional[str] = None,
                                 resource_group_name: Optional[str] = None,
                                 segment_id: Optional[str] = None,
                                 opts: Optional[InvokeOptions] = None) -> GetWorkloadNetworkSegmentResult
def get_workload_network_segment_output(private_cloud_name: Optional[pulumi.Input[str]] = None,
                                 resource_group_name: Optional[pulumi.Input[str]] = None,
                                 segment_id: Optional[pulumi.Input[str]] = None,
                                 opts: Optional[InvokeOptions] = None) -> Output[GetWorkloadNetworkSegmentResult]func LookupWorkloadNetworkSegment(ctx *Context, args *LookupWorkloadNetworkSegmentArgs, opts ...InvokeOption) (*LookupWorkloadNetworkSegmentResult, error)
func LookupWorkloadNetworkSegmentOutput(ctx *Context, args *LookupWorkloadNetworkSegmentOutputArgs, opts ...InvokeOption) LookupWorkloadNetworkSegmentResultOutput> Note: This function is named LookupWorkloadNetworkSegment in the Go SDK.
public static class GetWorkloadNetworkSegment 
{
    public static Task<GetWorkloadNetworkSegmentResult> InvokeAsync(GetWorkloadNetworkSegmentArgs args, InvokeOptions? opts = null)
    public static Output<GetWorkloadNetworkSegmentResult> Invoke(GetWorkloadNetworkSegmentInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetWorkloadNetworkSegmentResult> getWorkloadNetworkSegment(GetWorkloadNetworkSegmentArgs args, InvokeOptions options)
public static Output<GetWorkloadNetworkSegmentResult> getWorkloadNetworkSegment(GetWorkloadNetworkSegmentArgs args, InvokeOptions options)
fn::invoke:
  function: azure-native:avs:getWorkloadNetworkSegment
  arguments:
    # arguments dictionaryThe following arguments are supported:
- PrivateCloud stringName 
- Name of the private cloud
- ResourceGroup stringName 
- The name of the resource group. The name is case insensitive.
- SegmentId string
- NSX Segment identifier. Generally the same as the Segment's display name
- PrivateCloud stringName 
- Name of the private cloud
- ResourceGroup stringName 
- The name of the resource group. The name is case insensitive.
- SegmentId string
- NSX Segment identifier. Generally the same as the Segment's display name
- privateCloud StringName 
- Name of the private cloud
- resourceGroup StringName 
- The name of the resource group. The name is case insensitive.
- segmentId String
- NSX Segment identifier. Generally the same as the Segment's display name
- privateCloud stringName 
- Name of the private cloud
- resourceGroup stringName 
- The name of the resource group. The name is case insensitive.
- segmentId string
- NSX Segment identifier. Generally the same as the Segment's display name
- private_cloud_ strname 
- Name of the private cloud
- resource_group_ strname 
- The name of the resource group. The name is case insensitive.
- segment_id str
- NSX Segment identifier. Generally the same as the Segment's display name
- privateCloud StringName 
- Name of the private cloud
- resourceGroup StringName 
- The name of the resource group. The name is case insensitive.
- segmentId String
- NSX Segment identifier. Generally the same as the Segment's display name
getWorkloadNetworkSegment Result
The following output properties are available:
- Id string
- Resource ID.
- Name string
- Resource name.
- PortVif List<Pulumi.Azure Native. AVS. Outputs. Workload Network Segment Port Vif Response> 
- Port Vif which segment is associated with.
- ProvisioningState string
- The provisioning state
- Status string
- Segment status.
- Type string
- Resource type.
- ConnectedGateway string
- Gateway which to connect segment to.
- DisplayName string
- Display name of the segment.
- Revision double
- NSX revision number.
- Subnet
Pulumi.Azure Native. AVS. Outputs. Workload Network Segment Subnet Response 
- Subnet which to connect segment to.
- Id string
- Resource ID.
- Name string
- Resource name.
- PortVif []WorkloadNetwork Segment Port Vif Response 
- Port Vif which segment is associated with.
- ProvisioningState string
- The provisioning state
- Status string
- Segment status.
- Type string
- Resource type.
- ConnectedGateway string
- Gateway which to connect segment to.
- DisplayName string
- Display name of the segment.
- Revision float64
- NSX revision number.
- Subnet
WorkloadNetwork Segment Subnet Response 
- Subnet which to connect segment to.
- id String
- Resource ID.
- name String
- Resource name.
- portVif List<WorkloadNetwork Segment Port Vif Response> 
- Port Vif which segment is associated with.
- provisioningState String
- The provisioning state
- status String
- Segment status.
- type String
- Resource type.
- connectedGateway String
- Gateway which to connect segment to.
- displayName String
- Display name of the segment.
- revision Double
- NSX revision number.
- subnet
WorkloadNetwork Segment Subnet Response 
- Subnet which to connect segment to.
- id string
- Resource ID.
- name string
- Resource name.
- portVif WorkloadNetwork Segment Port Vif Response[] 
- Port Vif which segment is associated with.
- provisioningState string
- The provisioning state
- status string
- Segment status.
- type string
- Resource type.
- connectedGateway string
- Gateway which to connect segment to.
- displayName string
- Display name of the segment.
- revision number
- NSX revision number.
- subnet
WorkloadNetwork Segment Subnet Response 
- Subnet which to connect segment to.
- id str
- Resource ID.
- name str
- Resource name.
- port_vif Sequence[WorkloadNetwork Segment Port Vif Response] 
- Port Vif which segment is associated with.
- provisioning_state str
- The provisioning state
- status str
- Segment status.
- type str
- Resource type.
- connected_gateway str
- Gateway which to connect segment to.
- display_name str
- Display name of the segment.
- revision float
- NSX revision number.
- subnet
WorkloadNetwork Segment Subnet Response 
- Subnet which to connect segment to.
- id String
- Resource ID.
- name String
- Resource name.
- portVif List<Property Map>
- Port Vif which segment is associated with.
- provisioningState String
- The provisioning state
- status String
- Segment status.
- type String
- Resource type.
- connectedGateway String
- Gateway which to connect segment to.
- displayName String
- Display name of the segment.
- revision Number
- NSX revision number.
- subnet Property Map
- Subnet which to connect segment to.
Supporting Types
WorkloadNetworkSegmentPortVifResponse     
- PortName string
- Name of port or VIF attached to segment.
- PortName string
- Name of port or VIF attached to segment.
- portName String
- Name of port or VIF attached to segment.
- portName string
- Name of port or VIF attached to segment.
- port_name str
- Name of port or VIF attached to segment.
- portName String
- Name of port or VIF attached to segment.
WorkloadNetworkSegmentSubnetResponse    
- DhcpRanges List<string>
- DHCP Range assigned for subnet.
- GatewayAddress string
- Gateway address.
- DhcpRanges []string
- DHCP Range assigned for subnet.
- GatewayAddress string
- Gateway address.
- dhcpRanges List<String>
- DHCP Range assigned for subnet.
- gatewayAddress String
- Gateway address.
- dhcpRanges string[]
- DHCP Range assigned for subnet.
- gatewayAddress string
- Gateway address.
- dhcp_ranges Sequence[str]
- DHCP Range assigned for subnet.
- gateway_address str
- Gateway address.
- dhcpRanges List<String>
- DHCP Range assigned for subnet.
- gatewayAddress String
- Gateway address.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.89.1 published on Sunday, Mar 2, 2025 by Pulumi