How should the service GCP BillingAccount Update SA key be entered in the request?
search cancel

How should the service GCP BillingAccount Update SA key be entered in the request?

book

Article ID: 284162

calendar_today

Updated On:

Products

CloudHealth

Issue/Introduction

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

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"

}