423,688 Members | 1,894 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 423,688 IT Pros & Developers. It's quick & easy.

How to use / implement a created Google Cloud API

P: 25
hi guru,

I would like to implement my custom model but do not know how to do that.

In detail, I would like to use the result of PREDICT tab, which is in AutoML Vision UI, as a function namely function A. After that, I have some code in C# which will call function A to use.

Following is what I tried:
In Google Cloud Platform Console, at (PROJECT_NAME)$ directory,

-add request.json file (the content of this file was generated by AutoML Vision UI after training model)
- run curl command
curl -X POST -H "Content-Type: application/json" \ -H "Authorization: Bearer $(gcloud auth application-default print-access-token)" \ https://automl.googleapis.com/v1beta...569882:predict -d @request.json

And here is the message that I got your application has authenticated using end user credentials from the Google Cloud SDK or Google Cloud Shell which are not supported by the automl.googleapis.com. We recommend that most server application use service accounts instead. For more information about service accounts and how to use them in your appllication, see https://cloud.google.com/docs/authentication/.
status: PERMISSION_DENIED

Please kindly let me know what I should do.

Thanks & Best Regards,

https://bytes.com/attachment.php?att...1&d=1541573451

https://bytes.com/attachment.php?att...1&d=1541573455
Attached Images
File Type: jpg ask console.jpg (201.3 KB, 6 views)
File Type: jpg ask GU.jpg (128.8 KB, 12 views)
2 Weeks Ago #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.