gcloud beta ai - PERMISSION_DENIED

309 views Asked by At

I'm trying to user the brand new group ai from gcloud beta. For example

gcloud beta ai custom-jobs list

It then prompts me to choose a region:

Please specify a region:
[1] us-central1
[2] europe-west4
...

Whatever region I choose, it asks me to activate the relative API:

API [aiplatform.googleapis.com] not enabled on project [xxx].
Would you like to enable and retry (this will take a few minutes)?
(y/N)?

Finally, when I say yes, it gives the fatal error:

ERROR: (gcloud.beta.ai.custom-jobs.list) PERMISSION_DENIED: The caller does not have permission

Debug

  • I can perfectly use the group ai-platform, like gcloud beta ai-platform jobs list
  • The core.account from gcloud config configurations describe xxx has Owner permission
  • I tried the same commands on the cloud shell terminal, same result

What am I doing wrong / missing?

1

There are 1 answers

0
vitooh On

I have the same behavior on my testing project (free tier). However I have checked that is no API available that is needed run this command.

You can check your available API's using command:

gcloud beta services list --available

But this gcloud command (I mean ai) is available only in alpha and beta, so it's still in testing phase and it's only possible to provide feedback for this command.