notifications
Creates, updates, deletes, gets or lists a notifications resource.
Overview
| Name | notifications |
| Type | Resource |
| Id | google.advisorynotifications.notifications |
Fields
The following fields are returned by SELECT queries:
- get
- list
| Name | Datatype | Description |
|---|---|---|
name | string | The resource name of the notification. Format: organizations/{organization}/locations/{location}/notifications/{notification} or projects/{project}/locations/{location}/notifications/{notification}. |
createTime | string (google-datetime) | Output only. Time the notification was created. |
messages | array | A list of messages in the notification. |
notificationType | string | Type of notification (NOTIFICATION_TYPE_UNSPECIFIED, NOTIFICATION_TYPE_SECURITY_PRIVACY_ADVISORY, NOTIFICATION_TYPE_SENSITIVE_ACTIONS, NOTIFICATION_TYPE_SECURITY_MSA, NOTIFICATION_TYPE_THREAT_HORIZONS) |
subject | object | The subject line of the notification. (id: GoogleCloudAdvisorynotificationsV1Subject) |
| Name | Datatype | Description |
|---|---|---|
name | string | The resource name of the notification. Format: organizations/{organization}/locations/{location}/notifications/{notification} or projects/{project}/locations/{location}/notifications/{notification}. |
createTime | string (google-datetime) | Output only. Time the notification was created. |
messages | array | A list of messages in the notification. |
notificationType | string | Type of notification (NOTIFICATION_TYPE_UNSPECIFIED, NOTIFICATION_TYPE_SECURITY_PRIVACY_ADVISORY, NOTIFICATION_TYPE_SENSITIVE_ACTIONS, NOTIFICATION_TYPE_SECURITY_MSA, NOTIFICATION_TYPE_THREAT_HORIZONS) |
subject | object | The subject line of the notification. (id: GoogleCloudAdvisorynotificationsV1Subject) |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get | select | organizationsId, locationsId, notificationsId | languageCode | Gets a notification. |
list | select | organizationsId, locationsId | pageSize, pageToken, languageCode, view | Lists 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.
| Name | Datatype | Description |
|---|---|---|
locationsId | string | |
notificationsId | string | |
organizationsId | string | |
languageCode | string | |
pageSize | integer (int32) | |
pageToken | string | |
view | string |
SELECT examples
- get
- list
Gets a notification.
SELECT
name,
createTime,
messages,
notificationType,
subject
FROM google.advisorynotifications.notifications
WHERE organizationsId = '{{ organizationsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND notificationsId = '{{ notificationsId }}' -- required
AND languageCode = '{{ languageCode }}'
;
Lists notifications under a given parent.
SELECT
name,
createTime,
messages,
notificationType,
subject
FROM google.advisorynotifications.notifications
WHERE organizationsId = '{{ organizationsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND pageSize = '{{ pageSize }}'
AND pageToken = '{{ pageToken }}'
AND languageCode = '{{ languageCode }}'
AND view = '{{ view }}'
;