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 News Reports in Oracle Cloud Infrastructure Opsi service. * * Gets a list of news reports based on the query parameters specified. Either compartmentId or id query parameter must be specified. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as oci from "@pulumi/oci"; * * const testNewsReports = oci.opsi.getNewsReports({ * compartmentId: compartmentId, * compartmentIdInSubtree: newsReportCompartmentIdInSubtree === "true", * newsReportId: testNewsReport.id, * states: newsReportState, * statuses: newsReportStatus, * }); * ``` */ export declare function getNewsReports(args?: GetNewsReportsArgs, opts?: pulumi.InvokeOptions): Promise; /** * A collection of arguments for invoking getNewsReports. */ export interface GetNewsReportsArgs { /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. */ compartmentId?: string; /** * A flag to search all resources within a given compartment and all sub-compartments. */ compartmentIdInSubtree?: boolean; filters?: inputs.Opsi.GetNewsReportsFilter[]; /** * Unique Ops Insights news report identifier */ newsReportId?: string; /** * Lifecycle states */ states?: string[]; /** * Resource Status */ statuses?: string[]; } /** * A collection of values returned by getNewsReports. */ export interface GetNewsReportsResult { /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. */ readonly compartmentId?: string; readonly compartmentIdInSubtree?: boolean; readonly filters?: outputs.Opsi.GetNewsReportsFilter[]; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; /** * The list of news_report_collection. */ readonly newsReportCollections: outputs.Opsi.GetNewsReportsNewsReportCollection[]; readonly newsReportId?: string; /** * The current state of the news report. */ readonly states?: string[]; /** * Indicates the status of a news report in Ops Insights. */ readonly statuses?: string[]; } /** * This data source provides the list of News Reports in Oracle Cloud Infrastructure Opsi service. * * Gets a list of news reports based on the query parameters specified. Either compartmentId or id query parameter must be specified. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as oci from "@pulumi/oci"; * * const testNewsReports = oci.opsi.getNewsReports({ * compartmentId: compartmentId, * compartmentIdInSubtree: newsReportCompartmentIdInSubtree === "true", * newsReportId: testNewsReport.id, * states: newsReportState, * statuses: newsReportStatus, * }); * ``` */ export declare function getNewsReportsOutput(args?: GetNewsReportsOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output; /** * A collection of arguments for invoking getNewsReports. */ export interface GetNewsReportsOutputArgs { /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. */ compartmentId?: pulumi.Input; /** * A flag to search all resources within a given compartment and all sub-compartments. */ compartmentIdInSubtree?: pulumi.Input; filters?: pulumi.Input[] | undefined>; /** * Unique Ops Insights news report identifier */ newsReportId?: pulumi.Input; /** * Lifecycle states */ states?: pulumi.Input[] | undefined>; /** * Resource Status */ statuses?: pulumi.Input[] | undefined>; } //# sourceMappingURL=getNewsReports.d.ts.map