Oracle Cloud Infrastructure

Pulumi Official
Package maintained by Pulumi
v0.1.1 published on Tuesday, May 3, 2022 by Pulumi

getReportContent

This data source provides details about a specific Report Content resource in Oracle Cloud Infrastructure Data Safe service.

Downloads the specified report in the form of PDF or XLXS.

Example Usage

using Pulumi;
using Oci = Pulumi.Oci;

class MyStack : Stack
{
    public MyStack()
    {
        var testReportContent = Output.Create(Oci.DataSafe.GetReportContent.InvokeAsync(new Oci.DataSafe.GetReportContentArgs
        {
            ReportId = oci_data_safe_report.Test_report.Id,
        }));
    }

}
package main

import (
	"github.com/pulumi/pulumi-oci/sdk/go/oci/DataSafe"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := DataSafe.GetReportContent(ctx, &datasafe.GetReportContentArgs{
			ReportId: oci_data_safe_report.Test_report.Id,
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

Coming soon!

import pulumi
import pulumi_oci as oci

test_report_content = oci.DataSafe.get_report_content(report_id=oci_data_safe_report["test_report"]["id"])
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";

const testReportContent = oci.DataSafe.getReportContent({
    reportId: oci_data_safe_report.test_report.id,
});

Coming soon!

Using getReportContent

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 getReportContent(args: GetReportContentArgs, opts?: InvokeOptions): Promise<GetReportContentResult>
function getReportContentOutput(args: GetReportContentOutputArgs, opts?: InvokeOptions): Output<GetReportContentResult>
def get_report_content(report_id: Optional[str] = None,
                       opts: Optional[InvokeOptions] = None) -> GetReportContentResult
def get_report_content_output(report_id: Optional[pulumi.Input[str]] = None,
                       opts: Optional[InvokeOptions] = None) -> Output[GetReportContentResult]
func GetReportContent(ctx *Context, args *GetReportContentArgs, opts ...InvokeOption) (*GetReportContentResult, error)
func GetReportContentOutput(ctx *Context, args *GetReportContentOutputArgs, opts ...InvokeOption) GetReportContentResultOutput

> Note: This function is named GetReportContent in the Go SDK.

public static class GetReportContent 
{
    public static Task<GetReportContentResult> InvokeAsync(GetReportContentArgs args, InvokeOptions? opts = null)
    public static Output<GetReportContentResult> Invoke(GetReportContentInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetReportContentResult> getReportContent(GetReportContentArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
Fn::Invoke:
  Function: oci:DataSafe/getReportContent:getReportContent
  Arguments:
    # Arguments dictionary

The following arguments are supported:

ReportId string

Unique report identifier

ReportId string

Unique report identifier

reportId String

Unique report identifier

reportId string

Unique report identifier

report_id str

Unique report identifier

reportId String

Unique report identifier

getReportContent Result

The following output properties are available:

Id string

The provider-assigned unique ID for this managed resource.

ReportId string
Id string

The provider-assigned unique ID for this managed resource.

ReportId string
id String

The provider-assigned unique ID for this managed resource.

reportId String
id string

The provider-assigned unique ID for this managed resource.

reportId string
id str

The provider-assigned unique ID for this managed resource.

report_id str
id String

The provider-assigned unique ID for this managed resource.

reportId String

Package Details

Repository
https://github.com/pulumi/pulumi-oci
License
Apache-2.0
Notes

This Pulumi package is based on the oci Terraform Provider.