Oracle Cloud Infrastructure v2.11.0 published on Thursday, Sep 19, 2024 by Pulumi
oci.DataSafe.getReportContent
Explore with Pulumi AI
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 .xls or .pdf.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testReportContent = oci.DataSafe.getReportContent({
reportId: testReport.id,
});
import pulumi
import pulumi_oci as oci
test_report_content = oci.DataSafe.get_report_content(report_id=test_report["id"])
package main
import (
"github.com/pulumi/pulumi-oci/sdk/v2/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: testReport.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 testReportContent = Oci.DataSafe.GetReportContent.Invoke(new()
{
ReportId = testReport.Id,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.DataSafe.DataSafeFunctions;
import com.pulumi.oci.DataSafe.inputs.GetReportContentArgs;
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 testReportContent = DataSafeFunctions.getReportContent(GetReportContentArgs.builder()
.reportId(testReport.id())
.build());
}
}
variables:
testReportContent:
fn::invoke:
Function: oci:DataSafe:getReportContent
Arguments:
reportId: ${testReport.id}
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:
- Report
Id string - Unique report identifier
- Report
Id string - Unique report identifier
- report
Id String - Unique report identifier
- report
Id string - Unique report identifier
- report_
id str - Unique report identifier
- report
Id String - Unique report identifier
getReportContent Result
The following output properties are available:
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oci
Terraform Provider.