Skip to main content

endpoints

Creates, updates, deletes, gets or lists an endpoints resource.

Overview

Nameendpoints
TypeResource
Idgoogle.ids.endpoints

Fields

The following fields are returned by SELECT queries:

Successful response

NameDatatypeDescription
namestringOutput only. The name of the endpoint.
createTimestring (google-datetime)Output only. The create time timestamp.
descriptionstringUser-provided description of the endpoint
endpointForwardingRulestringOutput only. The fully qualified URL of the endpoint's ILB Forwarding Rule.
endpointIpstringOutput only. The IP address of the IDS Endpoint's ILB.
labelsobjectThe labels of the endpoint.
networkstringRequired. The fully qualified URL of the network to which the IDS Endpoint is attached.
satisfiesPzibooleanOutput only. [Output Only] Reserved for future use.
satisfiesPzsbooleanOutput only. [Output Only] Reserved for future use.
severitystringRequired. Lowest threat severity that this endpoint will alert on.
statestringOutput only. Current state of the endpoint.
threatExceptionsarrayList of threat IDs to be excepted from generating alerts.
trafficLogsbooleanWhether the endpoint should report traffic logs in addition to threat logs.
updateTimestring (google-datetime)Output only. The update time timestamp.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectprojectsId, locationsId, endpointsIdGets details of a single Endpoint.
listselectprojectsId, locationsIdpageSize, pageToken, filter, orderByLists Endpoints in a given project and location.
createinsertprojectsId, locationsIdendpointId, requestIdCreates a new Endpoint in a given project and location.
patchupdateprojectsId, locationsId, endpointsIdupdateMask, requestIdUpdates the parameters of a single Endpoint.
deletedeleteprojectsId, locationsId, endpointsIdrequestIdDeletes a single Endpoint.

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
endpointsIdstring
locationsIdstring
projectsIdstring
endpointIdstring
filterstring
orderBystring
pageSizeinteger (int32)
pageTokenstring
requestIdstring
updateMaskstring (google-fieldmask)

SELECT examples

Gets details of a single Endpoint.

SELECT
name,
createTime,
description,
endpointForwardingRule,
endpointIp,
labels,
network,
satisfiesPzi,
satisfiesPzs,
severity,
state,
threatExceptions,
trafficLogs,
updateTime
FROM google.ids.endpoints
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND endpointsId = '{{ endpointsId }}' -- required;

INSERT examples

Creates a new Endpoint in a given project and location.

INSERT INTO google.ids.endpoints (
data__labels,
data__network,
data__description,
data__severity,
data__threatExceptions,
data__trafficLogs,
projectsId,
locationsId,
endpointId,
requestId
)
SELECT
'{{ labels }}',
'{{ network }}',
'{{ description }}',
'{{ severity }}',
'{{ threatExceptions }}',
{{ trafficLogs }},
'{{ projectsId }}',
'{{ locationsId }}',
'{{ endpointId }}',
'{{ requestId }}'
RETURNING
name,
done,
error,
metadata,
response
;

UPDATE examples

Updates the parameters of a single Endpoint.

UPDATE google.ids.endpoints
SET
data__labels = '{{ labels }}',
data__network = '{{ network }}',
data__description = '{{ description }}',
data__severity = '{{ severity }}',
data__threatExceptions = '{{ threatExceptions }}',
data__trafficLogs = {{ trafficLogs }}
WHERE
projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND endpointsId = '{{ endpointsId }}' --required
AND updateMask = '{{ updateMask}}'
AND requestId = '{{ requestId}}'
RETURNING
name,
done,
error,
metadata,
response;

DELETE examples

Deletes a single Endpoint.

DELETE FROM google.ids.endpoints
WHERE projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND endpointsId = '{{ endpointsId }}' --required
AND requestId = '{{ requestId }}';