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

Cannot list private connections

Does any have some problem with me?
I cannot list the private connection services. But, I can list the allocated ip address ranges.
Below is the error with the gcloud command.

ERROR: (gcloud.services.vpc-peerings.list) User [john.doe@gm.com] does not have permission to access services instance [-] (or it may not exist): Required 'compute.networks.get' permission for 'projects/1234567890/global/networks/default'
Help Token: jashdkjashdjkashdjksa
- '@type': type.googleapis.com/google.rpc.PreconditionFailure
violations:
- subject: '120002'
type: googleapis.com
- '@type': type.googleapis.com/google.rpc.ErrorInfo
domain: servicenetworking.googleapis.com
reason: COMPUTE_IO_EXTERNAL

Solved Solved
0 5 1,875
1 ACCEPTED SOLUTION

1) Go to IAM & Admin > IAM section and select Include Google-provided role grants checkbox on the top right 

2) Verify that the default account in the format service-(project number)@service-networking.iam.gserviceaccount.com is available and the role servicenetworking.serviceAgent is assigned to it

3) check if the account is missing, create the account and assign the role servicenetworking.serviceAgentO

4)once the account is created, enable the private service connectio n again.

View solution in original post