--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 create\u003c/code\u003e command is used to establish a new maintenance policy.\u003c/p\u003e\n"],["\u003cp\u003eYou can define a weekly maintenance cycle specifying the days of the week, duration, and start time using the optional flags.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003e--weekly-cycle-days\u003c/code\u003e flag accepts RFC-822 style day abbreviations like "Sat" or "Sun" to specify which days of the week maintenance can start.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003e--weekly-cycle-duration\u003c/code\u003e flag sets the maximum time maintenance can take, using formats like "2h3m".\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003e--weekly-cycle-start-time\u003c/code\u003e flag determines the time of day, in UTC, when maintenance can begin, in "hh:mm" format.\u003c/p\u003e\n"]]],[],null,["# gdcloud maintenance policies create\n\nNAME\n----\n\ngdcloud maintenance policies create - Create a single maintenance policy.\n\nSYNOPSIS\n--------\n\n gdcloud maintenance policies create POLICY_NAME [flags]\n\n### EXAMPLES\n\n To create a weekly maintenance policy, run:\n\n gdcloud maintenance policies create 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### OPTIONAL FLAGS\n\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."]]