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 Zones in Oracle Cloud Infrastructure DNS service. * * Gets a list of all zones in the specified compartment. * * The collection can be filtered by name, time created, scope, associated view, and zone type. * Filtering by view is only supported for private zones. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as oci from "@pulumi/oci"; * * const testZones = oci.dns.getZones({ * compartmentId: compartmentId, * dnssecState: zoneDnssecState, * name: zoneName, * nameContains: zoneNameContains, * scope: zoneScope, * state: zoneState, * timeCreatedGreaterThanOrEqualTo: zoneTimeCreatedGreaterThanOrEqualTo, * timeCreatedLessThan: zoneTimeCreatedLessThan, * tsigKeyId: testTsigKey.id, * viewId: testView.id, * zoneType: zoneZoneType, * }); * ``` */ export declare function getZones(args: GetZonesArgs, opts?: pulumi.InvokeOptions): Promise; /** * A collection of arguments for invoking getZones. */ export interface GetZonesArgs { /** * The OCID of the compartment the resource belongs to. */ compartmentId: string; /** * Search for zones that have the given `DnssecState`. */ dnssecState?: string; filters?: inputs.Dns.GetZonesFilter[]; /** * A case-sensitive filter for zone names. Will match any zone with a name that equals the provided value. */ name?: string; /** * Search by zone name. Will match any zone whose name (case-insensitive) contains the provided value. */ nameContains?: string; /** * Specifies to operate only on resources that have a matching DNS scope. */ scope?: string; /** * The field by which to sort zones. Allowed values are: name|zoneType|timeCreated */ sortBy?: string; /** * The order to sort the resources. Allowed values are: ASC|DESC */ sortOrder?: string; /** * The state of a resource. */ state?: string; /** * An [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) timestamp that states all returned resources were created on or after the indicated time. */ timeCreatedGreaterThanOrEqualTo?: string; /** * An [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) timestamp that states all returned resources were created before the indicated time. */ timeCreatedLessThan?: string; /** * Search for zones that are associated with a TSIG key. */ tsigKeyId?: string; /** * The OCID of the view the resource is associated with. */ viewId?: string; /** * Search by zone type, `PRIMARY` or `SECONDARY`. Will match any zone whose type equals the provided value. */ zoneType?: string; } /** * A collection of values returned by getZones. */ export interface GetZonesResult { /** * The OCID of the compartment containing the zone. */ readonly compartmentId: string; /** * The state of DNSSEC on the zone. */ readonly dnssecState?: string; readonly filters?: outputs.Dns.GetZonesFilter[]; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; /** * The name of the zone. */ readonly name?: string; readonly nameContains?: string; /** * The scope of the zone. */ readonly scope?: string; readonly sortBy?: string; readonly sortOrder?: string; /** * The current state of the zone resource. */ readonly state?: string; readonly timeCreatedGreaterThanOrEqualTo?: string; readonly timeCreatedLessThan?: string; readonly tsigKeyId?: string; /** * The OCID of the private view containing the zone. This value will be null for zones in the global DNS, which are publicly resolvable and not part of a private view. */ readonly viewId?: string; /** * The type of the zone. Must be either `PRIMARY` or `SECONDARY`. `SECONDARY` is only supported for GLOBAL zones. */ readonly zoneType?: string; /** * The list of zones. */ readonly zones: outputs.Dns.GetZonesZone[]; } /** * This data source provides the list of Zones in Oracle Cloud Infrastructure DNS service. * * Gets a list of all zones in the specified compartment. * * The collection can be filtered by name, time created, scope, associated view, and zone type. * Filtering by view is only supported for private zones. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as oci from "@pulumi/oci"; * * const testZones = oci.dns.getZones({ * compartmentId: compartmentId, * dnssecState: zoneDnssecState, * name: zoneName, * nameContains: zoneNameContains, * scope: zoneScope, * state: zoneState, * timeCreatedGreaterThanOrEqualTo: zoneTimeCreatedGreaterThanOrEqualTo, * timeCreatedLessThan: zoneTimeCreatedLessThan, * tsigKeyId: testTsigKey.id, * viewId: testView.id, * zoneType: zoneZoneType, * }); * ``` */ export declare function getZonesOutput(args: GetZonesOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output; /** * A collection of arguments for invoking getZones. */ export interface GetZonesOutputArgs { /** * The OCID of the compartment the resource belongs to. */ compartmentId: pulumi.Input; /** * Search for zones that have the given `DnssecState`. */ dnssecState?: pulumi.Input; filters?: pulumi.Input[] | undefined>; /** * A case-sensitive filter for zone names. Will match any zone with a name that equals the provided value. */ name?: pulumi.Input; /** * Search by zone name. Will match any zone whose name (case-insensitive) contains the provided value. */ nameContains?: pulumi.Input; /** * Specifies to operate only on resources that have a matching DNS scope. */ scope?: pulumi.Input; /** * The field by which to sort zones. Allowed values are: name|zoneType|timeCreated */ sortBy?: pulumi.Input; /** * The order to sort the resources. Allowed values are: ASC|DESC */ sortOrder?: pulumi.Input; /** * The state of a resource. */ state?: pulumi.Input; /** * An [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) timestamp that states all returned resources were created on or after the indicated time. */ timeCreatedGreaterThanOrEqualTo?: pulumi.Input; /** * An [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) timestamp that states all returned resources were created before the indicated time. */ timeCreatedLessThan?: pulumi.Input; /** * Search for zones that are associated with a TSIG key. */ tsigKeyId?: pulumi.Input; /** * The OCID of the view the resource is associated with. */ viewId?: pulumi.Input; /** * Search by zone type, `PRIMARY` or `SECONDARY`. Will match any zone whose type equals the provided value. */ zoneType?: pulumi.Input; } //# sourceMappingURL=getZones.d.ts.map