getSubnet

Gets the specified subnet by virtual network and resource group. Uses Azure REST API version 2023-02-01. Other available API versions: 2019-02-01, 2019-06-01, 2019-08-01, 2020-06-01, 2022-07-01, 2023-04-01, 2023-05-01, 2023-06-01, 2023-09-01, 2023-11-01, 2024-01-01, 2024-03-01, 2024-05-01.

Return

Subnet in a virtual network resource.

Parameters

argument

null


suspend fun getSubnet(expand: String? = null, resourceGroupName: String, subnetName: String, virtualNetworkName: String): GetSubnetResult

Return

Subnet in a virtual network resource.

Parameters

expand

Expands referenced resources.

resourceGroupName

The name of the resource group.

subnetName

The name of the subnet.

virtualNetworkName

The name of the virtual network.

See also


suspend fun getSubnet(argument: suspend GetSubnetPlainArgsBuilder.() -> Unit): GetSubnetResult

Return

Subnet in a virtual network resource.

Parameters

argument

Builder for com.pulumi.azurenative.network.kotlin.inputs.GetSubnetPlainArgs.

See also