latestOpenAPI 3.0.02026-08-2045003.8 MB
72813baf8d47
Accounts
Set Credentials for GCP
Link a Spot account to a GCP Cloud account.
post/gcp/setup/credentials
Parameters
#/paths/~1azure~1costs/get/parameters/0 — unresolved $ref
Request body
Example request
{
"serviceAccount": {
"type": "service_account",
"project_id": "test-labs",
"private_key_id": "XXXXXXXXXXXXXXXXX",
"private_key": "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
"client_email": "test123@spot.io",
"client_id": "XXXXXXXXXXXXXXXXXXXXX",
"auth_uri": "https://accounts.google.com/o/oauth2/auth",
"token_uri": "https://oauth2.googleapis.com/token",
"auth_provider_x509_cert_url": "https://www.googleapis.com/oauth2/v1/certs",
"client_x509_cert_url": "https://www.googleapis.com/robot/v1/metadata/x509/test123%40test-labs.iam.gserviceaccount.com"
}
}Response
Set Cloud Credentials For GCP Response
Example response
{
"request": {
"id": "46642c7d-bc29-417d-8ce4-79626f00c63c",
"url": "/gcp/setup/credentials?accountId=act-123456",
"method": "POST",
"timestamp": "2018-11-19T13:49:11.911Z"
},
"response": {
"status": {
"code": 200,
"message": "OK"
}
}
}