Skip to main content

big_query_exports

Creates, updates, deletes, gets or lists a big_query_exports resource.

Overview

Namebig_query_exports
TypeResource
Idgoogle.securitycenter.big_query_exports

Fields

The following fields are returned by SELECT queries:

Successful response

NameDatatypeDescription
namestringThe relative resource name of this export. See: https://cloud.google.com/apis/design/resource_names#relative_resource_name. Example format: "organizations/{organization_id}/bigQueryExports/{export_id}" Example format: "folders/{folder_id}/bigQueryExports/{export_id}" Example format: "projects/{project_id}/bigQueryExports/{export_id}" This field is provided in responses, and is ignored when provided in create requests.
createTimestring (google-datetime)Output only. The time at which the BigQuery export was created. This field is set by the server and will be ignored if provided on export on creation.
datasetstringThe dataset to write findings' updates to. Its format is "projects/[project_id]/datasets/[bigquery_dataset_id]". BigQuery Dataset unique ID must contain only letters (a-z, A-Z), numbers (0-9), or underscores (_).
descriptionstringThe description of the export (max of 1024 characters).
filterstringExpression that defines the filter to apply across create/update events of findings. The expression is a list of zero or more restrictions combined via logical operators AND and OR. Parentheses are supported, and OR has higher precedence than AND. Restrictions have the form and may have a - character in front of them to indicate negation. The fields map to those defined in the corresponding resource. The supported operators are: * = for all value types. * >, <, >=, <= for integer values. * :, meaning substring matching, for strings. The supported value types are: * string literals in quotes. * integer literals without quotes. * boolean literals true and false without quotes.
mostRecentEditorstringOutput only. Email address of the user who last edited the BigQuery export. This field is set by the server and will be ignored if provided on export creation or update.
principalstringOutput only. The service account that needs permission to create table and upload data to the BigQuery dataset.
updateTimestring (google-datetime)Output only. The most recent time at which the BigQuery export was updated. This field is set by the server and will be ignored if provided on export creation or update.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
folders_big_query_exports_getselectfoldersId, bigQueryExportsIdGets a BigQuery export.
projects_big_query_exports_getselectprojectsId, bigQueryExportsIdGets a BigQuery export.
organizations_big_query_exports_getselectorganizationsId, bigQueryExportsIdGets a BigQuery export.
folders_big_query_exports_listselectfoldersIdpageSize, pageTokenLists BigQuery exports. Note that when requesting BigQuery exports at a given level all exports under that level are also returned e.g. if requesting BigQuery exports under a folder, then all BigQuery exports immediately under the folder plus the ones created under the projects within the folder are returned.
projects_big_query_exports_listselectprojectsIdpageSize, pageTokenLists BigQuery exports. Note that when requesting BigQuery exports at a given level all exports under that level are also returned e.g. if requesting BigQuery exports under a folder, then all BigQuery exports immediately under the folder plus the ones created under the projects within the folder are returned.
organizations_big_query_exports_listselectorganizationsIdpageSize, pageTokenLists BigQuery exports. Note that when requesting BigQuery exports at a given level all exports under that level are also returned e.g. if requesting BigQuery exports under a folder, then all BigQuery exports immediately under the folder plus the ones created under the projects within the folder are returned.
folders_big_query_exports_createinsertfoldersIdbigQueryExportIdCreates a BigQuery export.
projects_big_query_exports_createinsertprojectsIdbigQueryExportIdCreates a BigQuery export.
organizations_big_query_exports_createinsertorganizationsIdbigQueryExportIdCreates a BigQuery export.
folders_big_query_exports_patchupdatefoldersId, bigQueryExportsIdupdateMaskUpdates a BigQuery export.
projects_big_query_exports_patchupdateprojectsId, bigQueryExportsIdupdateMaskUpdates a BigQuery export.
organizations_big_query_exports_patchupdateorganizationsId, bigQueryExportsIdupdateMaskUpdates a BigQuery export.
folders_big_query_exports_deletedeletefoldersId, bigQueryExportsIdDeletes an existing BigQuery export.
projects_big_query_exports_deletedeleteprojectsId, bigQueryExportsIdDeletes an existing BigQuery export.
organizations_big_query_exports_deletedeleteorganizationsId, bigQueryExportsIdDeletes an existing BigQuery export.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
bigQueryExportsIdstring
foldersIdstring
organizationsIdstring
projectsIdstring
bigQueryExportIdstring
pageSizeinteger (int32)
pageTokenstring
updateMaskstring (google-fieldmask)

SELECT examples

Gets a BigQuery export.

SELECT
name,
createTime,
dataset,
description,
filter,
mostRecentEditor,
principal,
updateTime
FROM google.securitycenter.big_query_exports
WHERE foldersId = '{{ foldersId }}' -- required
AND bigQueryExportsId = '{{ bigQueryExportsId }}' -- required;

INSERT examples

Creates a BigQuery export.

INSERT INTO google.securitycenter.big_query_exports (
data__name,
data__description,
data__filter,
data__dataset,
foldersId,
bigQueryExportId
)
SELECT
'{{ name }}',
'{{ description }}',
'{{ filter }}',
'{{ dataset }}',
'{{ foldersId }}',
'{{ bigQueryExportId }}'
RETURNING
name,
createTime,
dataset,
description,
filter,
mostRecentEditor,
principal,
updateTime
;

UPDATE examples

Updates a BigQuery export.

UPDATE google.securitycenter.big_query_exports
SET
data__name = '{{ name }}',
data__description = '{{ description }}',
data__filter = '{{ filter }}',
data__dataset = '{{ dataset }}'
WHERE
foldersId = '{{ foldersId }}' --required
AND bigQueryExportsId = '{{ bigQueryExportsId }}' --required
AND updateMask = '{{ updateMask}}'
RETURNING
name,
createTime,
dataset,
description,
filter,
mostRecentEditor,
principal,
updateTime;

DELETE examples

Deletes an existing BigQuery export.

DELETE FROM google.securitycenter.big_query_exports
WHERE foldersId = '{{ foldersId }}' --required
AND bigQueryExportsId = '{{ bigQueryExportsId }}' --required;