get Connections
The VPN connections data source lists lots of VPN connections resource information owned by an Alicloud account.
Example Usage
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.vpn.VpnFunctions;
import com.pulumi.alicloud.vpn.inputs.GetConnectionsArgs;
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 foo = VpnFunctions.getConnections(GetConnectionsArgs.builder()
.customerGatewayId("fake-cgw-id")
.ids("fake-conn-id")
.outputFile("/tmp/vpnconn")
.vpnGatewayId("fake-vpn-id")
.build());
}
}
Content copied to clipboard
Return
A collection of values returned by getConnections.
Parameters
argument
A collection of arguments for invoking getConnections.
suspend fun getConnections(customerGatewayId: String? = null, ids: List<String>? = null, nameRegex: String? = null, outputFile: String? = null, vpnGatewayId: String? = null): GetConnectionsResult
Return
A collection of values returned by getConnections.
See also
Parameters
customer Gateway Id
Use the VPN customer gateway ID as the search key.
ids
IDs of the VPN connections.
name Regex
A regex string of VPN connection name.
output File
Save the result to the file.
vpn Gateway Id
Use the VPN gateway ID as the search key.
suspend fun getConnections(argument: suspend GetConnectionsPlainArgsBuilder.() -> Unit): GetConnectionsResult
Return
A collection of values returned by getConnections.
See also
Parameters
argument
Builder for com.pulumi.alicloud.vpn.kotlin.inputs.GetConnectionsPlainArgs.