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.76.0 published on Friday, Dec 6, 2024 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.76.0 published on Friday, Dec 6, 2024 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)
// Output-based functions aren't available in Java yet
fn::invoke:
function: azure-native:avs:getWorkloadNetworkSegment
arguments:
# arguments dictionary
The following arguments are supported:
- Private
Cloud stringName - Name of the private cloud
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- Segment
Id string - NSX Segment identifier. Generally the same as the Segment's display name
- Private
Cloud stringName - Name of the private cloud
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- Segment
Id string - NSX Segment identifier. Generally the same as the Segment's display name
- private
Cloud StringName - Name of the private cloud
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- segment
Id String - NSX Segment identifier. Generally the same as the Segment's display name
- private
Cloud stringName - Name of the private cloud
- resource
Group stringName - The name of the resource group. The name is case insensitive.
- segment
Id 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
- private
Cloud StringName - Name of the private cloud
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- segment
Id 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.
- Port
Vif List<Pulumi.Azure Native. AVS. Outputs. Workload Network Segment Port Vif Response> - Port Vif which segment is associated with.
- Provisioning
State string - The provisioning state
- Status string
- Segment status.
- Type string
- Resource type.
- Connected
Gateway string - Gateway which to connect segment to.
- Display
Name 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.
- Port
Vif []WorkloadNetwork Segment Port Vif Response - Port Vif which segment is associated with.
- Provisioning
State string - The provisioning state
- Status string
- Segment status.
- Type string
- Resource type.
- Connected
Gateway string - Gateway which to connect segment to.
- Display
Name string - Display name of the segment.
- Revision float64
- NSX revision number.
- Subnet
Workload
Network Segment Subnet Response - Subnet which to connect segment to.
- id String
- Resource ID.
- name String
- Resource name.
- port
Vif List<WorkloadNetwork Segment Port Vif Response> - Port Vif which segment is associated with.
- provisioning
State String - The provisioning state
- status String
- Segment status.
- type String
- Resource type.
- connected
Gateway String - Gateway which to connect segment to.
- display
Name String - Display name of the segment.
- revision Double
- NSX revision number.
- subnet
Workload
Network Segment Subnet Response - Subnet which to connect segment to.
- id string
- Resource ID.
- name string
- Resource name.
- port
Vif WorkloadNetwork Segment Port Vif Response[] - Port Vif which segment is associated with.
- provisioning
State string - The provisioning state
- status string
- Segment status.
- type string
- Resource type.
- connected
Gateway string - Gateway which to connect segment to.
- display
Name string - Display name of the segment.
- revision number
- NSX revision number.
- subnet
Workload
Network 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
Workload
Network Segment Subnet Response - Subnet which to connect segment to.
- id String
- Resource ID.
- name String
- Resource name.
- port
Vif List<Property Map> - Port Vif which segment is associated with.
- provisioning
State String - The provisioning state
- status String
- Segment status.
- type String
- Resource type.
- connected
Gateway String - Gateway which to connect segment to.
- display
Name String - Display name of the segment.
- revision Number
- NSX revision number.
- subnet Property Map
- Subnet which to connect segment to.
Supporting Types
WorkloadNetworkSegmentPortVifResponse
- Port
Name string - Name of port or VIF attached to segment.
- Port
Name string - Name of port or VIF attached to segment.
- port
Name String - Name of port or VIF attached to segment.
- port
Name string - Name of port or VIF attached to segment.
- port_
name str - Name of port or VIF attached to segment.
- port
Name String - Name of port or VIF attached to segment.
WorkloadNetworkSegmentSubnetResponse
- Dhcp
Ranges List<string> - DHCP Range assigned for subnet.
- Gateway
Address string - Gateway address.
- Dhcp
Ranges []string - DHCP Range assigned for subnet.
- Gateway
Address string - Gateway address.
- dhcp
Ranges List<String> - DHCP Range assigned for subnet.
- gateway
Address String - Gateway address.
- dhcp
Ranges string[] - DHCP Range assigned for subnet.
- gateway
Address string - Gateway address.
- dhcp_
ranges Sequence[str] - DHCP Range assigned for subnet.
- gateway_
address str - Gateway address.
- dhcp
Ranges List<String> - DHCP Range assigned for subnet.
- gateway
Address 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.76.0 published on Friday, Dec 6, 2024 by Pulumi