gcloud alpha monitoring snoozes cancel Stay organized with collections Save and categorize content based on your preferences.
- NAME
- gcloud alpha monitoring snoozes cancel - cancels a snooze
- SYNOPSIS
gcloud alpha monitoring snoozes cancelSNOOZE[GCLOUD_WIDE_FLAG …]
- DESCRIPTION
(ALPHA)Cancel a snooze.If the start time is in the future, then this command is equivalent to:
- update --start-time="+PT1S" --end-time="+PT1S
Otherwise, if the start time is past and the ending time is in the future, thenthis command is equivalent to:
- update --end-time="+PT1S
For information about the JSON/YAML format of a snooze:https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.snoozes
- EXAMPLES
- To cancel a snooze, run:
gcloudalphamonitoringsnoozescancelMY-SNOOZETo cancel a snooze contained within a specific project, run:
gcloudalphamonitoringsnoozescancelMY-SNOOZE--project=MY-PROJECTTo cancel a snooze with a fully qualified snooze ID, run:
gcloudalphamonitoringsnoozescancelprojects/MY-PROJECT/snoozes/MY-SNOOZE - POSITIONAL ARGUMENTS
- Snooze resource - Name of the Snooze to be canceled. This represents a Cloudresource. (NOTE) Some attributes are not given arguments in this group but canbe set in other ways.
To set the
projectattribute:- provide the argument
snoozeon the command line with a fullyspecified name; - provide the argument
--projecton the command line; - set the property
core/project.
This must be specified.
SNOOZE- ID of the Snooze or fully qualified identifier for the Snooze.
To set the
snoozeattribute:- provide the argument
snoozeon the command line.
- provide the argument
- provide the argument
- Snooze resource - Name of the Snooze to be canceled. This represents a Cloudresource. (NOTE) Some attributes are not given arguments in this group but canbe set in other ways.
- GCLOUD WIDE FLAGS
- These flags are available to all commands:
--access-token-file,--account,--billing-project,--configuration,--flags-file,--flatten,--format,--help,--impersonate-service-account,--log-http,--project,--quiet,--trace-token,--user-output-enabled,--verbosity.Run
$gcloud helpfor details. - NOTES
- This command is currently in alpha and might change without notice. If thiscommand fails with API permission errors despite specifying the correct project,you might be trying to access an API with an invitation-only early accessallowlist. These variants are also available:
gcloudmonitoringsnoozescancelgcloudbetamonitoringsnoozescancel
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-05-07 UTC.