latestOpenAPI 3.0.02026-08-2045003.8 MB

72813baf8d47

Accounts

Validate Credentials for GCP

Validate the credentials for connecting a Spot account to an GCP Cloud account. The validation will test the credentials without actually set it. Please notice to run the set credentials request to perform the set account credentials.

post/gcp/setup/credentials/validation

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

Validate Cloud Credentials for GCP Response

Example response

{
  "request": {
    "id": "46642c7d-bc29-417d-8ce4-79626f00c63c",
    "url": "/gcp/setup/credentials/validate?accountId=act-123456",
    "method": "POST",
    "timestamp": "2018-11-19T13:49:11.911Z"
  },
  "response": {
    "status": {
      "code": 200,
      "message": "OK"
    }
  }
}