Skip to main content

notifications

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

Overview

Namenotifications
TypeResource
Idgoogle.advisorynotifications.notifications

Fields

The following fields are returned by SELECT queries:

Successful response

NameDatatypeDescription
namestringThe resource name of the notification. Format: organizations/{organization}/locations/{location}/notifications/{notification} or projects/{project}/locations/{location}/notifications/{notification}.
createTimestring (google-datetime)Output only. Time the notification was created.
messagesarrayA list of messages in the notification.
notificationTypestringType of notification
subjectobjectThe subject line of the notification. (id: GoogleCloudAdvisorynotificationsV1Subject)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectprojectsId, locationsId, notificationsIdlanguageCodeGets a notification.
listselectprojectsId, locationsIdpageSize, pageToken, view, languageCodeLists notifications under a given parent.

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
locationsIdstring
notificationsIdstring
projectsIdstring
languageCodestring
pageSizeinteger (int32)
pageTokenstring
viewstring

SELECT examples

Gets a notification.

SELECT
name,
createTime,
messages,
notificationType,
subject
FROM google.advisorynotifications.notifications
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND notificationsId = '{{ notificationsId }}' -- required
AND languageCode = '{{ languageCode }}';