Accounts

Set Credentials for Azure Tenant

Link a Spot to an Azure Cloud tenant. This is used to set up credentials at the tenant level which are utilized for Azure Savings Plan and Reservation utilization.

post/azure/setup/tenant/credentials

Request

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

Parameters

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

Request body

clientIdstring required

Set the application ID

clientSecretstring required

Set the key secret

tenantIdstring required

Set the directory ID

expirationDatestring date-time required

Set the key secret expiration date

Example request

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

Response

(unresolved $ref)

Changes

No recorded changes to this operation across all 12 revisions of this API.