This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
Azure Native v3.3.0 published on Monday, Apr 28, 2025 by Pulumi
azure-native.avs.getWorkloadNetworkSegment
Explore with Pulumi AI
This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
Azure Native v3.3.0 published on Monday, Apr 28, 2025 by Pulumi
Get a WorkloadNetworkSegment
Uses Azure REST API version 2023-09-01.
Other available API versions: 2022-05-01, 2023-03-01. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native avs [ApiVersion]
. See the version guide for details.
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 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 - The ID of the NSX Segment
- 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 - The ID of the NSX Segment
- 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 - The ID of the NSX Segment
- 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 - The ID of the NSX Segment
- 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 - The ID of the NSX Segment
- 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 - The ID of the NSX Segment
getWorkloadNetworkSegment Result
The following output properties are available:
- Azure
Api stringVersion - The Azure API version of the resource.
- Id string
- Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
- Name string
- The name of the resource
- 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.
- System
Data Pulumi.Azure Native. AVS. Outputs. System Data Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- Type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- 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.
- Azure
Api stringVersion - The Azure API version of the resource.
- Id string
- Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
- Name string
- The name of the resource
- Port
Vif []WorkloadNetwork Segment Port Vif Response - Port Vif which segment is associated with.
- Provisioning
State string - The provisioning state
- Status string
- Segment status.
- System
Data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- Type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- 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.
- azure
Api StringVersion - The Azure API version of the resource.
- id String
- Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
- name String
- The name of the resource
- 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.
- system
Data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type String
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- 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.
- azure
Api stringVersion - The Azure API version of the resource.
- id string
- Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
- name string
- The name of the resource
- port
Vif WorkloadNetwork Segment Port Vif Response[] - Port Vif which segment is associated with.
- provisioning
State string - The provisioning state
- status string
- Segment status.
- system
Data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- 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.
- azure_
api_ strversion - The Azure API version of the resource.
- id str
- Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
- name str
- The name of the resource
- 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.
- system_
data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type str
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- 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.
- azure
Api StringVersion - The Azure API version of the resource.
- id String
- Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
- name String
- The name of the resource
- port
Vif List<Property Map> - Port Vif which segment is associated with.
- provisioning
State String - The provisioning state
- status String
- Segment status.
- system
Data Property Map - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type String
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- 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
SystemDataResponse
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The timestamp of resource last modification (UTC)
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The timestamp of resource last modification (UTC)
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The timestamp of resource last modification (UTC)
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified StringBy Type - The type of identity that last modified the resource.
- created
At string - The timestamp of resource creation (UTC).
- created
By string - The identity that created the resource.
- created
By stringType - The type of identity that created the resource.
- last
Modified stringAt - The timestamp of resource last modification (UTC)
- last
Modified stringBy - The identity that last modified the resource.
- last
Modified stringBy Type - The type of identity that last modified the resource.
- created_
at str - The timestamp of resource creation (UTC).
- created_
by str - The identity that created the resource.
- created_
by_ strtype - The type of identity that created the resource.
- last_
modified_ strat - The timestamp of resource last modification (UTC)
- last_
modified_ strby - The identity that last modified the resource.
- last_
modified_ strby_ type - The type of identity that last modified the resource.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The timestamp of resource last modification (UTC)
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified StringBy Type - The type of identity that last modified the resource.
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 v2 docs if using the v2 version of this package.
Azure Native v3.3.0 published on Monday, Apr 28, 2025 by Pulumi