Method: legacyPlaybooks.exportWorkflowWithBlocksByIdentifier

Full name: projects.locations.instances.legacyPlaybooks.exportWorkflowWithBlocksByIdentifier

legacyPlaybooks.exportWorkflowWithBlocksByIdentifier Import workflows from a zip file.

HTTP request


* Upload URI, for media upload requests:
POST https://chronicle.africa-south1.rep.googleapis.com/upload/v1alpha/{instance}/legacyPlaybooks:legacyImportDefinitions * Metadata URI, for metadata-only requests:
POST https://chronicle.africa-south1.rep.googleapis.com/v1alpha/{instance}/legacyPlaybooks:legacyImportDefinitions

Path parameters

Parameters
instance

string

Required. The instance to import the definitions for. Format: projects/{project}/locations/{location}/instances/{instance}

Request body

The request body contains data with the following structure:

JSON representation
{
  "media": {
    object (Media)
  },
  "mediaInfo": {
    object (MediaRequestInfo)
  }
}
Fields
media

object (Media)

Information representing the imported data.

mediaInfo

object (MediaRequestInfo)

Metadata about the media upload request. Information representing the imported data

Response body

LegacyPlaybookImportDefinitionsResponse is a response for importing the Workflow definitions from a zip file.

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

JSON representation
{
  "workflowIdentifiers": [
    string
  ],
  "mediaInfo": {
    object (MediaResponseInfo)
  }
}
Fields
workflowIdentifiers[]

string

Optional. The identifiers of the imported definitions.

mediaInfo

object (MediaResponseInfo)

Metadata about the media upload response.

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 instance resource:

  • chronicle.legacyPlaybooks.import

For more information, see the IAM documentation.