get Subnets
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());
}
}
Content copied to clipboard
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
name Regex
A regex string to filter results by Group Metric Rule name.
output File
File name where to save data source results (after running pulumi preview
).
page Number
page Size
resource Group Id
Resource Group ID.
status
The status of the resource.
subnet Id
Primary key ID.
subnet Name
The Subnet name.
type
Eflo subnet usage type, optional value:
General type is not filled in
OOB:OOB type
LB: LB type
vpd Id
The Eflo VPD ID.
zone Id
The zone ID of the resource.
Return
A collection of values returned by getSubnets.
See also
Parameters
argument
Builder for com.pulumi.alicloud.eflo.kotlin.inputs.GetSubnetsPlainArgs.