1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. Opsi
  5. getNewsReport
Oracle Cloud Infrastructure v1.33.0 published on Thursday, Apr 25, 2024 by Pulumi

oci.Opsi.getNewsReport

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v1.33.0 published on Thursday, Apr 25, 2024 by Pulumi

    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/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 GetNewsReport(ctx *Context, args *GetNewsReportArgs, opts ...InvokeOption) (*GetNewsReportResult, error)
    func GetNewsReportOutput(ctx *Context, args *GetNewsReportOutputArgs, opts ...InvokeOption) GetNewsReportResultOutput

    > Note: This function is named GetNewsReport 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)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: oci:Opsi/getNewsReport:getNewsReport
      arguments:
        # arguments dictionary

    The following arguments are supported:

    NewsReportId string
    Unique news report identifier.
    NewsReportId string
    Unique news report identifier.
    newsReportId String
    Unique news report identifier.
    newsReportId string
    Unique news report identifier.
    news_report_id str
    Unique news report identifier.
    newsReportId String
    Unique news report identifier.

    getNewsReport Result

    The following output properties are available:

    AreChildCompartmentsIncluded bool
    A flag to consider the resources within a given compartment and all sub-compartments.
    CompartmentId string
    The OCID of the compartment.
    ContentTypes List<GetNewsReportContentType>
    Content types that the news report can handle.
    DayOfWeek string
    Day of the week in which the news report will be sent if the frequency is set to WEEKLY.
    DefinedTags Dictionary<string, object>
    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.
    FreeformTags Dictionary<string, object>
    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.
    Name string
    The news report name.
    NewsFrequency string
    News report frequency.
    NewsReportId string
    OnsTopicId string
    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 Operations Insights.
    SystemTags Dictionary<string, object>
    System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    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.
    AreChildCompartmentsIncluded bool
    A flag to consider the resources within a given compartment and all sub-compartments.
    CompartmentId string
    The OCID of the compartment.
    ContentTypes []GetNewsReportContentType
    Content types that the news report can handle.
    DayOfWeek string
    Day of the week in which the news report will be sent if the frequency is set to WEEKLY.
    DefinedTags map[string]interface{}
    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.
    FreeformTags map[string]interface{}
    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.
    Name string
    The news report name.
    NewsFrequency string
    News report frequency.
    NewsReportId string
    OnsTopicId string
    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 Operations Insights.
    SystemTags map[string]interface{}
    System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    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.
    areChildCompartmentsIncluded Boolean
    A flag to consider the resources within a given compartment and all sub-compartments.
    compartmentId String
    The OCID of the compartment.
    contentTypes List<GetNewsReportContentType>
    Content types that the news report can handle.
    dayOfWeek String
    Day of the week in which the news report will be sent if the frequency is set to WEEKLY.
    definedTags Map<String,Object>
    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.
    freeformTags Map<String,Object>
    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.
    name String
    The news report name.
    newsFrequency String
    News report frequency.
    newsReportId String
    onsTopicId String
    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 Operations Insights.
    systemTags Map<String,Object>
    System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    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.
    areChildCompartmentsIncluded boolean
    A flag to consider the resources within a given compartment and all sub-compartments.
    compartmentId string
    The OCID of the compartment.
    contentTypes GetNewsReportContentType[]
    Content types that the news report can handle.
    dayOfWeek string
    Day of the week in which the news report will be sent if the frequency is set to WEEKLY.
    definedTags {[key: string]: any}
    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.
    freeformTags {[key: string]: any}
    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.
    name string
    The news report name.
    newsFrequency string
    News report frequency.
    newsReportId string
    onsTopicId string
    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 Operations Insights.
    systemTags {[key: string]: any}
    System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    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_compartments_included bool
    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[opsi.GetNewsReportContentType]
    Content types that the news report can handle.
    day_of_week str
    Day of the week in which the news report will be sent if the frequency is set to WEEKLY.
    defined_tags Mapping[str, Any]
    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.
    freeform_tags Mapping[str, Any]
    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.
    name str
    The news report name.
    news_frequency str
    News report frequency.
    news_report_id str
    ons_topic_id str
    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 Operations Insights.
    system_tags Mapping[str, Any]
    System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    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.
    areChildCompartmentsIncluded Boolean
    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.
    dayOfWeek String
    Day of the week in which the news report will be sent if the frequency is set to WEEKLY.
    definedTags Map<Any>
    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.
    freeformTags Map<Any>
    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.
    name String
    The news report name.
    newsFrequency String
    News report frequency.
    newsReportId String
    onsTopicId String
    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 Operations Insights.
    systemTags Map<Any>
    System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    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

    CapacityPlanningResources List<string>
    Supported resources for capacity planning content type.
    SqlInsightsFleetAnalysisResources List<string>
    Supported resources for SQL insights - fleet analysis content type.
    SqlInsightsPerformanceDegradationResources List<string>
    Supported resources for SQL insights - performance degradation content type.
    SqlInsightsPlanChangesResources List<string>
    Supported resources for SQL insights - plan changes content type.
    SqlInsightsTopDatabasesResources List<string>
    Supported resources for SQL insights - top databases content type.
    SqlInsightsTopSqlByInsightsResources List<string>
    Supported resources for SQL insights - top SQL by insights content type.
    SqlInsightsTopSqlResources List<string>
    Supported resources for SQL insights - top SQL content type.
    CapacityPlanningResources []string
    Supported resources for capacity planning content type.
    SqlInsightsFleetAnalysisResources []string
    Supported resources for SQL insights - fleet analysis content type.
    SqlInsightsPerformanceDegradationResources []string
    Supported resources for SQL insights - performance degradation content type.
    SqlInsightsPlanChangesResources []string
    Supported resources for SQL insights - plan changes content type.
    SqlInsightsTopDatabasesResources []string
    Supported resources for SQL insights - top databases content type.
    SqlInsightsTopSqlByInsightsResources []string
    Supported resources for SQL insights - top SQL by insights content type.
    SqlInsightsTopSqlResources []string
    Supported resources for SQL insights - top SQL content type.
    capacityPlanningResources List<String>
    Supported resources for capacity planning content type.
    sqlInsightsFleetAnalysisResources List<String>
    Supported resources for SQL insights - fleet analysis content type.
    sqlInsightsPerformanceDegradationResources List<String>
    Supported resources for SQL insights - performance degradation content type.
    sqlInsightsPlanChangesResources List<String>
    Supported resources for SQL insights - plan changes content type.
    sqlInsightsTopDatabasesResources List<String>
    Supported resources for SQL insights - top databases content type.
    sqlInsightsTopSqlByInsightsResources List<String>
    Supported resources for SQL insights - top SQL by insights content type.
    sqlInsightsTopSqlResources List<String>
    Supported resources for SQL insights - top SQL content type.
    capacityPlanningResources string[]
    Supported resources for capacity planning content type.
    sqlInsightsFleetAnalysisResources string[]
    Supported resources for SQL insights - fleet analysis content type.
    sqlInsightsPerformanceDegradationResources string[]
    Supported resources for SQL insights - performance degradation content type.
    sqlInsightsPlanChangesResources string[]
    Supported resources for SQL insights - plan changes content type.
    sqlInsightsTopDatabasesResources string[]
    Supported resources for SQL insights - top databases content type.
    sqlInsightsTopSqlByInsightsResources string[]
    Supported resources for SQL insights - top SQL by insights content type.
    sqlInsightsTopSqlResources string[]
    Supported resources for SQL insights - top SQL content type.
    capacity_planning_resources Sequence[str]
    Supported resources for capacity planning content type.
    sql_insights_fleet_analysis_resources Sequence[str]
    Supported resources for SQL insights - fleet analysis content type.
    sql_insights_performance_degradation_resources Sequence[str]
    Supported resources for SQL insights - performance degradation content type.
    sql_insights_plan_changes_resources Sequence[str]
    Supported resources for SQL insights - plan changes content type.
    sql_insights_top_databases_resources Sequence[str]
    Supported resources for SQL insights - top databases content type.
    sql_insights_top_sql_by_insights_resources Sequence[str]
    Supported resources for SQL insights - top SQL by insights content type.
    sql_insights_top_sql_resources Sequence[str]
    Supported resources for SQL insights - top SQL content type.
    capacityPlanningResources List<String>
    Supported resources for capacity planning content type.
    sqlInsightsFleetAnalysisResources List<String>
    Supported resources for SQL insights - fleet analysis content type.
    sqlInsightsPerformanceDegradationResources List<String>
    Supported resources for SQL insights - performance degradation content type.
    sqlInsightsPlanChangesResources List<String>
    Supported resources for SQL insights - plan changes content type.
    sqlInsightsTopDatabasesResources List<String>
    Supported resources for SQL insights - top databases content type.
    sqlInsightsTopSqlByInsightsResources List<String>
    Supported resources for SQL insights - top SQL by insights content type.
    sqlInsightsTopSqlResources List<String>
    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 oci Terraform Provider.
    oci logo
    Oracle Cloud Infrastructure v1.33.0 published on Thursday, Apr 25, 2024 by Pulumi