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

oci.ManagementDashboard.getManagementDashboardsExport

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 Management Dashboards Export resource in Oracle Cloud Infrastructure Management Dashboard service.

    Exports an array of dashboards and their saved searches. Export is designed to work with importDashboard. Here’s an example of how you can use CLI to export a dashboard: $oci management-dashboard dashboard export --query data --export-dashboard-id "{\"dashboardIds\":[\"ocid1.managementdashboard.oc1..dashboardId1\"]}" > dashboards.json

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testManagementDashboardsExport = oci.ManagementDashboard.getManagementDashboardsExport({
        exportDashboardId: testExportDashboard.id,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_management_dashboards_export = oci.ManagementDashboard.get_management_dashboards_export(export_dashboard_id=test_export_dashboard["id"])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/ManagementDashboard"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := ManagementDashboard.GetManagementDashboardsExport(ctx, &managementdashboard.GetManagementDashboardsExportArgs{
    			ExportDashboardId: testExportDashboard.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 testManagementDashboardsExport = Oci.ManagementDashboard.GetManagementDashboardsExport.Invoke(new()
        {
            ExportDashboardId = testExportDashboard.Id,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.oci.ManagementDashboard.ManagementDashboardFunctions;
    import com.pulumi.oci.ManagementDashboard.inputs.GetManagementDashboardsExportArgs;
    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 testManagementDashboardsExport = ManagementDashboardFunctions.getManagementDashboardsExport(GetManagementDashboardsExportArgs.builder()
                .exportDashboardId(testExportDashboard.id())
                .build());
    
        }
    }
    
    variables:
      testManagementDashboardsExport:
        fn::invoke:
          Function: oci:ManagementDashboard:getManagementDashboardsExport
          Arguments:
            exportDashboardId: ${testExportDashboard.id}
    

    Using getManagementDashboardsExport

    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 getManagementDashboardsExport(args: GetManagementDashboardsExportArgs, opts?: InvokeOptions): Promise<GetManagementDashboardsExportResult>
    function getManagementDashboardsExportOutput(args: GetManagementDashboardsExportOutputArgs, opts?: InvokeOptions): Output<GetManagementDashboardsExportResult>
    def get_management_dashboards_export(export_dashboard_id: Optional[str] = None,
                                         opts: Optional[InvokeOptions] = None) -> GetManagementDashboardsExportResult
    def get_management_dashboards_export_output(export_dashboard_id: Optional[pulumi.Input[str]] = None,
                                         opts: Optional[InvokeOptions] = None) -> Output[GetManagementDashboardsExportResult]
    func GetManagementDashboardsExport(ctx *Context, args *GetManagementDashboardsExportArgs, opts ...InvokeOption) (*GetManagementDashboardsExportResult, error)
    func GetManagementDashboardsExportOutput(ctx *Context, args *GetManagementDashboardsExportOutputArgs, opts ...InvokeOption) GetManagementDashboardsExportResultOutput

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

    public static class GetManagementDashboardsExport 
    {
        public static Task<GetManagementDashboardsExportResult> InvokeAsync(GetManagementDashboardsExportArgs args, InvokeOptions? opts = null)
        public static Output<GetManagementDashboardsExportResult> Invoke(GetManagementDashboardsExportInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetManagementDashboardsExportResult> getManagementDashboardsExport(GetManagementDashboardsExportArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: oci:ManagementDashboard/getManagementDashboardsExport:getManagementDashboardsExport
      arguments:
        # arguments dictionary

    The following arguments are supported:

    ExportDashboardId string
    List of dashboardIds in plain text. The syntax is '{"dashboardIds":["dashboardId1", "dashboardId2", ...]}'. Escaping is needed when using in Oracle Cloud Infrastructure CLI. For example, "{"dashboardIds":["ocid1.managementdashboard.oc1..dashboardId1"]}" .
    ExportDashboardId string
    List of dashboardIds in plain text. The syntax is '{"dashboardIds":["dashboardId1", "dashboardId2", ...]}'. Escaping is needed when using in Oracle Cloud Infrastructure CLI. For example, "{"dashboardIds":["ocid1.managementdashboard.oc1..dashboardId1"]}" .
    exportDashboardId String
    List of dashboardIds in plain text. The syntax is '{"dashboardIds":["dashboardId1", "dashboardId2", ...]}'. Escaping is needed when using in Oracle Cloud Infrastructure CLI. For example, "{"dashboardIds":["ocid1.managementdashboard.oc1..dashboardId1"]}" .
    exportDashboardId string
    List of dashboardIds in plain text. The syntax is '{"dashboardIds":["dashboardId1", "dashboardId2", ...]}'. Escaping is needed when using in Oracle Cloud Infrastructure CLI. For example, "{"dashboardIds":["ocid1.managementdashboard.oc1..dashboardId1"]}" .
    export_dashboard_id str
    List of dashboardIds in plain text. The syntax is '{"dashboardIds":["dashboardId1", "dashboardId2", ...]}'. Escaping is needed when using in Oracle Cloud Infrastructure CLI. For example, "{"dashboardIds":["ocid1.managementdashboard.oc1..dashboardId1"]}" .
    exportDashboardId String
    List of dashboardIds in plain text. The syntax is '{"dashboardIds":["dashboardId1", "dashboardId2", ...]}'. Escaping is needed when using in Oracle Cloud Infrastructure CLI. For example, "{"dashboardIds":["ocid1.managementdashboard.oc1..dashboardId1"]}" .

    getManagementDashboardsExport Result

    The following output properties are available:

    ExportDashboardId string
    ExportDetails string
    String containing Array of Dashboards exported, check ManagementDashboardExportDetails for exact contents in the string value. The value of export_details can be used to pass as import_details (CompartmentIds may have to be changed) in oci.ManagementDashboard.ManagementDashboardsImport resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    ExportDashboardId string
    ExportDetails string
    String containing Array of Dashboards exported, check ManagementDashboardExportDetails for exact contents in the string value. The value of export_details can be used to pass as import_details (CompartmentIds may have to be changed) in oci.ManagementDashboard.ManagementDashboardsImport resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    exportDashboardId String
    exportDetails String
    String containing Array of Dashboards exported, check ManagementDashboardExportDetails for exact contents in the string value. The value of export_details can be used to pass as import_details (CompartmentIds may have to be changed) in oci.ManagementDashboard.ManagementDashboardsImport resource.
    id String
    The provider-assigned unique ID for this managed resource.
    exportDashboardId string
    exportDetails string
    String containing Array of Dashboards exported, check ManagementDashboardExportDetails for exact contents in the string value. The value of export_details can be used to pass as import_details (CompartmentIds may have to be changed) in oci.ManagementDashboard.ManagementDashboardsImport resource.
    id string
    The provider-assigned unique ID for this managed resource.
    export_dashboard_id str
    export_details str
    String containing Array of Dashboards exported, check ManagementDashboardExportDetails for exact contents in the string value. The value of export_details can be used to pass as import_details (CompartmentIds may have to be changed) in oci.ManagementDashboard.ManagementDashboardsImport resource.
    id str
    The provider-assigned unique ID for this managed resource.
    exportDashboardId String
    exportDetails String
    String containing Array of Dashboards exported, check ManagementDashboardExportDetails for exact contents in the string value. The value of export_details can be used to pass as import_details (CompartmentIds may have to be changed) in oci.ManagementDashboard.ManagementDashboardsImport resource.
    id String
    The provider-assigned unique ID for this managed resource.

    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