getSubnets

This data source provides Eflo Subnet available to the user.What is Subnet

NOTE: Available in 1.204.0+

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.eflo.EfloFunctions;
import com.pulumi.alicloud.eflo.inputs.GetSubnetsArgs;
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 default = EfloFunctions.getSubnets(GetSubnetsArgs.builder()
.nameRegex(alicloud_eflo_subnet.default().name())
.subnetName("SubnetTestForTerraform")
.vpdId(var_.vpdId())
.zoneId(var_.zoneId())
.build());
ctx.export("alicloudEfloSubnetExampleId", default_.subnets()[0].id());
}
}

Return

A collection of values returned by getSubnets.

Parameters

argument

A collection of arguments for invoking getSubnets.


suspend fun getSubnets(ids: List<String>? = null, nameRegex: String? = null, outputFile: String? = null, pageNumber: Int? = null, pageSize: Int? = null, resourceGroupId: String? = null, status: String? = null, subnetId: String? = null, subnetName: String? = null, type: String? = null, vpdId: String? = null, zoneId: String? = null): GetSubnetsResult

Return

A collection of values returned by getSubnets.

See also

Parameters

ids
nameRegex

A regex string to filter results by Group Metric Rule name.

outputFile

File name where to save data source results (after running pulumi preview).

pageNumber
pageSize
resourceGroupId

Resource Group ID.

status

The status of the resource.

subnetId

Primary key ID.

subnetName

The Subnet name.

type

Eflo subnet usage type, optional value:

  • General type is not filled in

  • OOB:OOB type

  • LB: LB type

vpdId

The Eflo VPD ID.

zoneId

The zone ID of the resource.


suspend fun getSubnets(argument: suspend GetSubnetsPlainArgsBuilder.() -> Unit): GetSubnetsResult

Return

A collection of values returned by getSubnets.

See also

Parameters

argument

Builder for com.pulumi.alicloud.eflo.kotlin.inputs.GetSubnetsPlainArgs.