Creates an export.
Scopes
You will need authorization for the https://www.googleapis.com/auth/ediscovery scope to make a valid call.
If unset, the scope for this method defaults to https://www.googleapis.com/auth/ediscovery.
You can set the scope for this method like this: vault1 --scope <scope> matters exports-create ...
Required Scalar Argument
- <matter-id> (string)
- The matter ID.
Required Request Value
The request value is a data-structure with various fields. Each field may be a simple scalar or another data-structure. In the latter case it is advised to set the field-cursor to the data-structure's field to specify values more concisely.
For example, a structure like this:
Export:
create-time: string
export-options:
drive-options:
include-access-info: boolean
groups-options:
export-format: string
hangouts-chat-options:
export-format: string
mail-options:
export-format: string
show-confidential-mode-content: boolean
use-new-export: boolean
region: string
voice-options:
export-format: string
id: string
matter-id: string
name: string
query:
account-info:
emails: [string]
corpus: string
data-scope: string
drive-options:
include-shared-drives: boolean
include-team-drives: boolean
version-date: string
end-time: string
hangouts-chat-info:
room-id: [string]
hangouts-chat-options:
include-rooms: boolean
mail-options:
exclude-drafts: boolean
method: string
org-unit-info:
org-unit-id: string
search-method: string
shared-drive-info:
shared-drive-ids: [string]
start-time: string
team-drive-info:
team-drive-ids: [string]
terms: string
time-zone: string
voice-options:
covered-data: [string]
requester:
display-name: string
email: string
stats:
exported-artifact-count: int64
size-in-bytes: string
total-artifact-count: int64
status: string
can be set completely with the following arguments which are assumed to be executed in the given order. Note how the cursor position is adjusted to the respective structures, allowing simple field names to be used most of the time.
-r . create-time=lorem- Output only. The time when the export was created.
-
export-options.drive-options include-access-info=false- To include access level information for users with indirect access to files, set to true.
-
..groups-options export-format=sed- The file format for exported messages.
-
..hangouts-chat-options export-format=duo- The file format for exported messages.
-
..mail-options export-format=sed- The file format for exported messages.
show-confidential-mode-content=true- To export confidential mode content, set to true.
-
use-new-export=true- To use the new export system, set to true.
-
.. region=et- The requested data region for the export.
-
voice-options export-format=et- The file format for exported text messages.
-
... id=vero- Output only. The generated export ID.
matter-id=erat- Output only. The matter ID.
name=sed- The export name.
-
query.account-info emails=duo- A set of accounts to search.
- Each invocation of this argument appends the given value to the array.
-
.. corpus=dolore- The Google Workspace service to search.
data-scope=et- The data source to search.
drive-options include-shared-drives=false- Set to true to include shared drives.
include-team-drives=false- Set to true to include Team Drive.
-
version-date=dolor- Search the current version of the Drive file, but export the contents of the last version saved before 12:00 AM UTC on the specified date. Enter the date in UTC.
-
.. end-time=et- The end time for the search query. Specify in GMT. The value is rounded to 12 AM on the specified date.
-
hangouts-chat-info room-id=et- A list of Chat spaces IDs, as provided by the Chat API.
- Each invocation of this argument appends the given value to the array.
-
..hangouts-chat-options include-rooms=false- For searches by account or organizational unit, set to true to include rooms.
-
..mail-options exclude-drafts=false- Set to true to exclude drafts.
-
.. method=duo- The entity to search. This field replaces searchMethod to support shared drives. When searchMethod is TEAM_DRIVE, the response of this field is SHARED_DRIVE.
-
org-unit-info org-unit-id=vero- The name of the organizational unit to search, as provided by the Admin SDK Directory API.
-
.. search-method=vero- The search method to use.
-
shared-drive-info shared-drive-ids=invidunt- A list of shared drive IDs, as provided by the Drive API.
- Each invocation of this argument appends the given value to the array.
-
.. start-time=stet- The start time for the search query. Specify in GMT. The value is rounded to 12 AM on the specified date.
-
team-drive-info team-drive-ids=vero- List of Team Drive IDs, as provided by the Drive API.
- Each invocation of this argument appends the given value to the array.
-
.. terms=elitr- Service-specific search operators to filter search results.
time-zone=lorem- The time zone name. It should be an IANA TZ name, such as "America/Los_Angeles". For a list of time zone names, see Time Zone. For more information about how Vault uses time zones, see the Vault help center.
-
voice-options covered-data=diam- Datatypes to search
- Each invocation of this argument appends the given value to the array.
-
...requester display-name=no- The displayed name of the user.
-
email=ipsum- The email address of the user.
-
..stats exported-artifact-count=-23- The number of messages or files already processed for export.
size-in-bytes=takimata- The size of export in bytes.
-
total-artifact-count=-46- The number of messages or files to be exported.
-
.. status=voluptua.- Output only. The status of the export.
About Cursors
The cursor position is key to comfortably set complex nested structures. The following rules apply:
- The cursor position is always set relative to the current one, unless the field name starts with the
.character. Fields can be nested such as in-r f.s.o. - The cursor position is set relative to the top-level structure if it starts with
., e.g.-r .s.s - You can also set nested fields without setting the cursor explicitly. For example, to set a value relative to the current cursor position, you would specify
-r struct.sub_struct=bar. - You can move the cursor one level up by using
... Each additional.moves it up one additional level. E.g....would go three levels up.
Optional Output Flags
The method's return value a JSON encoded structure, which will be written to standard output by default.
- -o out
- out specifies the destination to which to write the server's result to.
It will be a JSON-encoded structure.
The destination may be
-to indicate standard output, or a filepath that is to contain the received bytes. If unset, it defaults to standard output.
- out specifies the destination to which to write the server's result to.
It will be a JSON-encoded structure.
The destination may be
Optional General Properties
The following properties can configure any call, and are not specific to this method.
-
-p $-xgafv=string
- V1 error format.
-
-p access-token=string
- OAuth access token.
-
-p alt=string
- Data format for response.
-
-p callback=string
- JSONP
-
-p fields=string
- Selector specifying which fields to include in a partial response.
-
-p key=string
- API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
-
-p oauth-token=string
- OAuth 2.0 token for the current user.
-
-p pretty-print=boolean
- Returns response with indentations and line breaks.
-
-p quota-user=string
- Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
-
-p upload-type=string
- Legacy upload protocol for media (e.g. "media", "multipart").
-
-p upload-protocol=string
- Upload protocol for media (e.g. "raw", "multipart").