Method: legacySdk.legacyCreateEntity

Full name: projects.locations.instances.legacySdk.legacyCreateEntity

Legacy RPC for create entity.

HTTP request


Path parameters

Parameters
instance

string

Required. The CreateEntity request. Format: projects/{project}/locations/{location}/instances/{instance}/legacySdk:createEntity

Request body

The request body contains data with the following structure:

JSON representation
{
  "caseId": string,
  "alertIdentifier": string,
  "entityIdentifier": string,
  "entityType": string,
  "isInternal": boolean,
  "isSuspicious": boolean,
  "isEnriched": boolean,
  "isVulnerable": boolean,
  "properties": {
    string: string,
    ...
  },
  "environment": string
}
Fields
caseId

string (int64 format)

Required. The case id.

alertIdentifier

string

Required. The alert identifier.

entityIdentifier

string

Required. The entity identifier.

entityType

string

Required. The entity type.

isInternal

boolean

Optional. The is internal.

isSuspicious

boolean

Optional. The is suspicious.

isEnriched

boolean

Optional. The is enriched.

isVulnerable

boolean

Optional. The is vulnerable.

properties

map (key: string, value: string)

Optional. The properties.

An object containing a list of "key": value pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }.

environment

string

Optional. The environment.

Response body

If successful, the response body is an empty JSON object.

Authorization scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/cloud-platform

For more information, see the Authentication Overview.