# REST Resource: organizations.locations.notifications

- [Resource: Notification](https://docs.cloud.google.com/advisory-notifications/docs/reference/rest/v1/organizations.locations.notifications#Notification)
  - [JSON representation](https://docs.cloud.google.com/advisory-notifications/docs/reference/rest/v1/organizations.locations.notifications#Notification.SCHEMA_REPRESENTATION)
  - [Subject](https://docs.cloud.google.com/advisory-notifications/docs/reference/rest/v1/organizations.locations.notifications#Notification.Subject)
    - [JSON representation](https://docs.cloud.google.com/advisory-notifications/docs/reference/rest/v1/organizations.locations.notifications#Notification.Subject.SCHEMA_REPRESENTATION)
  - [Text](https://docs.cloud.google.com/advisory-notifications/docs/reference/rest/v1/organizations.locations.notifications#Notification.Text)
    - [JSON representation](https://docs.cloud.google.com/advisory-notifications/docs/reference/rest/v1/organizations.locations.notifications#Notification.Text.SCHEMA_REPRESENTATION)
  - [LocalizationState](https://docs.cloud.google.com/advisory-notifications/docs/reference/rest/v1/organizations.locations.notifications#Notification.LocalizationState)
  - [Message](https://docs.cloud.google.com/advisory-notifications/docs/reference/rest/v1/organizations.locations.notifications#Notification.Message)
    - [JSON representation](https://docs.cloud.google.com/advisory-notifications/docs/reference/rest/v1/organizations.locations.notifications#Notification.Message.SCHEMA_REPRESENTATION)
  - [Body](https://docs.cloud.google.com/advisory-notifications/docs/reference/rest/v1/organizations.locations.notifications#Notification.Body)
    - [JSON representation](https://docs.cloud.google.com/advisory-notifications/docs/reference/rest/v1/organizations.locations.notifications#Notification.Body.SCHEMA_REPRESENTATION)
  - [Attachment](https://docs.cloud.google.com/advisory-notifications/docs/reference/rest/v1/organizations.locations.notifications#Notification.Attachment)
    - [JSON representation](https://docs.cloud.google.com/advisory-notifications/docs/reference/rest/v1/organizations.locations.notifications#Notification.Attachment.SCHEMA_REPRESENTATION)
  - [Csv](https://docs.cloud.google.com/advisory-notifications/docs/reference/rest/v1/organizations.locations.notifications#Notification.Csv)
    - [JSON representation](https://docs.cloud.google.com/advisory-notifications/docs/reference/rest/v1/organizations.locations.notifications#Notification.Csv.SCHEMA_REPRESENTATION)
  - [CsvRow](https://docs.cloud.google.com/advisory-notifications/docs/reference/rest/v1/organizations.locations.notifications#Notification.CsvRow)
    - [JSON representation](https://docs.cloud.google.com/advisory-notifications/docs/reference/rest/v1/organizations.locations.notifications#Notification.CsvRow.SCHEMA_REPRESENTATION)
  - [NotificationType](https://docs.cloud.google.com/advisory-notifications/docs/reference/rest/v1/organizations.locations.notifications#Notification.NotificationType)
- [Methods](https://docs.cloud.google.com/advisory-notifications/docs/reference/rest/v1/organizations.locations.notifications#METHODS_SUMMARY)

## Resource: Notification

A notification object for notifying customers about security and privacy issues.

| JSON representation |
|---|
| ``` { "name": string, "subject": { object (`https://docs.cloud.google.com/advisory-notifications/docs/reference/rest/v1/organizations.locations.notifications#Notification.Subject`) }, "messages": [ { object (`https://docs.cloud.google.com/advisory-notifications/docs/reference/rest/v1/organizations.locations.notifications#Notification.Message`) } ], "createTime": string, "notificationType": enum (`https://docs.cloud.google.com/advisory-notifications/docs/reference/rest/v1/organizations.locations.notifications#Notification.NotificationType`) } ``` |

| Fields ||
|---|---|
| `name` | `string` The resource name of the notification. Format: organizations/{organization}/locations/{location}/notifications/{notification} or projects/{project}/locations/{location}/notifications/{notification}. |
| `subject` | ``object (`https://docs.cloud.google.com/advisory-notifications/docs/reference/rest/v1/organizations.locations.notifications#Notification.Subject`)`` The subject line of the notification. |
| `messages[]` | ``object (`https://docs.cloud.google.com/advisory-notifications/docs/reference/rest/v1/organizations.locations.notifications#Notification.Message`)`` A list of messages in the notification. |
| `createTime` | ``string (`https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.Timestamp` format)`` Output only. Time the notification was created. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: `"2014-10-02T15:01:23Z"` and `"2014-10-02T15:01:23.045123456Z"`. |
| `notificationType` | ``enum (`https://docs.cloud.google.com/advisory-notifications/docs/reference/rest/v1/organizations.locations.notifications#Notification.NotificationType`)`` Type of notification |

### Subject

A subject line of a notification.

| JSON representation |
|---|
| ``` { "text": { object (`https://docs.cloud.google.com/advisory-notifications/docs/reference/rest/v1/organizations.locations.notifications#Notification.Text`) } } ``` |

| Fields ||
|---|---|
| `text` | ``object (`https://docs.cloud.google.com/advisory-notifications/docs/reference/rest/v1/organizations.locations.notifications#Notification.Text`)`` The text content. |

### Text

A text object containing the English text and its localized copies.

| JSON representation |
|---|
| ``` { "enText": string, "localizedText": string, "localizationState": enum (`https://docs.cloud.google.com/advisory-notifications/docs/reference/rest/v1/organizations.locations.notifications#Notification.LocalizationState`) } ``` |

| Fields ||
|---|---|
| `enText` | `string` The English copy. |
| `localizedText` | `string` The requested localized copy (if applicable). |
| `localizationState` | ``enum (`https://docs.cloud.google.com/advisory-notifications/docs/reference/rest/v1/organizations.locations.notifications#Notification.LocalizationState`)`` Status of the localization. |

### LocalizationState

Status of localized text.

| Enums ||
|---|---|
| `LOCALIZATION_STATE_UNSPECIFIED` | Not used. |
| `LOCALIZATION_STATE_NOT_APPLICABLE` | Localization is not applicable for requested language. This can happen when: - The requested language was not supported by Advisory Notifications at the time of localization (including notifications created before the localization feature was launched). - The requested language is English, so only the English text is returned. |
| `LOCALIZATION_STATE_PENDING` | Localization for requested language is in progress, and not ready yet. |
| `LOCALIZATION_STATE_COMPLETED` | Localization for requested language is completed. |

### Message

A message which contains notification details.

| JSON representation |
|---|
| ``` { "body": { object (`https://docs.cloud.google.com/advisory-notifications/docs/reference/rest/v1/organizations.locations.notifications#Notification.Body`) }, "attachments": [ { object (`https://docs.cloud.google.com/advisory-notifications/docs/reference/rest/v1/organizations.locations.notifications#Notification.Attachment`) } ], "createTime": string, "localizationTime": string } ``` |

| Fields ||
|---|---|
| `body` | ``object (`https://docs.cloud.google.com/advisory-notifications/docs/reference/rest/v1/organizations.locations.notifications#Notification.Body`)`` The message content. |
| `attachments[]` | ``object (`https://docs.cloud.google.com/advisory-notifications/docs/reference/rest/v1/organizations.locations.notifications#Notification.Attachment`)`` The attachments to download. |
| `createTime` | ``string (`https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.Timestamp` format)`` The Message creation timestamp. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: `"2014-10-02T15:01:23Z"` and `"2014-10-02T15:01:23.045123456Z"`. |
| `localizationTime` | ``string (`https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.Timestamp` format)`` Time when Message was localized A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: `"2014-10-02T15:01:23Z"` and `"2014-10-02T15:01:23.045123456Z"`. |

### Body

A message body containing text.

| JSON representation |
|---|
| ``` { "text": { object (`https://docs.cloud.google.com/advisory-notifications/docs/reference/rest/v1/organizations.locations.notifications#Notification.Text`) } } ``` |

| Fields ||
|---|---|
| `text` | ``object (`https://docs.cloud.google.com/advisory-notifications/docs/reference/rest/v1/organizations.locations.notifications#Notification.Text`)`` The text content of the message body. |

### Attachment

Attachment with specific information about the issue.

| JSON representation |
|---|
| ``` { "displayName": string, // Union field `data` can be only one of the following: "csv": { object (`https://docs.cloud.google.com/advisory-notifications/docs/reference/rest/v1/organizations.locations.notifications#Notification.Csv`) } // End of list of possible types for union field `data`. } ``` |

| Fields ||
|---|---|
| `displayName` | `string` The title of the attachment. |
| Union field `data`. Data type of the attachment. `data` can be only one of the following: ||
| `csv` | ``object (`https://docs.cloud.google.com/advisory-notifications/docs/reference/rest/v1/organizations.locations.notifications#Notification.Csv`)`` A CSV file attachment. Max size is 10 MB. |

### Csv

A representation of a CSV file attachment, as a list of column headers and a list of data rows.

| JSON representation |
|---|
| ``` { "headers": [ string ], "dataRows": [ { object (`https://docs.cloud.google.com/advisory-notifications/docs/reference/rest/v1/organizations.locations.notifications#Notification.CsvRow`) } ] } ``` |

| Fields ||
|---|---|
| `headers[]` | `string` The list of headers for data columns in a CSV file. |
| `dataRows[]` | ``object (`https://docs.cloud.google.com/advisory-notifications/docs/reference/rest/v1/organizations.locations.notifications#Notification.CsvRow`)`` The list of data rows in a CSV file, as string arrays rather than as a single comma-separated string. |

### CsvRow

A representation of a single data row in a CSV file.

| JSON representation |
|---|
| ``` { "entries": [ string ] } ``` |

| Fields ||
|---|---|
| `entries[]` | `string` The data entries in a CSV file row, as a string array rather than a single comma-separated string. |

### NotificationType

Type of notification

| Enums ||
|---|---|
| `NOTIFICATION_TYPE_UNSPECIFIED` | Default type |
| `NOTIFICATION_TYPE_SECURITY_PRIVACY_ADVISORY` | Security and privacy advisory notifications |
| `NOTIFICATION_TYPE_SENSITIVE_ACTIONS` | Sensitive action notifications |
| `NOTIFICATION_TYPE_SECURITY_MSA` | General security MSA |
| `NOTIFICATION_TYPE_THREAT_HORIZONS` | Threat horizons MSA |

| ## Methods ||
|---|---|
| ### `https://docs.cloud.google.com/advisory-notifications/docs/reference/rest/v1/organizations.locations.notifications/get` | Gets a notification. |
| ### `https://docs.cloud.google.com/advisory-notifications/docs/reference/rest/v1/organizations.locations.notifications/list` | Lists notifications under a given parent. |