Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi
oci.Opsi.getNewsReport
Explore with Pulumi AI
Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 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:
- News
Report stringId - Unique news report identifier.
- News
Report stringId - Unique news report identifier.
- news
Report StringId - Unique news report identifier.
- news
Report stringId - Unique news report identifier.
- news_
report_ strid - Unique news report identifier.
- news
Report StringId - Unique news report identifier.
getNewsReport Result
The following output properties are available:
- Are
Child boolCompartments Included - A flag to consider the resources within a given compartment and all sub-compartments.
- Compartment
Id string - The OCID of the compartment.
- Content
Types List<GetNews Report Content Type> - Content types that the news report can handle.
- Day
Of stringWeek - Day of the week in which the news report will be sent if the frequency is set to WEEKLY.
- 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.
- 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.
- Lifecycle
Details 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.
- News
Frequency string - News report frequency.
- News
Report stringId - Ons
Topic 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 Operations Insights.
- Dictionary<string, object>
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"}
- Time
Created string - The time the the news report was first enabled. An RFC3339 formatted datetime string.
- Time
Updated 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 string - The OCID of the compartment.
- Content
Types []GetNews Report Content Type - Content types that the news report can handle.
- Day
Of stringWeek - Day of the week in which the news report will be sent if the frequency is set to WEEKLY.
- 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.
- 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.
- Lifecycle
Details 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.
- News
Frequency string - News report frequency.
- News
Report stringId - Ons
Topic 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 Operations Insights.
- map[string]interface{}
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"}
- Time
Created string - The time the the news report was first enabled. An RFC3339 formatted datetime string.
- Time
Updated string - The time the news report was updated. An RFC3339 formatted datetime string.
- are
Child BooleanCompartments Included - A flag to consider the resources within a given compartment and all sub-compartments.
- compartment
Id String - The OCID of the compartment.
- content
Types List<GetNews Report Content Type> - Content types that the news report can handle.
- day
Of StringWeek - Day of the week in which the news report will be sent if the frequency is set to WEEKLY.
- 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.
- 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.
- lifecycle
Details 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.
- news
Frequency String - News report frequency.
- news
Report StringId - ons
Topic 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 Operations Insights.
- Map<String,Object>
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"}
- time
Created String - The time the the news report was first enabled. An RFC3339 formatted datetime string.
- time
Updated String - The time the news report was updated. An RFC3339 formatted datetime string.
- are
Child booleanCompartments Included - A flag to consider the resources within a given compartment and all sub-compartments.
- compartment
Id string - The OCID of the compartment.
- content
Types GetNews Report Content Type[] - Content types that the news report can handle.
- day
Of stringWeek - Day of the week in which the news report will be sent if the frequency is set to WEEKLY.
- {[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.
- {[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.
- lifecycle
Details 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.
- news
Frequency string - News report frequency.
- news
Report stringId - ons
Topic 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 Operations Insights.
- {[key: string]: any}
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"}
- time
Created string - The time the the news report was first enabled. An RFC3339 formatted datetime string.
- time
Updated 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[opsi.Get News 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, 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.
- 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_ 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 Operations Insights.
- 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.
- are
Child BooleanCompartments Included - A flag to consider the resources within a given compartment and all sub-compartments.
- compartment
Id String - The OCID of the compartment.
- content
Types List<Property Map> - Content types that the news report can handle.
- day
Of StringWeek - Day of the week in which the news report will be sent if the frequency is set to WEEKLY.
- 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.
- 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.
- lifecycle
Details 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.
- news
Frequency String - News report frequency.
- news
Report StringId - ons
Topic 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 Operations Insights.
- Map<Any>
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"}
- time
Created String - The time the the news report was first enabled. An RFC3339 formatted datetime string.
- time
Updated String - The time the news report was updated. An RFC3339 formatted datetime string.
Supporting Types
GetNewsReportContentType
- Capacity
Planning List<string>Resources - Supported resources for capacity planning content type.
- Sql
Insights List<string>Fleet Analysis Resources - Supported resources for SQL insights - fleet analysis content type.
- Sql
Insights List<string>Performance Degradation Resources - Supported resources for SQL insights - performance degradation content type.
- Sql
Insights List<string>Plan Changes Resources - Supported resources for SQL insights - plan changes content type.
- Sql
Insights List<string>Top Databases Resources - Supported resources for SQL insights - top databases content type.
- Sql
Insights List<string>Top Sql By Insights Resources - Supported resources for SQL insights - top SQL by insights content type.
- Sql
Insights List<string>Top Sql Resources - Supported resources for SQL insights - top SQL content type.
- Capacity
Planning []stringResources - Supported resources for capacity planning content type.
- Sql
Insights []stringFleet Analysis Resources - Supported resources for SQL insights - fleet analysis content type.
- Sql
Insights []stringPerformance Degradation Resources - Supported resources for SQL insights - performance degradation content type.
- Sql
Insights []stringPlan Changes Resources - Supported resources for SQL insights - plan changes content type.
- Sql
Insights []stringTop Databases Resources - Supported resources for SQL insights - top databases content type.
- Sql
Insights []stringTop Sql By Insights Resources - Supported resources for SQL insights - top SQL by insights content type.
- Sql
Insights []stringTop Sql Resources - Supported resources for SQL insights - top SQL content type.
- capacity
Planning List<String>Resources - Supported resources for capacity planning content type.
- sql
Insights List<String>Fleet Analysis Resources - Supported resources for SQL insights - fleet analysis content type.
- sql
Insights List<String>Performance Degradation Resources - Supported resources for SQL insights - performance degradation content type.
- sql
Insights List<String>Plan Changes Resources - Supported resources for SQL insights - plan changes content type.
- sql
Insights List<String>Top Databases Resources - Supported resources for SQL insights - top databases content type.
- sql
Insights List<String>Top Sql By Insights Resources - Supported resources for SQL insights - top SQL by insights content type.
- sql
Insights List<String>Top Sql Resources - Supported resources for SQL insights - top SQL content type.
- capacity
Planning string[]Resources - Supported resources for capacity planning content type.
- sql
Insights string[]Fleet Analysis Resources - Supported resources for SQL insights - fleet analysis content type.
- sql
Insights string[]Performance Degradation Resources - Supported resources for SQL insights - performance degradation content type.
- sql
Insights string[]Plan Changes Resources - Supported resources for SQL insights - plan changes content type.
- sql
Insights string[]Top Databases Resources - Supported resources for SQL insights - top databases content type.
- sql
Insights string[]Top Sql By Insights Resources - Supported resources for SQL insights - top SQL by insights content type.
- sql
Insights string[]Top Sql Resources - Supported resources for SQL insights - top SQL 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.
- capacity
Planning List<String>Resources - Supported resources for capacity planning content type.
- sql
Insights List<String>Fleet Analysis Resources - Supported resources for SQL insights - fleet analysis content type.
- sql
Insights List<String>Performance Degradation Resources - Supported resources for SQL insights - performance degradation content type.
- sql
Insights List<String>Plan Changes Resources - Supported resources for SQL insights - plan changes content type.
- sql
Insights List<String>Top Databases Resources - Supported resources for SQL insights - top databases content type.
- sql
Insights List<String>Top Sql By Insights Resources - Supported resources for SQL insights - top SQL by insights content type.
- sql
Insights 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
oci
Terraform Provider.
Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi