Oracle Cloud Infrastructure

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

getManagementDashboardsExport

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

using Pulumi;
using Oci = Pulumi.Oci;

class MyStack : Stack
{
    public MyStack()
    {
        var testManagementDashboardsExport = Output.Create(Oci.ManagementDashboard.GetManagementDashboardsExport.InvokeAsync(new Oci.ManagementDashboard.GetManagementDashboardsExportArgs
        {
            ExportDashboardId = oci_management_dashboard_export_dashboard.Test_export_dashboard.Id,
        }));
    }

}
package main

import (
	"github.com/pulumi/pulumi-oci/sdk/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: oci_management_dashboard_export_dashboard.Test_export_dashboard.Id,
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

Coming soon!

import pulumi
import pulumi_oci as oci

test_management_dashboards_export = oci.ManagementDashboard.get_management_dashboards_export(export_dashboard_id=oci_management_dashboard_export_dashboard["test_export_dashboard"]["id"])
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";

const testManagementDashboardsExport = oci.ManagementDashboard.getManagementDashboardsExport({
    exportDashboardId: oci_management_dashboard_export_dashboard.test_export_dashboard.id,
});

Coming soon!

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
https://github.com/pulumi/pulumi-oci
License
Apache-2.0
Notes

This Pulumi package is based on the oci Terraform Provider.