To update a weekly maintenance policy, run:
gdcloud maintenance policies update example-policy \
--project=example-project \
--weekly-cycle-days=Sat \
--weekly-cycle-days=Sun \
--weekly-cycle-duration=4h30m \
--weekly-cycle-start-time=22:00
To add a new maintenance exclusion, run:
gdcloud maintenance policies update example-policy \
--project=example-project \
--add-exclusion-name=australia-day-sydney-2023 \
--add-exclusion-start=2023-01-26T00:00:00+11:00 \
--add-exclusion-end=2023-01-27T00:00:00+11:00
To remove an existing maintenance exclusion, run:
gdcloud maintenance policies update example-policy \
--project=example-project \
--remove-exclusion-name=australia-day-sydney-2023
OPTIONAL FLAGS
--add-exclusion-end string End date and time for a new maintenance exclusion. Accepted values are RFC 3339 timestamp, such as "2006-01-02T15:04:05Z".
--add-exclusion-name string Name of the new maintenance exclusion to add.
--add-exclusion-start string Start date and time for a new maintenance exclusion. Accepted values are RFC 3339 timestamp, such as "2006-01-02T15:04:05Z".
--remove-exclusion-name string Name of the maintenance exclusion to remove.
--weekly-cycle-days strings Comma-separated list of days of the week when maintenance can begin. Accepted values are RFC-822 style days of week, such as "Mon".
--weekly-cycle-duration string Maximum duration that the maintenance can last for. For example, "2h3m".
--weekly-cycle-start-time string Time of the day (in UTC timezone) when maintenance can begin, in "hh:mm" format. For example, "20:36".
GDCLOUD WIDE FLAGS
These flags are available to all commands: --configuration, --format, --help, --project, --quiet.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-25 UTC."],[[["\u003cp\u003eThe \u003ccode\u003egdcloud maintenance policies update\u003c/code\u003e command allows you to modify an existing maintenance policy.\u003c/p\u003e\n"],["\u003cp\u003eYou can update a weekly maintenance cycle by specifying the days, duration, and start time using flags like \u003ccode\u003e--weekly-cycle-days\u003c/code\u003e, \u003ccode\u003e--weekly-cycle-duration\u003c/code\u003e, and \u003ccode\u003e--weekly-cycle-start-time\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eMaintenance exclusions can be added by providing a name, start time, and end time with the \u003ccode\u003e--add-exclusion-name\u003c/code\u003e, \u003ccode\u003e--add-exclusion-start\u003c/code\u003e, and \u003ccode\u003e--add-exclusion-end\u003c/code\u003e flags, respectively.\u003c/p\u003e\n"],["\u003cp\u003eExisting maintenance exclusions can be removed by specifying the exclusion's name with the \u003ccode\u003e--remove-exclusion-name\u003c/code\u003e flag.\u003c/p\u003e\n"],["\u003cp\u003eSeveral global flags, including \u003ccode\u003e--project\u003c/code\u003e, are available for use with the \u003ccode\u003egdcloud maintenance policies update\u003c/code\u003e command.\u003c/p\u003e\n"]]],[],null,["# gdcloud maintenance policies update\n\nNAME\n----\n\ngdcloud maintenance policies update - Update a single maintenance policy.\n\nSYNOPSIS\n--------\n\n gdcloud maintenance policies update POLICY_NAME [flags]\n\n### EXAMPLES\n\n To update a weekly maintenance policy, run:\n\n gdcloud maintenance policies update example-policy \\\n --project=example-project \\\n --weekly-cycle-days=Sat \\\n --weekly-cycle-days=Sun \\\n --weekly-cycle-duration=4h30m \\\n --weekly-cycle-start-time=22:00\n\n To add a new maintenance exclusion, run:\n\n gdcloud maintenance policies update example-policy \\\n --project=example-project \\\n --add-exclusion-name=australia-day-sydney-2023 \\\n --add-exclusion-start=2023-01-26T00:00:00+11:00 \\\n --add-exclusion-end=2023-01-27T00:00:00+11:00\n\n To remove an existing maintenance exclusion, run:\n\n gdcloud maintenance policies update example-policy \\\n --project=example-project \\\n --remove-exclusion-name=australia-day-sydney-2023\n\n### OPTIONAL FLAGS\n\n --add-exclusion-end string End date and time for a new maintenance exclusion. Accepted values are RFC 3339 timestamp, such as \"2006-01-02T15:04:05Z\".\n --add-exclusion-name string Name of the new maintenance exclusion to add.\n --add-exclusion-start string Start date and time for a new maintenance exclusion. Accepted values are RFC 3339 timestamp, such as \"2006-01-02T15:04:05Z\".\n --remove-exclusion-name string Name of the maintenance exclusion to remove.\n --weekly-cycle-days strings Comma-separated list of days of the week when maintenance can begin. Accepted values are RFC-822 style days of week, such as \"Mon\".\n --weekly-cycle-duration string Maximum duration that the maintenance can last for. For example, \"2h3m\".\n --weekly-cycle-start-time string Time of the day (in UTC timezone) when maintenance can begin, in \"hh:mm\" format. For example, \"20:36\".\n\n### GDCLOUD WIDE FLAGS\n\nThese flags are available to all commands: `--configuration`, `--format`, `--help`, `--project`, `--quiet`.\n\nFor more information, see the [gdcloud CLI reference overview](/distributed-cloud/hosted/docs/latest/gdch/resources/gdcloud-reference/gdcloud) page."]]