oci.ManagementDashboard.getManagementDashboardsExport
Explore with Pulumi AI
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:
- Export
Dashboard stringId - 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 stringId - 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 StringId - 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 stringId - 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_ strid - 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 StringId - 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:
- Export
Dashboard stringId - Export
Details 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 asimport_details
(CompartmentIds may have to be changed) inoci.ManagementDashboard.ManagementDashboardsImport
resource. - Id string
- The provider-assigned unique ID for this managed resource.
- Export
Dashboard stringId - Export
Details 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 asimport_details
(CompartmentIds may have to be changed) inoci.ManagementDashboard.ManagementDashboardsImport
resource. - Id string
- The provider-assigned unique ID for this managed resource.
- export
Dashboard StringId - export
Details 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 asimport_details
(CompartmentIds may have to be changed) inoci.ManagementDashboard.ManagementDashboardsImport
resource. - id String
- The provider-assigned unique ID for this managed resource.
- export
Dashboard stringId - export
Details 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 asimport_details
(CompartmentIds may have to be changed) inoci.ManagementDashboard.ManagementDashboardsImport
resource. - id string
- The provider-assigned unique ID for this managed resource.
- export_
dashboard_ strid - 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 asimport_details
(CompartmentIds may have to be changed) inoci.ManagementDashboard.ManagementDashboardsImport
resource. - id str
- The provider-assigned unique ID for this managed resource.
- export
Dashboard StringId - export
Details 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 asimport_details
(CompartmentIds may have to be changed) inoci.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.