projects

POST /v1beta/projects/{projectsId}/configurations:upsert

Creates or updates a configuration.

Request

  • Base URL
    https://threatintelligence.googleapis.com
  • Auth
    OAuth 2 and OAuth 2
    Implicithttps://accounts.google.com/o/oauth2/auth
    Scopeshttps://www.googleapis.com/auth/cloud-platform
    Authorization codehttps://accounts.google.com/o/oauth2/auth
    Token URLhttps://accounts.google.com/o/oauth2/token
    Scopeshttps://www.googleapis.com/auth/cloud-platform

Path parameters

projectsId, string required

Query parameters

$.xgafv, '1' | '2'

V1 error format.

access_token, string

OAuth access token.

alt, 'json' | 'media' | 'proto'

Data format for response.

callback, string

JSONP

fields, string

Selector specifying which fields to include in a partial response.

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.

oauth_token, string

OAuth 2.0 token for the current user.

prettyPrint, boolean

Returns response with indentations and line breaks.

quotaUser, 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.

uploadType, string

Legacy upload protocol for media (e.g. "media", "multipart").

upload_protocol, string

Upload protocol for media (e.g. "raw", "multipart").

publishTime, string google-datetime

Optional. Time that the configuration should be considered to have been published. This is an advanced feature used when onboarding and bulk loading data from other systems. Do not set this field without consulting with the API team.

Request body

Configuration required

A configuration represents a behavior an engine should follow when producing new findings.

audit, Audit

Tracks basic CRUD facts.

description, string

Optional. A description of the configuration.

detail, ConfigurationDetail

Wrapper class that contains the union struct for all the various configuration detail specific classes.

displayName, string

Output only. Human readable name for the configuration.

etag, string

If 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.

name, string

Identifier. Server generated name for the configuration. format is projects/{project}/configurations/{configuration}

provider, string

Required. Name of the service that provides the configuration.

state, 'STATE_UNSPECIFIED' | 'ENABLED' | 'DISABLED' | 'DEPRECATED'

Optional. State of the configuration.

version, string

Optional. A user-manipulatable version. Does not adhere to a specific format

Response

Successful response

UpsertConfigurationResponse required

Response message for UpsertConfiguration.

configuration, string

Output only. Created configuration ID with server assigned id.

Changes

No recorded changes to this operation across all 4 revisions of this API.