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:
calendar-options:
export-format: string
drive-options:
include-access-info: boolean
groups-options:
export-format: string
hangouts-chat-options:
export-format: string
mail-options:
export-format: string
export-linked-drive-files: boolean
show-confidential-mode-content: boolean
use-new-export: boolean
region: string
voice-options:
export-format: string
id: string
matter-id: string
name: string
parent-export-id: string
query:
account-info:
emails: [string]
calendar-options:
location-query: [string]
minus-words: [string]
people-query: [string]
response-statuses: [string]
version-date: string
corpus: string
data-scope: string
drive-options:
client-side-encrypted-option: string
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:
client-side-encrypted-option: string
exclude-drafts: boolean
method: string
org-unit-info:
org-unit-id: string
search-method: string
shared-drive-info:
shared-drive-ids: [string]
sites-url-info:
urls: [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=et
- Output only. The time when the export was created.
-
export-options.calendar-options export-format=sed
- The file format for exported text messages.
-
..drive-options include-access-info=true
- To include access level information for users with indirect access to files, set to true.
-
..groups-options export-format=vero
- The file format for exported messages.
-
..hangouts-chat-options export-format=erat
- The file format for exported messages.
-
..mail-options export-format=sed
- The file format for exported messages.
export-linked-drive-files=false
- Optional. To enable exporting linked Drive files, set to true.
show-confidential-mode-content=false
- 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=sadipscing
- Output only. The generated export ID.
matter-id=stet
- Output only. The matter ID.
name=dolor
- The export name. Don't use special characters (~!$'(),;@:/?) in the name, they can prevent you from downloading exports.
parent-export-id=duo
- Output only. Identifies the parent export that spawned this child export. This is only set on child exports.
-
query.account-info emails=vero
- A set of accounts to search.
- Each invocation of this argument appends the given value to the array.
-
..calendar-options location-query=vero
- Matches only those events whose location contains all of the words in the given set. If the string contains quoted phrases, this method only matches those events whose location contain the exact phrase. Entries in the set are considered in "and". Word splitting example: ["New Zealand"] vs ["New","Zealand"] "New Zealand": matched by both "New and better Zealand": only matched by the later
- Each invocation of this argument appends the given value to the array.
minus-words=invidunt
- Matches only those events that do not contain any of the words in the given set in title, description, location, or attendees. Entries in the set are considered in "or".
- Each invocation of this argument appends the given value to the array.
people-query=stet
- Matches only those events whose attendees contain all of the words in the given set. Entries in the set are considered in "and".
- Each invocation of this argument appends the given value to the array.
response-statuses=vero
- Matches only events for which the custodian gave one of these responses. If the set is empty or contains ATTENDEE_RESPONSE_UNSPECIFIED there will be no filtering on responses.
- Each invocation of this argument appends the given value to the array.
-
version-date=elitr
- Search the current version of the Calendar event, but export the contents of the last version saved before 12:00 AM UTC on the specified date. Enter the date in UTC.
-
.. corpus=lorem
- The Google Workspace service to search.
data-scope=diam
- The data source to search.
drive-options client-side-encrypted-option=no
- Set whether the results include only content encrypted with Google Workspace Client-side encryption content, only unencrypted content, or both. Defaults to both. Currently supported for Drive.
include-shared-drives=false
- Set to true to include shared drives.
include-team-drives=true
- Set to true to include Team Drive.
-
version-date=consetetur
- 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=voluptua.
- 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. There is a limit of exporting from 500 Chat spaces per request.
- 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 client-side-encrypted-option=amet.
- Specifies whether the results should include encrypted content, unencrypted content, or both. Defaults to including both.
-
exclude-drafts=true
- Set to true to exclude drafts.
-
.. method=et
- 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=accusam
- The name of the organizational unit to search, as provided by the Admin SDK Directory API.
-
.. search-method=voluptua.
- The search method to use.
-
shared-drive-info shared-drive-ids=dolore
- A list of shared drive IDs, as provided by the Drive API.
- Each invocation of this argument appends the given value to the array.
-
..sites-url-info urls=dolore
- A list of published site URLs.
- Each invocation of this argument appends the given value to the array.
-
.. start-time=dolore
- 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=voluptua.
- List of Team Drive IDs, as provided by the Drive API.
- Each invocation of this argument appends the given value to the array.
-
.. terms=amet.
- Service-specific search operators to filter search results.
time-zone=ea
- 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=sadipscing
- Datatypes to search
- Each invocation of this argument appends the given value to the array.
-
...requester display-name=lorem
- The displayed name of the user.
-
email=invidunt
- The email address of the user.
-
..stats exported-artifact-count=-11
- The number of messages or files already processed for export.
size-in-bytes=est
- The size of export in bytes.
-
total-artifact-count=-27
- The number of messages or files to be exported.
-
.. status=sed
- 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").