Accounts

Set Credentials for Azure

Changed on

Link a Spot account to an Azure Cloud account. Provide either a client secret or a PEM-encoded certificate and matching private key. Set the expiration date when Azure secret expiration enforcement is enabled. Spot can remind you to update credentials before they expire. If your credentials expire, your Azure subscription will disconnect from Spot and prevent Spot from managing your resources.

post/azure/setup/credentials

Request

  • Base URL
    https://api.spotinst.io
  • URL
    https://api.spotinst.io/azure/setup/credentials
  • Auth
    HTTP bearer

Parameters

#/paths/~1azure~1costs/get/parameters/0 (unresolved $ref)

Request body

OR

Example request

{
  "clientSecret": "32431r2431434132",
  "tenantId": "1321e1e3123er23",
  "subscriptionId": "234r3141131",
  "expirationDate": "2025-12-31T23:59:00.000Z"
}

Response

Set Cloud Credentials For Azure Response

Example response

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

Changes

    • warning

      removed the request property /

    • warning

      removed the request property /

    • warning

      removed the request property /

    • warning

      removed the request property /

    • warning

      removed the request property /

    • info

      added subschema #1: Client secret authentication subschema #2: PEM certificate authentication to the request property oneOf list

    • breaking

      the request property / became required

    • breaking

      the request property / became required

    • warning

      removed the request property /