Google Certified Associate Cloud Engineer 2020

Sign Up Free or Log In to participate!

gsutil label ch -l BadRequestException:400 Invalid Argument

When I try to update or add the label to the bucket using the command "gsutil label ch -l extraKey:extraValue gs://storage-demo-acg-cli" I am getting a BadRequestException: 400 Invalid argument.

Appreciate your help in figuring out the issue with the above command.

3 Answers

Think you need a double quotes around extraKey:extraValue, so "extraKey:extraValue"

I got the same, issue is label cannot contain uppercase characters

You can only put labels with lowercase characters, for any GCP resource that supports labeling.

Sign In
Welcome Back!

Psst…this one if you’ve been moved to ACG!

Get Started
Who’s going to be learning?