Skip to content

appd get-tiers

Get all tiers for a business application

Description

Get all tiers for a business application

Synopsis

appd get-tiers
    [--site <site>]
    [--cluster <cluster>]
    <application>
    [--tier <tier>]

Arguments

site - (string)

     Site where this command will be executed
     Example: --site "site-1"
     Default: input.site      Attributes: optional

cluster - (string)

     Name of elastic search cluster
     Example: --cluster "appdynamics-default"
     Default: appdynamics-default      Attributes: optional

application - (string)

     application name or ID
     Example: "app-1"
     Default: _None_      Attributes: required

tier - (string)

     tier name or ID
     Example: --tier "tier-1"
     Default: _None_      Attributes: optional

Examples

Input:

x = ! appd get-tiers "bookinfo"
Output:
[
  {
    "agentType": "NATIVE_SDK",
    "name": "details",
    "description": "",
    "id": 939728,
    "numberOfNodes": 1,
    "type": "C/C++ SDK"
  },
  {
    "agentType": "PYTHON_APP_AGENT",
    "name": "productpage",
    "description": "",
    "id": 939727,
    "numberOfNodes": 1,
    "type": "Python Server"
  }
]
Input:
x = ! appd get-business-transactions "bookinfo"
Output:
ID      NAME        TYPE                AGENT-TYPE          NODES 
939728  details     C/C++ SDK           NATIVE_SDK              1   
939727  productpage Python Server       PYTHON_APP_AGENT        1   
939705  ratings     Node.JS Server      NODEJS_APP_AGENT        2   
939711  reviews     Application Server  APP_AGENT               3   
Input:
x = ! appd get-business-transactions "bookinfo" --tier "details"
Output:
ID      NAME        TYPE                AGENT-TYPE          NODES 
939728  details     C/C++ SDK           NATIVE_SDK              1   

Access Control

To use this command, you need access to the following:

Field Value
Action "read"
Service Type "appd"
Service Instance cluster
Namespace
Object Type "application"
Object ID application

Please see Access Control for details.