Skip to content

Commit c0b3722

Browse files
committed
Added - Documentation updated for Log Analytics Management Dashboard
1 parent 3948eba commit c0b3722

File tree

3 files changed

+9
-5
lines changed

3 files changed

+9
-5
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727

2828
### Added
2929
- Support for network error retry
30+
- Documentation updated for Log Analytics Management Dashboard
3031

3132
### Fixed
3233
- Removed default value for `assign_private_dns_record` in `oci_core_vnic_attachment`

website/docs/d/management_dashboard_management_dashboards_export.html.markdown

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ description: |-
1010
# Data Source: oci_management_dashboard_management_dashboards_export
1111
This data source provides details about a specific Management Dashboards Export resource in Oracle Cloud Infrastructure Management Dashboard service.
1212

13-
Exports an array of dashboards and their saved searches. Export is designed to work with importDashboard. An example using Oracle Cloud Infrastructure CLI is $oci management-dashboard dashboard export --query data --export-dashboard-id "{\"dashboardIds\":[\"ocid1.managementdashboard.oc1..dashboardId1\"]}" > dashboards.json $oci management-dashboard dashboard import --from-json file://dashboards.json
13+
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
1414

1515
## Example Usage
1616

@@ -25,7 +25,7 @@ data "oci_management_dashboard_management_dashboards_export" "test_management_da
2525

2626
The following arguments are supported:
2727

28-
* `export_dashboard_id` - (Required) List of dashboardIds in plain text. The syntaxt is '{"dashboardIds":["dashboardId1", "dashboardId2", ...]}'. Escaping is needed when using in Oracle Cloud Infrastructure CLI. For example, "{\"dashboardIds\":[\"ocid1.managementdashboard.oc1..dashboardId1\"]}" .
28+
* `export_dashboard_id` - (Required) 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\"]}" .
2929

3030

3131
## Attributes Reference

website/docs/r/management_dashboard_management_dashboards_import.html.markdown

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,12 @@ description: |-
1010
# oci_management_dashboard_management_dashboards_import
1111
This resource provides the Management Dashboards Import resource in Oracle Cloud Infrastructure Management Dashboard service.
1212

13-
Imports an array of dashboards and their saved searches. Import is designed to work with exportDashboard. An example using Oracle Cloud Infrastructure CLI is
14-
$oci management-dashboard dashboard export --query data --export-dashboard-id "{\"dashboardIds\":[\"ocid1.managementdashboard.oc1..dashboardId1\"]}" > dashboards.json
15-
$oci management-dashboard dashboard import --from-json file://dashboards.json
13+
Imports an array of dashboards and their saved searches. Here's an example of how you can use CLI to import a dashboard. For information on the details that must be passed to IMPORT, you can use the EXPORT API to obtain the Import.json file:
14+
oci management-dashboard dashboard export --query data --export-dashboard-id "{\"dashboardIds\":[\"ocid1.managementdashboard.oc1..dashboardId1\"]}" > Import.json.
15+
Note that import API updates the resource if it already exist, and creates a new resource if it does not exist. To import to a different compartment, edit and change the compartmentId to the desired compartment OCID.
16+
Here is an example of how you can use CLI to do import:
17+
18+
oci management-dashboard dashboard import --from-json file://Import.json
1619

1720

1821
## Example Usage

0 commit comments

Comments
 (0)