Skip to main content

configurations

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

Overview

Nameconfigurations
TypeResource
Idgoogle.threatintelligence.configurations

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
namestringIdentifier. Server generated name for the configuration. format is projects/{project}/configurations/{configuration}
auditobjectOutput only. Audit information for the configuration. (id: Audit)
descriptionstringOptional. A description of the configuration.
detailobjectRequired. Domain specific details for the configuration. (id: ConfigurationDetail)
displayNamestringOutput only. Human readable name for the configuration.
etagstringIf included when updating a configuration, this should be set to the current etag of the configuration. If the etags do not match, the update will be rejected and an ABORTED error will be returned.
providerstringRequired. Name of the service that provides the configuration.
statestringOptional. State of the configuration. (STATE_UNSPECIFIED, ENABLED, DISABLED, DEPRECATED)
versionstringOptional. A user-manipulatable version. Does not adhere to a specific format

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectprojectsId, configurationsIdGet a configuration by name.
listselectprojectsIdfilter, pageToken, pageSize, orderByGet a list of configurations that meet the filter criteria.
upsertexecprojectsIdpublishTimeCreates or updates a configuration.

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
configurationsIdstring
projectsIdstring
filterstring
orderBystring
pageSizeinteger (int32)
pageTokenstring
publishTimestring (google-datetime)

SELECT examples

Get a configuration by name.

SELECT
name,
audit,
description,
detail,
displayName,
etag,
provider,
state,
version
FROM google.threatintelligence.configurations
WHERE projectsId = '{{ projectsId }}' -- required
AND configurationsId = '{{ configurationsId }}' -- required
;

Lifecycle Methods

Creates or updates a configuration.

EXEC google.threatintelligence.configurations.upsert
@projectsId='{{ projectsId }}' --required,
@publishTime='{{ publishTime }}'
@@json=
'{
"provider": "{{ provider }}",
"state": "{{ state }}",
"version": "{{ version }}",
"description": "{{ description }}",
"detail": "{{ detail }}",
"etag": "{{ etag }}",
"name": "{{ name }}"
}'
;