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 Namespaces in Oracle Cloud Infrastructure Log Analytics service. * * Given a tenancy OCID, this API returns the namespace of the tenancy if it is valid and subscribed to the region. The * result also indicates if the tenancy is onboarded with Log Analytics. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as oci from "@pulumi/oci"; * * const testNamespaces = oci.loganalytics.getNamespaces({ * compartmentId: compartmentId, * isCompartmentDelete: namespaceIsCompartmentDelete === "true", * }); * ``` */ export declare function getNamespaces(args: GetNamespacesArgs, opts?: pulumi.InvokeOptions): Promise; /** * A collection of arguments for invoking getNamespaces. */ export interface GetNamespacesArgs { /** * The ID of the compartment in which to list resources. */ compartmentId: string; filters?: inputs.LogAnalytics.GetNamespacesFilter[]; /** * if true, the request is from compartment delete service. */ isCompartmentDelete?: boolean; } /** * A collection of values returned by getNamespaces. */ export interface GetNamespacesResult { /** * This is the tenancy ID */ readonly compartmentId: string; readonly filters?: outputs.LogAnalytics.GetNamespacesFilter[]; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; readonly isCompartmentDelete?: boolean; /** * The list of namespace_collection. */ readonly namespaceCollections: outputs.LogAnalytics.GetNamespacesNamespaceCollection[]; } /** * This data source provides the list of Namespaces in Oracle Cloud Infrastructure Log Analytics service. * * Given a tenancy OCID, this API returns the namespace of the tenancy if it is valid and subscribed to the region. The * result also indicates if the tenancy is onboarded with Log Analytics. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as oci from "@pulumi/oci"; * * const testNamespaces = oci.loganalytics.getNamespaces({ * compartmentId: compartmentId, * isCompartmentDelete: namespaceIsCompartmentDelete === "true", * }); * ``` */ export declare function getNamespacesOutput(args: GetNamespacesOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output; /** * A collection of arguments for invoking getNamespaces. */ export interface GetNamespacesOutputArgs { /** * The ID of the compartment in which to list resources. */ compartmentId: pulumi.Input; filters?: pulumi.Input[] | undefined>; /** * if true, the request is from compartment delete service. */ isCompartmentDelete?: pulumi.Input; } //# sourceMappingURL=getNamespaces.d.ts.map