getVpnGateway

Use this data source to access information about an existing VPN Gateway within a Virtual Hub.

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.network.NetworkFunctions;
import com.pulumi.azure.network.inputs.GetVpnGatewayArgs;
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 example = NetworkFunctions.getVpnGateway(GetVpnGatewayArgs.builder()
.name("existing-local-vpn_gateway")
.resourceGroupName("existing-vpn_gateway")
.build());
ctx.export("azurermVpnGatewayId", example.applyValue(getVpnGatewayResult -> getVpnGatewayResult.id()));
}
}

Return

A collection of values returned by getVpnGateway.

Parameters

argument

A collection of arguments for invoking getVpnGateway.


suspend fun getVpnGateway(name: String, resourceGroupName: String): GetVpnGatewayResult

Return

A collection of values returned by getVpnGateway.

See also

Parameters

name

The Name of the VPN Gateway.

resourceGroupName

The name of the Resource Group where the VPN Gateway exists.


Return

A collection of values returned by getVpnGateway.

See also

Parameters

argument

Builder for com.pulumi.azure.network.kotlin.inputs.GetVpnGatewayPlainArgs.