get Ipv6Egress Rules
This data source provides the Vpc Ipv6 Egress Rules 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.GetIpv6EgressRulesArgs;
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.getIpv6EgressRules(GetIpv6EgressRulesArgs.builder()
.ipv6GatewayId("example_value")
.ids(
"example_value-1",
"example_value-2")
.build());
ctx.export("vpcIpv6EgressRuleId1", ids.applyValue(getIpv6EgressRulesResult -> getIpv6EgressRulesResult.rules()[0].id()));
final var nameRegex = VpcFunctions.getIpv6EgressRules(GetIpv6EgressRulesArgs.builder()
.ipv6GatewayId("example_value")
.nameRegex("^my-Ipv6EgressRule")
.build());
ctx.export("vpcIpv6EgressRuleId2", nameRegex.applyValue(getIpv6EgressRulesResult -> getIpv6EgressRulesResult.rules()[0].id()));
final var status = VpcFunctions.getIpv6EgressRules(GetIpv6EgressRulesArgs.builder()
.ipv6GatewayId("example_value")
.status("Available")
.build());
ctx.export("vpcIpv6EgressRuleId3", status.applyValue(getIpv6EgressRulesResult -> getIpv6EgressRulesResult.rules()[0].id()));
final var ipv6EgressRuleName = VpcFunctions.getIpv6EgressRules(GetIpv6EgressRulesArgs.builder()
.ipv6GatewayId("example_value")
.ipv6EgressRuleName("example_value")
.build());
ctx.export("vpcIpv6EgressRuleId4", ipv6EgressRuleName.applyValue(getIpv6EgressRulesResult -> getIpv6EgressRulesResult.rules()[0].id()));
}
}
Content copied to clipboard
Return
A collection of values returned by getIpv6EgressRules.
Parameters
argument
A collection of arguments for invoking getIpv6EgressRules.
suspend fun getIpv6EgressRules(ids: List<String>? = null, instanceId: String? = null, ipv6EgressRuleName: String? = null, ipv6GatewayId: String, nameRegex: String? = null, outputFile: String? = null, status: String? = null): GetIpv6EgressRulesResult
Return
A collection of values returned by getIpv6EgressRules.
See also
Parameters
ids
A list of Ipv6 Egress Rule IDs.
instance Id
The ID of the instance to which the egress-only rule is applied.
ipv6Egress Rule Name
The name of the resource.
ipv6Gateway Id
The ID of the IPv6 gateway.
name Regex
A regex string to filter results by Ipv6 Egress Rule name.
output File
status
The status of the resource. Valid values: Available
, Pending
and Deleting
.
suspend fun getIpv6EgressRules(argument: suspend GetIpv6EgressRulesPlainArgsBuilder.() -> Unit): GetIpv6EgressRulesResult
Return
A collection of values returned by getIpv6EgressRules.
See also
Parameters
argument
Builder for com.pulumi.alicloud.vpc.kotlin.inputs.GetIpv6EgressRulesPlainArgs.