Preview the Status of a Tier Naming Rules

You can preview the status of a tier naming rules by using:

Use UI to Preview the Status of Tier Naming Rule

Perform the following steps to preview the status of tier naming rule in the Controller UI:
  1. Go to the Tier Naming Rules tab.
  2. Click Naming Rules Preview.
  3. Preview the status of each rule: Impacted processes, In progress, and No changes.
  4. Click Done.

Use API to Preview the Status of a Tier Naming Rule

Format:

POST /customNaming/preview

Request Example:

curl --location --request POST 'https://demo.saas.appdynamics.com/zero/v1beta/customNaming/preview' --header 'Authorization: Bearer {AuthToken}'
--header 'Content-Type: application/json' \
--data-raw
{
  "applicationNames" : [
      "ECommerceApp"
  ],
  "curTierInformation": [
      {
      "tierName": "tier1",
      "ruleName": "rul1e1"
      }
  ],
  "expectedTierInformation": [
      {
      "tierName": "tier1",
      "ruleName": "rul1e1"
      }
  ],
  "previewStatus" : false
}

Response Example 1:

{
    "total": 1,
    "items": [
        {
            "nodeName": "Node1",
            "applicationName": "EcommerceApp",
            "curTierInformation": {
                "tierName": "Tier1",
                "ruleName": "Rule1"
            },
            "expectedTierInformation": {
                "tierName": "NewTier1",
                "ruleName": "NewRule1"
            },
            "previewStatus": true,
            "previewMessage": "Restart to Apply"  
        }
    ]
}

Response Example 2:

{
    "total": 2,
    "items": [
        {
            "nodeName": "Node1",
            "applicationName": "EcommerceApp",
            "curTierInformation": {
                "tierName": "Tier1",
                "ruleName": "Rule1"
            },
            "expectedTierInformation": {
                "tierName": "NewTier1",
                "ruleName": "NewRule1"
            },
            "previewStatus": true,
            "previewMessage": "Restart to Apply"
        },
        {
            "nodeName": "Node2",
            "applicationName": "EcommerceApp",
            "curTierInformation": {
                "tierName": "Tier1",
                "ruleName": "Rule1"
            },
            "previewStatus": true,
            "previewMessage": "No Change"
        }
    ]
}