get Ipv6Gateways
This data source provides the Vpc Ipv6 Gateways of the current Alibaba Cloud user.
NOTE: Available in v1.142.0+.
Example Usage
Basic Usage
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.vpc.VpcFunctions;
import com.pulumi.alicloud.vpc.inputs.GetIpv6GatewaysArgs;
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 ids = VpcFunctions.getIpv6Gateways(GetIpv6GatewaysArgs.builder()
.ids("example_id")
.build());
ctx.export("vpcIpv6GatewayId1", ids.applyValue(getIpv6GatewaysResult -> getIpv6GatewaysResult.gateways()[0].id()));
final var nameRegex = VpcFunctions.getIpv6Gateways(GetIpv6GatewaysArgs.builder()
.nameRegex("^my-Ipv6Gateway")
.build());
ctx.export("vpcIpv6GatewayId2", nameRegex.applyValue(getIpv6GatewaysResult -> getIpv6GatewaysResult.gateways()[0].id()));
final var vpcId = VpcFunctions.getIpv6Gateways(GetIpv6GatewaysArgs.builder()
.ids("example_id")
.vpcId("example_value")
.build());
ctx.export("vpcIpv6GatewayId3", vpcId.applyValue(getIpv6GatewaysResult -> getIpv6GatewaysResult.gateways()[0].id()));
final var status = VpcFunctions.getIpv6Gateways(GetIpv6GatewaysArgs.builder()
.ids("example_id")
.status("Available")
.build());
ctx.export("vpcIpv6GatewayId4", status.applyValue(getIpv6GatewaysResult -> getIpv6GatewaysResult.gateways()[0].id()));
}
}
Content copied to clipboard
Return
A collection of values returned by getIpv6Gateways.
Parameters
argument
A collection of arguments for invoking getIpv6Gateways.
suspend fun getIpv6Gateways(ids: List<String>? = null, ipv6GatewayName: String? = null, nameRegex: String? = null, outputFile: String? = null, status: String? = null, vpcId: String? = null): GetIpv6GatewaysResult
Return
A collection of values returned by getIpv6Gateways.
See also
Parameters
ids
A list of Ipv6 Gateway IDs.
ipv6Gateway Name
The name of the IPv6 gateway.
name Regex
A regex string to filter results by Ipv6 Gateway name.
output File
File name where to save data source results (after running pulumi preview
).
status
The status of the IPv6 gateway. Valid values: Available
, Deleting
, Pending
.
vpc Id
The ID of the virtual private cloud (VPC) to which the IPv6 gateway belongs.
suspend fun getIpv6Gateways(argument: suspend GetIpv6GatewaysPlainArgsBuilder.() -> Unit): GetIpv6GatewaysResult
Return
A collection of values returned by getIpv6Gateways.
See also
Parameters
argument
Builder for com.pulumi.alicloud.vpc.kotlin.inputs.GetIpv6GatewaysPlainArgs.