fbpx
POSThttps://api.spotinst.io/functions/alias?accountId={ACCOUNT_ID}

Create an alias

Parameter Type Description
ACCOUNT_ID String

The accountID

Example: act-12345
Request

Headers
{
  "Content-Type": "application/json",
  "Authorization": "Bearer ${TOKEN}"
}
Body
Copied!
Downloaded!
{
  "alias" : {
    "environmentId" : "env-123",
    "host" : "google.com"
  }
}
Attribute Type Description
alias.environmentId * String

The environment ID

Example: env-12345
alias.host * String

The alias.

Example: myAlias.com
Response - 200

Headers
{
  "Content-Type: application/json"
}
Body
Copied!
Downloaded!
{
  "status": {
    "code": 200,
    "message": "OK"
  },
  "count": "1",
  "items": [
    {
      "id" : "fna-123",
	  "environmentId" : "env-123",
 	  "host" : "myAlias.com"
    } 
  ]
}