Method: projects.notificationChannels.verify

Verifies a NotificationChannel by proving receipt of the code delivered to the channel as a result of calling notificationChannels.sendVerificationCode.

HTTP request

POST https://monitoring.googleapis.com/v3/{name}:verify

Path parameters

Parameters
name

string

The notification channel to verify.

Authorization requires the following Google IAM permission on the specified resource name:

  • monitoring.notificationChannels.verify

Request body

The request body contains data with the following structure:

JSON representation
{
  "code": string
}
Fields
code

string

The verification code that was delivered to the channel as a result of invoking the notificationChannels.sendVerificationCode API method or that was retrieved from a verified channel via notificationChannels.getVerificationCode. For example, one might have "G-123456" or "TKNZGhhd2EyN3I1MnRnMjRv" (in general, one is only guaranteed that the code is valid UTF-8; one should not make any assumptions regarding the structure or format of the code).

Response body

If successful, the response body contains an instance of NotificationChannel.

Authorization Scopes

Requires one of the following OAuth scopes:

  • https://www.googleapis.com/auth/cloud-platform
  • https://www.googleapis.com/auth/monitoring

For more information, see the Auth Guide.

Try it!

Send feedback about...

Stackdriver Monitoring