Service GCP BillingAccount Update SA key entry in the request
search cancel

Service GCP BillingAccount Update SA key entry in the request

book

Article ID: 284162

calendar_today

Updated On:

Products

CloudHealth

Issue/Introduction

The key needs to be downloaded from Google console as a json and then encoded in base64 format.

Resolution

Refer to this documentation for more info:  https://apidocs.cloudhealthtech.com/#gcp-account_how-to-encode-a-json-private-key

Afterwards, the user needs to get the encoded key and copy it into the API call.

ex:

{
"cloudhealth_billing_account_id": "XXXXXXXXXXX",
"billing_account_service_account": "XXXXXXXXXXXXX.iam.gserviceaccount.com",
"billing_account_service_account_json_key": "data:application/json;base64, ewxxxxxxxxx
xxxxxxxxxxxxxxxewxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxZD"

}