Alibaba Cloud v3.88.1 published on Saturday, Nov 8, 2025 by Pulumi
Alibaba Cloud v3.88.1 published on Saturday, Nov 8, 2025 by Pulumi
This data source provides Eflo Subnet available to the user.What is Subnet
NOTE: Available in 1.204.0+
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const _default = alicloud.eflo.getSubnets({
nameRegex: defaultAlicloudEfloSubnet.name,
subnetName: "SubnetTestForTerraform",
vpdId: vpdId,
zoneId: zoneId,
});
export const alicloudEfloSubnetExampleId = _default.then(_default => _default.subnets?.[0]?.id);
import pulumi
import pulumi_alicloud as alicloud
default = alicloud.eflo.get_subnets(name_regex=default_alicloud_eflo_subnet["name"],
subnet_name="SubnetTestForTerraform",
vpd_id=vpd_id,
zone_id=zone_id)
pulumi.export("alicloudEfloSubnetExampleId", default.subnets[0].id)
package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/eflo"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_default, err := eflo.GetSubnets(ctx, &eflo.GetSubnetsArgs{
NameRegex: pulumi.StringRef(defaultAlicloudEfloSubnet.Name),
SubnetName: pulumi.StringRef("SubnetTestForTerraform"),
VpdId: pulumi.StringRef(vpdId),
ZoneId: pulumi.StringRef(zoneId),
}, nil)
if err != nil {
return err
}
ctx.Export("alicloudEfloSubnetExampleId", _default.Subnets[0].Id)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() =>
{
var @default = AliCloud.Eflo.GetSubnets.Invoke(new()
{
NameRegex = defaultAlicloudEfloSubnet.Name,
SubnetName = "SubnetTestForTerraform",
VpdId = vpdId,
ZoneId = zoneId,
});
return new Dictionary<string, object?>
{
["alicloudEfloSubnetExampleId"] = @default.Apply(@default => @default.Apply(getSubnetsResult => getSubnetsResult.Subnets[0]?.Id)),
};
});
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(defaultAlicloudEfloSubnet.name())
.subnetName("SubnetTestForTerraform")
.vpdId(vpdId)
.zoneId(zoneId)
.build());
ctx.export("alicloudEfloSubnetExampleId", default_.subnets()[0].id());
}
}
variables:
default:
fn::invoke:
function: alicloud:eflo:getSubnets
arguments:
nameRegex: ${defaultAlicloudEfloSubnet.name}
subnetName: SubnetTestForTerraform
vpdId: ${vpdId}
zoneId: ${zoneId}
outputs:
alicloudEfloSubnetExampleId: ${default.subnets[0].id}
Using getSubnets
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getSubnets(args: GetSubnetsArgs, opts?: InvokeOptions): Promise<GetSubnetsResult>
function getSubnetsOutput(args: GetSubnetsOutputArgs, opts?: InvokeOptions): Output<GetSubnetsResult>def get_subnets(ids: Optional[Sequence[str]] = None,
name_regex: Optional[str] = None,
output_file: Optional[str] = None,
page_number: Optional[int] = None,
page_size: Optional[int] = None,
resource_group_id: Optional[str] = None,
status: Optional[str] = None,
subnet_id: Optional[str] = None,
subnet_name: Optional[str] = None,
type: Optional[str] = None,
vpd_id: Optional[str] = None,
zone_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetSubnetsResult
def get_subnets_output(ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
name_regex: Optional[pulumi.Input[str]] = None,
output_file: Optional[pulumi.Input[str]] = None,
page_number: Optional[pulumi.Input[int]] = None,
page_size: Optional[pulumi.Input[int]] = None,
resource_group_id: Optional[pulumi.Input[str]] = None,
status: Optional[pulumi.Input[str]] = None,
subnet_id: Optional[pulumi.Input[str]] = None,
subnet_name: Optional[pulumi.Input[str]] = None,
type: Optional[pulumi.Input[str]] = None,
vpd_id: Optional[pulumi.Input[str]] = None,
zone_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetSubnetsResult]func GetSubnets(ctx *Context, args *GetSubnetsArgs, opts ...InvokeOption) (*GetSubnetsResult, error)
func GetSubnetsOutput(ctx *Context, args *GetSubnetsOutputArgs, opts ...InvokeOption) GetSubnetsResultOutput> Note: This function is named GetSubnets in the Go SDK.
public static class GetSubnets
{
public static Task<GetSubnetsResult> InvokeAsync(GetSubnetsArgs args, InvokeOptions? opts = null)
public static Output<GetSubnetsResult> Invoke(GetSubnetsInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetSubnetsResult> getSubnets(GetSubnetsArgs args, InvokeOptions options)
public static Output<GetSubnetsResult> getSubnets(GetSubnetsArgs args, InvokeOptions options)
fn::invoke:
function: alicloud:eflo/getSubnets:getSubnets
arguments:
# arguments dictionaryThe following arguments are supported:
- Ids List<string>
- Name
Regex string - A regex string to filter results by Group Metric Rule name.
- Output
File string - File name where to save data source results (after running
pulumi preview). - Page
Number int - Page
Size int - Resource
Group stringId - Resource Group ID.
- Status string
- The status of the resource.
- Subnet
Id string - Primary key ID.
- Subnet
Name string - The Subnet name.
- Type string
- Eflo subnet usage type, optional value:
- General type is not filled in
- OOB:OOB type
- LB: LB type
- Vpd
Id string - The Eflo VPD ID.
- Zone
Id string - The zone ID of the resource.
- Ids []string
- Name
Regex string - A regex string to filter results by Group Metric Rule name.
- Output
File string - File name where to save data source results (after running
pulumi preview). - Page
Number int - Page
Size int - Resource
Group stringId - Resource Group ID.
- Status string
- The status of the resource.
- Subnet
Id string - Primary key ID.
- Subnet
Name string - The Subnet name.
- Type string
- Eflo subnet usage type, optional value:
- General type is not filled in
- OOB:OOB type
- LB: LB type
- Vpd
Id string - The Eflo VPD ID.
- Zone
Id string - The zone ID of the resource.
- ids List<String>
- name
Regex String - A regex string to filter results by Group Metric Rule name.
- output
File String - File name where to save data source results (after running
pulumi preview). - page
Number Integer - page
Size Integer - resource
Group StringId - Resource Group ID.
- status String
- The status of the resource.
- subnet
Id String - Primary key ID.
- subnet
Name String - The Subnet name.
- type String
- Eflo subnet usage type, optional value:
- General type is not filled in
- OOB:OOB type
- LB: LB type
- vpd
Id String - The Eflo VPD ID.
- zone
Id String - The zone ID of the resource.
- ids string[]
- name
Regex string - A regex string to filter results by Group Metric Rule name.
- output
File string - File name where to save data source results (after running
pulumi preview). - page
Number number - page
Size number - resource
Group stringId - Resource Group ID.
- status string
- The status of the resource.
- subnet
Id string - Primary key ID.
- subnet
Name string - The Subnet name.
- type string
- Eflo subnet usage type, optional value:
- General type is not filled in
- OOB:OOB type
- LB: LB type
- vpd
Id string - The Eflo VPD ID.
- zone
Id string - The zone ID of the resource.
- ids Sequence[str]
- name_
regex str - A regex string to filter results by Group Metric Rule name.
- output_
file str - File name where to save data source results (after running
pulumi preview). - page_
number int - page_
size int - resource_
group_ strid - Resource Group ID.
- status str
- The status of the resource.
- subnet_
id str - Primary key ID.
- subnet_
name str - The Subnet name.
- type str
- Eflo subnet usage type, optional value:
- General type is not filled in
- OOB:OOB type
- LB: LB type
- vpd_
id str - The Eflo VPD ID.
- zone_
id str - The zone ID of the resource.
- ids List<String>
- name
Regex String - A regex string to filter results by Group Metric Rule name.
- output
File String - File name where to save data source results (after running
pulumi preview). - page
Number Number - page
Size Number - resource
Group StringId - Resource Group ID.
- status String
- The status of the resource.
- subnet
Id String - Primary key ID.
- subnet
Name String - The Subnet name.
- type String
- Eflo subnet usage type, optional value:
- General type is not filled in
- OOB:OOB type
- LB: LB type
- vpd
Id String - The Eflo VPD ID.
- zone
Id String - The zone ID of the resource.
getSubnets Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Ids List<string>
- Names List<string>
- A list of name of Subnets.
- Subnets
List<Pulumi.
Ali Cloud. Eflo. Outputs. Get Subnets Subnet> - A list of Subnet Entries. Each element contains the following attributes:
- Name
Regex string - Output
File string - Page
Number int - Page
Size int - Resource
Group stringId - Resource Group ID.
- Status string
- The status of the resource.
- Subnet
Id string - The Eflo subnet ID.
- Subnet
Name string - The Subnet name.
- Type string
- Eflo subnet usage type.
- Vpd
Id string - Eflo VPD ID.
- Zone
Id string - The zone ID of the resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- Ids []string
- Names []string
- A list of name of Subnets.
- Subnets
[]Get
Subnets Subnet - A list of Subnet Entries. Each element contains the following attributes:
- Name
Regex string - Output
File string - Page
Number int - Page
Size int - Resource
Group stringId - Resource Group ID.
- Status string
- The status of the resource.
- Subnet
Id string - The Eflo subnet ID.
- Subnet
Name string - The Subnet name.
- Type string
- Eflo subnet usage type.
- Vpd
Id string - Eflo VPD ID.
- Zone
Id string - The zone ID of the resource.
- id String
- The provider-assigned unique ID for this managed resource.
- ids List<String>
- names List<String>
- A list of name of Subnets.
- subnets
List<Get
Subnets Subnet> - A list of Subnet Entries. Each element contains the following attributes:
- name
Regex String - output
File String - page
Number Integer - page
Size Integer - resource
Group StringId - Resource Group ID.
- status String
- The status of the resource.
- subnet
Id String - The Eflo subnet ID.
- subnet
Name String - The Subnet name.
- type String
- Eflo subnet usage type.
- vpd
Id String - Eflo VPD ID.
- zone
Id String - The zone ID of the resource.
- id string
- The provider-assigned unique ID for this managed resource.
- ids string[]
- names string[]
- A list of name of Subnets.
- subnets
Get
Subnets Subnet[] - A list of Subnet Entries. Each element contains the following attributes:
- name
Regex string - output
File string - page
Number number - page
Size number - resource
Group stringId - Resource Group ID.
- status string
- The status of the resource.
- subnet
Id string - The Eflo subnet ID.
- subnet
Name string - The Subnet name.
- type string
- Eflo subnet usage type.
- vpd
Id string - Eflo VPD ID.
- zone
Id string - The zone ID of the resource.
- id str
- The provider-assigned unique ID for this managed resource.
- ids Sequence[str]
- names Sequence[str]
- A list of name of Subnets.
- subnets
Sequence[Get
Subnets Subnet] - A list of Subnet Entries. Each element contains the following attributes:
- name_
regex str - output_
file str - page_
number int - page_
size int - resource_
group_ strid - Resource Group ID.
- status str
- The status of the resource.
- subnet_
id str - The Eflo subnet ID.
- subnet_
name str - The Subnet name.
- type str
- Eflo subnet usage type.
- vpd_
id str - Eflo VPD ID.
- zone_
id str - The zone ID of the resource.
- id String
- The provider-assigned unique ID for this managed resource.
- ids List<String>
- names List<String>
- A list of name of Subnets.
- subnets List<Property Map>
- A list of Subnet Entries. Each element contains the following attributes:
- name
Regex String - output
File String - page
Number Number - page
Size Number - resource
Group StringId - Resource Group ID.
- status String
- The status of the resource.
- subnet
Id String - The Eflo subnet ID.
- subnet
Name String - The Subnet name.
- type String
- Eflo subnet usage type.
- vpd
Id String - Eflo VPD ID.
- zone
Id String - The zone ID of the resource.
Supporting Types
GetSubnetsSubnet
- Cidr string
- Network segment
- Create
Time string - The creation time of the resource
- Gmt
Modified string - Modification time
- Id string
- The ID of the resource.
- Message string
- Error message
- Resource
Group stringId - Resource Group ID.
- Status string
- The status of the resource.
- Subnet
Id string - Primary key ID.
- Subnet
Name string - The Subnet name.
- Type string
- Eflo subnet usage type, optional value:
- General type is not filled in
- OOB:OOB type
- LB: LB type
- Vpd
Id string - The Eflo VPD ID.
- Zone
Id string - The zone ID of the resource.
- Cidr string
- Network segment
- Create
Time string - The creation time of the resource
- Gmt
Modified string - Modification time
- Id string
- The ID of the resource.
- Message string
- Error message
- Resource
Group stringId - Resource Group ID.
- Status string
- The status of the resource.
- Subnet
Id string - Primary key ID.
- Subnet
Name string - The Subnet name.
- Type string
- Eflo subnet usage type, optional value:
- General type is not filled in
- OOB:OOB type
- LB: LB type
- Vpd
Id string - The Eflo VPD ID.
- Zone
Id string - The zone ID of the resource.
- cidr String
- Network segment
- create
Time String - The creation time of the resource
- gmt
Modified String - Modification time
- id String
- The ID of the resource.
- message String
- Error message
- resource
Group StringId - Resource Group ID.
- status String
- The status of the resource.
- subnet
Id String - Primary key ID.
- subnet
Name String - The Subnet name.
- type String
- Eflo subnet usage type, optional value:
- General type is not filled in
- OOB:OOB type
- LB: LB type
- vpd
Id String - The Eflo VPD ID.
- zone
Id String - The zone ID of the resource.
- cidr string
- Network segment
- create
Time string - The creation time of the resource
- gmt
Modified string - Modification time
- id string
- The ID of the resource.
- message string
- Error message
- resource
Group stringId - Resource Group ID.
- status string
- The status of the resource.
- subnet
Id string - Primary key ID.
- subnet
Name string - The Subnet name.
- type string
- Eflo subnet usage type, optional value:
- General type is not filled in
- OOB:OOB type
- LB: LB type
- vpd
Id string - The Eflo VPD ID.
- zone
Id string - The zone ID of the resource.
- cidr str
- Network segment
- create_
time str - The creation time of the resource
- gmt_
modified str - Modification time
- id str
- The ID of the resource.
- message str
- Error message
- resource_
group_ strid - Resource Group ID.
- status str
- The status of the resource.
- subnet_
id str - Primary key ID.
- subnet_
name str - The Subnet name.
- type str
- Eflo subnet usage type, optional value:
- General type is not filled in
- OOB:OOB type
- LB: LB type
- vpd_
id str - The Eflo VPD ID.
- zone_
id str - The zone ID of the resource.
- cidr String
- Network segment
- create
Time String - The creation time of the resource
- gmt
Modified String - Modification time
- id String
- The ID of the resource.
- message String
- Error message
- resource
Group StringId - Resource Group ID.
- status String
- The status of the resource.
- subnet
Id String - Primary key ID.
- subnet
Name String - The Subnet name.
- type String
- Eflo subnet usage type, optional value:
- General type is not filled in
- OOB:OOB type
- LB: LB type
- vpd
Id String - The Eflo VPD ID.
- zone
Id String - The zone ID of the resource.
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloudTerraform Provider.
Alibaba Cloud v3.88.1 published on Saturday, Nov 8, 2025 by Pulumi
