import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * This data source provides the list of Subnets in Oracle Cloud Infrastructure Core service. * * Lists the subnets in the specified VCN and the specified compartment. * If the VCN ID is not provided, then the list includes the subnets from all VCNs in the specified compartment. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as oci from "@pulumi/oci"; * * const testSubnets = oci.core.getSubnets({ * compartmentId: compartmentId, * displayName: subnetDisplayName, * state: subnetState, * vcnId: testVcn.id, * }); * ``` */ export declare function getSubnets(args: GetSubnetsArgs, opts?: pulumi.InvokeOptions): Promise; /** * A collection of arguments for invoking getSubnets. */ export interface GetSubnetsArgs { /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. */ compartmentId: string; /** * A filter to return only resources that match the given display name exactly. */ displayName?: string; filters?: inputs.Core.GetSubnetsFilter[]; /** * A filter to only return resources that match the given lifecycle state. The state value is case-insensitive. */ state?: string; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VCN. */ vcnId?: string; } /** * A collection of values returned by getSubnets. */ export interface GetSubnetsResult { /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment containing the subnet. */ readonly compartmentId: string; /** * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. */ readonly displayName?: string; readonly filters?: outputs.Core.GetSubnetsFilter[]; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; /** * The subnet's current state. */ readonly state?: string; /** * The list of subnets. */ readonly subnets: outputs.Core.GetSubnetsSubnet[]; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VCN the subnet is in. */ readonly vcnId?: string; } /** * This data source provides the list of Subnets in Oracle Cloud Infrastructure Core service. * * Lists the subnets in the specified VCN and the specified compartment. * If the VCN ID is not provided, then the list includes the subnets from all VCNs in the specified compartment. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as oci from "@pulumi/oci"; * * const testSubnets = oci.core.getSubnets({ * compartmentId: compartmentId, * displayName: subnetDisplayName, * state: subnetState, * vcnId: testVcn.id, * }); * ``` */ export declare function getSubnetsOutput(args: GetSubnetsOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output; /** * A collection of arguments for invoking getSubnets. */ export interface GetSubnetsOutputArgs { /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. */ compartmentId: pulumi.Input; /** * A filter to return only resources that match the given display name exactly. */ displayName?: pulumi.Input; filters?: pulumi.Input[] | undefined>; /** * A filter to only return resources that match the given lifecycle state. The state value is case-insensitive. */ state?: pulumi.Input; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VCN. */ vcnId?: pulumi.Input; } //# sourceMappingURL=getSubnets.d.ts.map