update command, you can use the edit and edit-by-name commands to make changes with the help of your preferred editor. These commands are available for all resources that support the update command.
Edit a resource by ID
Theedit commands are constructed according to the following template:
-
--id: Resource ID. -
--editor(optional): Editor name. It can be any editor installed on your machine, such asnanooremacs. To check which of the popular editors are installed, run the following command:For an editor that opens in a separate window, add the--waitparameter to its name to ensure that the command waits until you close the editor. You can also specify the editor in theEDITORenvironment variable, but if both are specified, the--editorparameter has priority. By default,vieditor is used. -
--format(optional): Data format. Onlyjsonandyamlvalues are accepted. By default, YAML format is used.
Edit resource by name and parent ID
If you do not know the ID of the resource, you can use its name and the ID of the parent resource, according to the following template:edit, but instead of --id specify the --name and --parent-id.
Examples
Edit the configuration of a node group in a Managed Service for Kubernetes cluster in VS Code:vi editor and in JSON format: