$ curl --request POST --header "Authorization: Bearer your-oauth-token" --header 'Content-Type: application/json' --data '{"labels": {"env": "canary"}, "labelFingerprint": "abcdefghij="}' https://www.googleapis.com/compute/beta/projects/your-project-id/zones/your-zone/instances/your-instance/setLabels{ "kind": "compute#operation", "id": "1234567890", … "selfLink": "https://www.googleapis.com/compute/beta/projects/your-project-id/zones/your-zone/operations/operation-12345678"}
$ curl --header "Authorization: Bearer your-oauth-token" https://www.googleapis.com/compute/beta/projects/your-project-id/zones/your-zone/instances?filter=%28labels.env+eq+canary%29+%28labels.tier+eq+backend%29{ "items": [ { "name": "vm42" "labels": { "env": "prod", "tier": "backend"
Use promo code NEXT1720 to save $300 off general admission
No comments :
Post a Comment