Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

gcloud resource-manager -- how to tag firebase hosting site?

What are the correct values for --parent and --location for attaching tags to a Firebase Hosting Site?  The tags are needed to enforce IAM conditional restrictions

 

--tag-value=tagValues/281475861230371 , 
site = --parent=//firebasehosting.googleapis.com/projects/tonym-us/sites/dev-gcloud-go 

Full command and Error

gcloud resource-manager tags bindings create --tag-value=tagValues/281475861230371 --parent=//firebasehosting.googleapis.com/projects/tonym-us/sites/dev-gcloud-go --location=us-central1
ERROR: (gcloud.resource-manager.tags.bindings.create) INVALID_ARGUMENT: Request contains an invalid argument.
- '@type': type.googleapis.com/google.rpc.BadRequest
fieldViolations:
- description: Must be a valid One Platform resource name of a tag compatible regional
resource
field: binding.resource
- description: Resource type not supported in location us-central1
field: binding.resource

Example Docs for Firestore (no docs found for Firebase Hosting)

https://cloud.google.com/firestore/docs/tags

 

 

0 1 168
1 REPLY 1

I had issues organizing this post. mods could you help me place it in the right topic?