Cloud SQL API - Error - The client is not authorized to make this request while import data into Cloud SQL using c#

382 views
Skip to first unread message

Rajesh Sandadi

unread,
May 31, 2018, 8:56:03 AM5/31/18
to Google Cloud SQL discuss
Hi team, 

I’m trying to import  CSV file(cloud storage) data into Cloud SQL using “Google.Apis.SQLAdmin.v1beta4” API. I have created service account and provided necessary permissions.


Below Error throwing when CloudSQLservice.Instances.Import method invokes.

 

Google.Apis.Requests.RequestError

The client is not authorized to make this request. [403]

Errors [

                Message[The client is not authorized to make this request.] Location[ - ] Reason[notAuthorized] Domain[global]

]

 

 

Let me know any additional information required to understand the issue.

 

Thanks in advance.

 

Regards,

Rajesh

George (Cloud Platform Support)

unread,
May 31, 2018, 5:30:22 PM5/31/18
to Google Cloud SQL discuss
Hello Rajesh, 

More information is needed to build a firm base for our investigation. What steps have you undertaken prior to receiving the 403 error? How does your C# code look like? For reference, you may check a relevant example on the "Instances: import" documentation page. However, this code sample uses Application Default Credentials for authentication.

This discussion group is oriented more towards general opinions, trends and issues of general nature touching the app engine. For coding and programming architecture, you may be better served in a forum such as stackoverflow, where experienced programmers are within reach and ready to help. 
Reply all
Reply to author
Forward
0 new messages