Advertisement
fkeles

update-instance-add-tags.sh

May 10th, 2023
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.81 KB | Source Code | 0 0
  1. ## get instance
  2. oci compute instance get --instance-id ocid1.instance.oc1.uk-london-1.<unique-instance-id>
  3.  
  4. ## update instance
  5. oci compute instance update --instance-id ocid1.instance.oc1.uk-london-1.<unique-instance-id> --defined-tags '{"Oracle-Tags": {"Schedule": {"WeekDay": "0,0,0,0,0,*,*,*,*,*,*,*,*,*,*,*,*,0,0,0,0,0,0,0","Weekend": "0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
  6. 0,0,0,0,0,0,0"},"RunCommandOnComputeInstance":{"Allowed": "True"}}'                                                                                                                          
  7. WARNING: Updates to defined-tags and freeform-tags and agent-config and metadata and extended-metadata and shape-config and instance-options and launch-options and availability-config will replace any existing values. Are you sure you want to continue? [y/N]: y
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement