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 Views in Oracle Cloud Infrastructure DNS service. * * Gets a list of all views within a compartment. * * The collection can be filtered by display name, id, or lifecycle state. It can be sorted * on creation time or displayName both in ASC or DESC order. Note that when no lifecycleState * query parameter is provided, the collection does not include views in the DELETED * lifecycleState to be consistent with other operations of the API. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as oci from "@pulumi/oci"; * * const testViews = oci.dns.getViews({ * compartmentId: compartmentId, * scope: "PRIVATE", * displayName: viewDisplayName, * id: viewId, * state: viewState, * }); * ``` */ export declare function getViews(args: GetViewsArgs, opts?: pulumi.InvokeOptions): Promise; /** * A collection of arguments for invoking getViews. */ export interface GetViewsArgs { /** * The OCID of the compartment the resource belongs to. */ compartmentId: string; /** * The displayName of a resource. */ displayName?: string; filters?: inputs.Dns.GetViewsFilter[]; /** * The OCID of a resource. */ id?: string; /** * Value must be `PRIVATE` when listing private views. */ scope?: string; /** * The state of a resource. */ state?: string; } /** * A collection of values returned by getViews. */ export interface GetViewsResult { /** * The OCID of the owning compartment. */ readonly compartmentId: string; /** * The display name of the view. */ readonly displayName?: string; readonly filters?: outputs.Dns.GetViewsFilter[]; /** * The OCID of the view. */ readonly id?: string; readonly scope?: string; /** * The current state of the resource. */ readonly state?: string; /** * The list of views. */ readonly views: outputs.Dns.GetViewsView[]; } /** * This data source provides the list of Views in Oracle Cloud Infrastructure DNS service. * * Gets a list of all views within a compartment. * * The collection can be filtered by display name, id, or lifecycle state. It can be sorted * on creation time or displayName both in ASC or DESC order. Note that when no lifecycleState * query parameter is provided, the collection does not include views in the DELETED * lifecycleState to be consistent with other operations of the API. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as oci from "@pulumi/oci"; * * const testViews = oci.dns.getViews({ * compartmentId: compartmentId, * scope: "PRIVATE", * displayName: viewDisplayName, * id: viewId, * state: viewState, * }); * ``` */ export declare function getViewsOutput(args: GetViewsOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output; /** * A collection of arguments for invoking getViews. */ export interface GetViewsOutputArgs { /** * The OCID of the compartment the resource belongs to. */ compartmentId: pulumi.Input; /** * The displayName of a resource. */ displayName?: pulumi.Input; filters?: pulumi.Input[] | undefined>; /** * The OCID of a resource. */ id?: pulumi.Input; /** * Value must be `PRIVATE` when listing private views. */ scope?: pulumi.Input; /** * The state of a resource. */ state?: pulumi.Input; } //# sourceMappingURL=getViews.d.ts.map