REST Resource: projects.contacts

Resource: Contact

A contact that will receive notifications from Google Cloud.

JSON representation
{
  "name": string,
  "email": string,
  "notificationCategorySubscriptions": [
    enum (NotificationCategory)
  ],
  "languageTag": string,
  "validationState": enum (ValidationState),
  "validateTime": string
}
Fields
name

string

Output only. The identifier for the contact. Format: {resourceType}/{resource_id}/contacts/{contact_id}

email

string

Required. The email address to send notifications to. The email address does not need to be a Google Account.

notificationCategorySubscriptions[]

enum (NotificationCategory)

Required. The categories of notifications that the contact will receive communications for.

languageTag

string

Required. The preferred language for notifications, as a ISO 639-1 language code. See Supported languages for a list of supported languages.

validationState

enum (ValidationState)

Output only. The validity of the contact. A contact is considered valid if it is the correct recipient for notifications for a particular resource.

validateTime

string (Timestamp format)

The last time the validationState was updated, either manually or automatically. A contact is considered stale if its validation state was updated more than 1 year ago.

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".

Methods

compute

Lists all contacts for the resource that are subscribed to the specified notification categories, including contacts inherited from any parent resources.

create

Adds a new contact for a resource.

delete

Deletes a contact.

get

Gets a single contact.

list

Lists the contacts that have been set on a resource.

patch

Updates a contact.

sendTestMessage

Allows a contact admin to send a test message to contact to verify that it has been configured correctly.