Overview
The Get Tiers API retrieves all the tiers associated with a specified workload.
You can use the Get Workloads API to find the workloadID (id).
Sample request
GET https://api.armor.com/apps/1/tiers
Input
The following table describes the different parts of this API call:
API Call / URL | Method / Type |
---|---|
/apps/{appId}/tiers | GET |
The following table describes the parameter (or parameters) for this API call:
Parameter | Description | Required or optional | Type | Example |
---|---|---|---|---|
appId | The ID of the workload that contains the tier | Required | Integer | 1 |
Sample return
Status | Response |
---|---|
200 | { "tiers": [ { "id": 5, "name": "New Tier 1", "vms":[] }, { "id": 7, "name": "New Tier 3", "vms": [] } ] } |
400 |