Skip to main content

notification_endpoints

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

Overview

Namenotification_endpoints
TypeResource
Idgoogle.compute.notification_endpoints

Fields

The following fields are returned by SELECT queries:

Successful response

NameDatatypeDescription
idstring (uint64)[Output Only] A unique identifier for this resource type. The server generates this identifier.
namestringName of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression [a-z]([-a-z0-9]*[a-z0-9])? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. (pattern: a-z?)
creationTimestampstring[Output Only] Creation timestamp in RFC3339 text format.
descriptionstringAn optional description of this resource. Provide this property when you create the resource.
grpcSettingsobjectSettings of the gRPC notification endpoint including the endpoint URL and the retry duration. (id: NotificationEndpointGrpcSettings)
kindstring[Output Only] Type of the resource. Always compute#notificationEndpoint for notification endpoints. (default: compute#notificationEndpoint)
regionstring[Output Only] URL of the region where the notification endpoint resides. This field applies only to the regional resource. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body.
selfLinkstring[Output Only] Server-defined URL for the resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectproject, region, notificationEndpointReturns the specified NotificationEndpoint resource in the given region.
listselectproject, regionfilter, maxResults, orderBy, pageToken, returnPartialSuccessLists the NotificationEndpoints for a project in the given region.
insertinsertproject, regionrequestIdCreate a NotificationEndpoint in the specified project in the given region using the parameters that are included in the request.
deletedeleteproject, region, notificationEndpointrequestIdDeletes the specified NotificationEndpoint in the given region

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
notificationEndpointstring
projectstring
regionstring
filterstring
maxResultsinteger (uint32)
orderBystring
pageTokenstring
requestIdstring
returnPartialSuccessboolean

SELECT examples

Returns the specified NotificationEndpoint resource in the given region.

SELECT
id,
name,
creationTimestamp,
description,
grpcSettings,
kind,
region,
selfLink
FROM google.compute.notification_endpoints
WHERE project = '{{ project }}' -- required
AND region = '{{ region }}' -- required
AND notificationEndpoint = '{{ notificationEndpoint }}' -- required;

INSERT examples

Create a NotificationEndpoint in the specified project in the given region using the parameters that are included in the request.

INSERT INTO google.compute.notification_endpoints (
data__kind,
data__id,
data__creationTimestamp,
data__name,
data__description,
data__selfLink,
data__region,
data__grpcSettings,
project,
region,
requestId
)
SELECT
'{{ kind }}',
'{{ id }}',
'{{ creationTimestamp }}',
'{{ name }}',
'{{ description }}',
'{{ selfLink }}',
'{{ region }}',
'{{ grpcSettings }}',
'{{ project }}',
'{{ region }}',
'{{ requestId }}'
RETURNING
id,
name,
clientOperationId,
creationTimestamp,
description,
endTime,
error,
httpErrorMessage,
httpErrorStatusCode,
insertTime,
instancesBulkInsertOperationMetadata,
kind,
operationGroupId,
operationType,
progress,
region,
selfLink,
setCommonInstanceMetadataOperationMetadata,
startTime,
status,
statusMessage,
targetId,
targetLink,
user,
warnings,
zone
;

DELETE examples

Deletes the specified NotificationEndpoint in the given region

DELETE FROM google.compute.notification_endpoints
WHERE project = '{{ project }}' --required
AND region = '{{ region }}' --required
AND notificationEndpoint = '{{ notificationEndpoint }}' --required
AND requestId = '{{ requestId }}';