1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. DataSafe
  5. getReportContent
Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi

oci.DataSafe.getReportContent

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi

    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:

    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
    oci pulumi/pulumi-oci
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the oci Terraform Provider.
    oci logo
    Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi