Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Note
You can use the Get Workloads API to find the workloadID workload ID / app ID (id)
Note
You can use the Get Workload API to find the tierId tier ID (id). 

...

Sample request

Code Block
languagetext
DELETE https://api.armor.com/apps/1/tiers/6

...

Input

Excerpt Include
ESLP:API table parts (snippet)
ESLP:API table parts (snippet)
nopaneltrue

API Call / URLMethod / Type

/apps/{appId}/tiers/{tierId}

DELETE


Excerpt Include
ESLP:Parameters to include (snippet)
ESLP:Parameters to include (snippet)
nopaneltrue

...

StatusResponse
200
Code Block
languagetext
{
 "id": 1,
 "name": "string",
 "location": null,
 "zone": null,
 "status": 8,
 "deployed": false,
 "tierCount": 4,
 "vmCount": 13,
 "totalCpu": 1,
 "totalMemory": 2048,
 "totalStorage": 30720,
 "tiers": [
   {
     "id": 5,
     "name": "New Tier 1",
     "vms":[]
   },
   {
     "id": 7,
     "name": "New Tier 3",
     "vms": []
   }
 ],
 "notes": null,
 "health": 0,
 "tags": []
}
400
Code Block
languagetext
Trying to delete a tier with VMs
{
 "error": true,
 "message": "You cannot delete a tier that has vms assigned to it."
}


...

Output

Excerpt Include
ESLP:Output results (snippet)
ESLP:Output results (snippet)
nopaneltrue

ReturnTypeDescriptionPossible valuesExample
statusIntegerThe state of the objectA range of numbers from -1 to 19 (See Note below for possible values)
8


 

Excerpt Include
ESLP:Status return values (snippet)
ESLP:Status return values (snippet)
nopaneltrue