Method: nativeDashboards.import

Full name: projects.locations.instances.nativeDashboards.import

Imports the dashboards.

HTTP request

POST https://chronicle.googleapis.com/v1alpha/{parent}/nativeDashboards:import

Path parameters

Parameters
parent

string

Required. The parent resource where this dashboard will be created. Format: projects/{project}/locations/{region}/instances/{instance}

Request body

The request body contains data with the following structure:

JSON representation
{
  "source": {
    object (ImportNativeDashboardsInlineSource)
  }
}
Fields
source

object (ImportNativeDashboardsInlineSource)

Required. The data will imported from this proto.

Response body

Response message for importing dashboards.

If successful, the response body contains data with the following structure:

JSON representation
{
  "results": [
    {
      object (ImportExportStatus)
    }
  ]
}
Fields
results[]

object (ImportExportStatus)

Output only. Represents the status of an import operation for multiple dashboards. Each dashboard's import status is tracked. A status of OK indicates the dashboard was ready for import. Otherwise, an appropriate error code and message are provided. Importantly, the import process is all-or-nothing: if even one dashboard fails to import, the entire import operation is aborted, and none of the dashboards are imported. The order of the statuses will be the same as in the import request.

Authorization scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/cloud-platform

For more information, see the Authentication Overview.

IAM Permissions

Requires the following IAM permission on the parent resource:

  • chronicle.nativeDashboards.create

For more information, see the IAM documentation.

ImportNativeDashboardsInlineSource

Inline source for importing dashboards.

JSON representation
{
  "dashboards": [
    {
      object (NativeDashboardWithChartsAndQueries)
    }
  ]
}
Fields
dashboards[]

object (NativeDashboardWithChartsAndQueries)

Required. Dashboards with charts and queries.

ImportExportStatus

ImportExportStatus is a wrapper for dashboard name and status.

JSON representation
{
  "dashboard": string,
  "status": {
    object (Status)
  }
}
Fields
dashboard

string

The resource name of the dashboard if it was supplied in the request.

status

object (Status)

Output only. Status of the import/export operation.