Oracle Cloud Infrastructure v2.33.0 published on Thursday, May 1, 2025 by Pulumi
oci.Opsi.getNewsReport
Explore with Pulumi AI
This data source provides details about a specific News Report resource in Oracle Cloud Infrastructure Opsi service.
Gets details of a news report.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testNewsReport = oci.Opsi.getNewsReport({
    newsReportId: testNewsReportOciOpsiNewsReport.id,
});
import pulumi
import pulumi_oci as oci
test_news_report = oci.Opsi.get_news_report(news_report_id=test_news_report_oci_opsi_news_report["id"])
package main
import (
	"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/opsi"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := opsi.GetNewsReport(ctx, &opsi.GetNewsReportArgs{
			NewsReportId: testNewsReportOciOpsiNewsReport.Id,
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Oci = Pulumi.Oci;
return await Deployment.RunAsync(() => 
{
    var testNewsReport = Oci.Opsi.GetNewsReport.Invoke(new()
    {
        NewsReportId = testNewsReportOciOpsiNewsReport.Id,
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.Opsi.OpsiFunctions;
import com.pulumi.oci.Opsi.inputs.GetNewsReportArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }
    public static void stack(Context ctx) {
        final var testNewsReport = OpsiFunctions.getNewsReport(GetNewsReportArgs.builder()
            .newsReportId(testNewsReportOciOpsiNewsReport.id())
            .build());
    }
}
variables:
  testNewsReport:
    fn::invoke:
      function: oci:Opsi:getNewsReport
      arguments:
        newsReportId: ${testNewsReportOciOpsiNewsReport.id}
Using getNewsReport
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getNewsReport(args: GetNewsReportArgs, opts?: InvokeOptions): Promise<GetNewsReportResult>
function getNewsReportOutput(args: GetNewsReportOutputArgs, opts?: InvokeOptions): Output<GetNewsReportResult>def get_news_report(news_report_id: Optional[str] = None,
                    opts: Optional[InvokeOptions] = None) -> GetNewsReportResult
def get_news_report_output(news_report_id: Optional[pulumi.Input[str]] = None,
                    opts: Optional[InvokeOptions] = None) -> Output[GetNewsReportResult]func LookupNewsReport(ctx *Context, args *LookupNewsReportArgs, opts ...InvokeOption) (*LookupNewsReportResult, error)
func LookupNewsReportOutput(ctx *Context, args *LookupNewsReportOutputArgs, opts ...InvokeOption) LookupNewsReportResultOutput> Note: This function is named LookupNewsReport in the Go SDK.
public static class GetNewsReport 
{
    public static Task<GetNewsReportResult> InvokeAsync(GetNewsReportArgs args, InvokeOptions? opts = null)
    public static Output<GetNewsReportResult> Invoke(GetNewsReportInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetNewsReportResult> getNewsReport(GetNewsReportArgs args, InvokeOptions options)
public static Output<GetNewsReportResult> getNewsReport(GetNewsReportArgs args, InvokeOptions options)
fn::invoke:
  function: oci:Opsi/getNewsReport:getNewsReport
  arguments:
    # arguments dictionaryThe following arguments are supported:
- NewsReport stringId 
- Unique news report identifier.
- NewsReport stringId 
- Unique news report identifier.
- newsReport StringId 
- Unique news report identifier.
- newsReport stringId 
- Unique news report identifier.
- news_report_ strid 
- Unique news report identifier.
- newsReport StringId 
- Unique news report identifier.
getNewsReport Result
The following output properties are available:
- AreChild boolCompartments Included 
- A flag to consider the resources within a given compartment and all sub-compartments.
- CompartmentId string
- The OCID of the compartment.
- ContentTypes List<GetNews Report Content Type> 
- Content types that the news report can handle.
- DayOf stringWeek 
- Day of the week in which the news report will be sent if the frequency is set to WEEKLY.
- Dictionary<string, string>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
- Description string
- The description of the news report.
- Dictionary<string, string>
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
- Id string
- The OCID of the news report resource.
- LifecycleDetails string
- A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
- Locale string
- Language of the news report.
- MatchRule string
- Match rule used for tag filters.
- Name string
- The news report name.
- NewsFrequency string
- News report frequency.
- NewsReport stringId 
- OnsTopic stringId 
- The OCID of the ONS topic.
- State string
- The current state of the news report.
- Status string
- Indicates the status of a news report in Ops Insights.
- Dictionary<string, string>
- System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
- TagFilters List<string>
- List of tag filters; each filter composed by a namespace, key, and value. Example for defined tags - '.='. Example for freeform tags - '='.
- TimeCreated string
- The time the the news report was first enabled. An RFC3339 formatted datetime string.
- TimeUpdated string
- The time the news report was updated. An RFC3339 formatted datetime string.
- AreChild boolCompartments Included 
- A flag to consider the resources within a given compartment and all sub-compartments.
- CompartmentId string
- The OCID of the compartment.
- ContentTypes []GetNews Report Content Type 
- Content types that the news report can handle.
- DayOf stringWeek 
- Day of the week in which the news report will be sent if the frequency is set to WEEKLY.
- map[string]string
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
- Description string
- The description of the news report.
- map[string]string
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
- Id string
- The OCID of the news report resource.
- LifecycleDetails string
- A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
- Locale string
- Language of the news report.
- MatchRule string
- Match rule used for tag filters.
- Name string
- The news report name.
- NewsFrequency string
- News report frequency.
- NewsReport stringId 
- OnsTopic stringId 
- The OCID of the ONS topic.
- State string
- The current state of the news report.
- Status string
- Indicates the status of a news report in Ops Insights.
- map[string]string
- System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
- TagFilters []string
- List of tag filters; each filter composed by a namespace, key, and value. Example for defined tags - '.='. Example for freeform tags - '='.
- TimeCreated string
- The time the the news report was first enabled. An RFC3339 formatted datetime string.
- TimeUpdated string
- The time the news report was updated. An RFC3339 formatted datetime string.
- areChild BooleanCompartments Included 
- A flag to consider the resources within a given compartment and all sub-compartments.
- compartmentId String
- The OCID of the compartment.
- contentTypes List<GetNews Report Content Type> 
- Content types that the news report can handle.
- dayOf StringWeek 
- Day of the week in which the news report will be sent if the frequency is set to WEEKLY.
- Map<String,String>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
- description String
- The description of the news report.
- Map<String,String>
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
- id String
- The OCID of the news report resource.
- lifecycleDetails String
- A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
- locale String
- Language of the news report.
- matchRule String
- Match rule used for tag filters.
- name String
- The news report name.
- newsFrequency String
- News report frequency.
- newsReport StringId 
- onsTopic StringId 
- The OCID of the ONS topic.
- state String
- The current state of the news report.
- status String
- Indicates the status of a news report in Ops Insights.
- Map<String,String>
- System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
- tagFilters List<String>
- List of tag filters; each filter composed by a namespace, key, and value. Example for defined tags - '.='. Example for freeform tags - '='.
- timeCreated String
- The time the the news report was first enabled. An RFC3339 formatted datetime string.
- timeUpdated String
- The time the news report was updated. An RFC3339 formatted datetime string.
- areChild booleanCompartments Included 
- A flag to consider the resources within a given compartment and all sub-compartments.
- compartmentId string
- The OCID of the compartment.
- contentTypes GetNews Report Content Type[] 
- Content types that the news report can handle.
- dayOf stringWeek 
- Day of the week in which the news report will be sent if the frequency is set to WEEKLY.
- {[key: string]: string}
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
- description string
- The description of the news report.
- {[key: string]: string}
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
- id string
- The OCID of the news report resource.
- lifecycleDetails string
- A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
- locale string
- Language of the news report.
- matchRule string
- Match rule used for tag filters.
- name string
- The news report name.
- newsFrequency string
- News report frequency.
- newsReport stringId 
- onsTopic stringId 
- The OCID of the ONS topic.
- state string
- The current state of the news report.
- status string
- Indicates the status of a news report in Ops Insights.
- {[key: string]: string}
- System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
- tagFilters string[]
- List of tag filters; each filter composed by a namespace, key, and value. Example for defined tags - '.='. Example for freeform tags - '='.
- timeCreated string
- The time the the news report was first enabled. An RFC3339 formatted datetime string.
- timeUpdated string
- The time the news report was updated. An RFC3339 formatted datetime string.
- are_child_ boolcompartments_ included 
- A flag to consider the resources within a given compartment and all sub-compartments.
- compartment_id str
- The OCID of the compartment.
- content_types Sequence[GetNews Report Content Type] 
- Content types that the news report can handle.
- day_of_ strweek 
- Day of the week in which the news report will be sent if the frequency is set to WEEKLY.
- Mapping[str, str]
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
- description str
- The description of the news report.
- Mapping[str, str]
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
- id str
- The OCID of the news report resource.
- lifecycle_details str
- A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
- locale str
- Language of the news report.
- match_rule str
- Match rule used for tag filters.
- name str
- The news report name.
- news_frequency str
- News report frequency.
- news_report_ strid 
- ons_topic_ strid 
- The OCID of the ONS topic.
- state str
- The current state of the news report.
- status str
- Indicates the status of a news report in Ops Insights.
- Mapping[str, str]
- System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
- tag_filters Sequence[str]
- List of tag filters; each filter composed by a namespace, key, and value. Example for defined tags - '.='. Example for freeform tags - '='.
- time_created str
- The time the the news report was first enabled. An RFC3339 formatted datetime string.
- time_updated str
- The time the news report was updated. An RFC3339 formatted datetime string.
- areChild BooleanCompartments Included 
- A flag to consider the resources within a given compartment and all sub-compartments.
- compartmentId String
- The OCID of the compartment.
- contentTypes List<Property Map>
- Content types that the news report can handle.
- dayOf StringWeek 
- Day of the week in which the news report will be sent if the frequency is set to WEEKLY.
- Map<String>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
- description String
- The description of the news report.
- Map<String>
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
- id String
- The OCID of the news report resource.
- lifecycleDetails String
- A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
- locale String
- Language of the news report.
- matchRule String
- Match rule used for tag filters.
- name String
- The news report name.
- newsFrequency String
- News report frequency.
- newsReport StringId 
- onsTopic StringId 
- The OCID of the ONS topic.
- state String
- The current state of the news report.
- status String
- Indicates the status of a news report in Ops Insights.
- Map<String>
- System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
- tagFilters List<String>
- List of tag filters; each filter composed by a namespace, key, and value. Example for defined tags - '.='. Example for freeform tags - '='.
- timeCreated String
- The time the the news report was first enabled. An RFC3339 formatted datetime string.
- timeUpdated String
- The time the news report was updated. An RFC3339 formatted datetime string.
Supporting Types
GetNewsReportContentType    
- ActionableInsights List<string>Resources 
- Supported resources for actionable insights content type.
- CapacityPlanning List<string>Resources 
- Supported resources for capacity planning content type.
- SqlInsights List<string>Fleet Analysis Resources 
- Supported resources for SQL insights - fleet analysis content type.
- SqlInsights List<string>Performance Degradation Resources 
- Supported resources for SQL insights - performance degradation content type.
- SqlInsights List<string>Plan Changes Resources 
- Supported resources for SQL insights - plan changes content type.
- SqlInsights List<string>Top Databases Resources 
- Supported resources for SQL insights - top databases content type.
- SqlInsights List<string>Top Sql By Insights Resources 
- Supported resources for SQL insights - top SQL by insights content type.
- SqlInsights List<string>Top Sql Resources 
- Supported resources for SQL insights - top SQL content type.
- ActionableInsights []stringResources 
- Supported resources for actionable insights content type.
- CapacityPlanning []stringResources 
- Supported resources for capacity planning content type.
- SqlInsights []stringFleet Analysis Resources 
- Supported resources for SQL insights - fleet analysis content type.
- SqlInsights []stringPerformance Degradation Resources 
- Supported resources for SQL insights - performance degradation content type.
- SqlInsights []stringPlan Changes Resources 
- Supported resources for SQL insights - plan changes content type.
- SqlInsights []stringTop Databases Resources 
- Supported resources for SQL insights - top databases content type.
- SqlInsights []stringTop Sql By Insights Resources 
- Supported resources for SQL insights - top SQL by insights content type.
- SqlInsights []stringTop Sql Resources 
- Supported resources for SQL insights - top SQL content type.
- actionableInsights List<String>Resources 
- Supported resources for actionable insights content type.
- capacityPlanning List<String>Resources 
- Supported resources for capacity planning content type.
- sqlInsights List<String>Fleet Analysis Resources 
- Supported resources for SQL insights - fleet analysis content type.
- sqlInsights List<String>Performance Degradation Resources 
- Supported resources for SQL insights - performance degradation content type.
- sqlInsights List<String>Plan Changes Resources 
- Supported resources for SQL insights - plan changes content type.
- sqlInsights List<String>Top Databases Resources 
- Supported resources for SQL insights - top databases content type.
- sqlInsights List<String>Top Sql By Insights Resources 
- Supported resources for SQL insights - top SQL by insights content type.
- sqlInsights List<String>Top Sql Resources 
- Supported resources for SQL insights - top SQL content type.
- actionableInsights string[]Resources 
- Supported resources for actionable insights content type.
- capacityPlanning string[]Resources 
- Supported resources for capacity planning content type.
- sqlInsights string[]Fleet Analysis Resources 
- Supported resources for SQL insights - fleet analysis content type.
- sqlInsights string[]Performance Degradation Resources 
- Supported resources for SQL insights - performance degradation content type.
- sqlInsights string[]Plan Changes Resources 
- Supported resources for SQL insights - plan changes content type.
- sqlInsights string[]Top Databases Resources 
- Supported resources for SQL insights - top databases content type.
- sqlInsights string[]Top Sql By Insights Resources 
- Supported resources for SQL insights - top SQL by insights content type.
- sqlInsights string[]Top Sql Resources 
- Supported resources for SQL insights - top SQL content type.
- actionable_insights_ Sequence[str]resources 
- Supported resources for actionable insights content type.
- capacity_planning_ Sequence[str]resources 
- Supported resources for capacity planning content type.
- sql_insights_ Sequence[str]fleet_ analysis_ resources 
- Supported resources for SQL insights - fleet analysis content type.
- sql_insights_ Sequence[str]performance_ degradation_ resources 
- Supported resources for SQL insights - performance degradation content type.
- sql_insights_ Sequence[str]plan_ changes_ resources 
- Supported resources for SQL insights - plan changes content type.
- sql_insights_ Sequence[str]top_ databases_ resources 
- Supported resources for SQL insights - top databases content type.
- sql_insights_ Sequence[str]top_ sql_ by_ insights_ resources 
- Supported resources for SQL insights - top SQL by insights content type.
- sql_insights_ Sequence[str]top_ sql_ resources 
- Supported resources for SQL insights - top SQL content type.
- actionableInsights List<String>Resources 
- Supported resources for actionable insights content type.
- capacityPlanning List<String>Resources 
- Supported resources for capacity planning content type.
- sqlInsights List<String>Fleet Analysis Resources 
- Supported resources for SQL insights - fleet analysis content type.
- sqlInsights List<String>Performance Degradation Resources 
- Supported resources for SQL insights - performance degradation content type.
- sqlInsights List<String>Plan Changes Resources 
- Supported resources for SQL insights - plan changes content type.
- sqlInsights List<String>Top Databases Resources 
- Supported resources for SQL insights - top databases content type.
- sqlInsights List<String>Top Sql By Insights Resources 
- Supported resources for SQL insights - top SQL by insights content type.
- sqlInsights List<String>Top Sql Resources 
- Supported resources for SQL insights - top SQL content type.
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the ociTerraform Provider.