Edit Tier Naming Rules
You can edit tier naming rules by using:
Use UI to Edit Tier Naming Rules
- Go to the Tier Naming Rules tab.
- Select the Rule Name that you want to edit.
- Click Edit rule.
-
Edit the following:
- Click Update rule.
Use API to Edit Tier Naming Rules
Format:
PUT /customNaming/rules/{Id}
Request Example:
curl --location --request PUT 'https://demo.saas.appdynamics.com/zero/v1beta/customNaming/rules/9a7dfb82-480f-4beb-b72c-a3692b54fdec' --header 'Authorization: Bearer {AuthToken}' \
--header 'Content-Type: application/json' \
--data-raw
{
"id": "9a7dfb82-480f-4beb-b72c-a3692b54fdec",
"ruleName": "TomcatRule",
"tierNamingFormat": "tomcat-tier-prod",
"processType": "JAVA",
"version": 1,
"appServerTypes": [
"tomcat"
],
"priority": 1,
"enabled": true,
"ruleConditions": [
{
"keyName": "<cmdlineArray[_]>",
"conditionType": "CONTAINS",
"value": "-Dcatalina.home=/staging/apache-tomcat-9.0.6",
"sequence": 0
},
{
"keyName": "<envVarMap.HOSTNAME>",
"conditionType": "EQUAL",
"value": "localhost",
"sequence": 0
}
],
"applicationNames": [
"ALL"
]
}
Response Example:
{
"id": "9a7dfb82-480f-4beb-b72c-a3692b54fdec",
"ruleName": "TomcatRule",
"tierNamingFormat": "tomcat-tier-prod",
"processType": "JAVA",
"version": 2,
"appServerTypes": [
"tomcat"
],
"priority": 1,
"enabled": true,
"ruleConditions": [
{
"keyName": "<cmdlineArray[_]>",
"conditionType": "CONTAINS",
"value": "-Dcatalina.home=/staging/apache-tomcat-9.0.6",
"sequence": 0
},
{
"keyName": "<envVarMap.HOSTNAME>",
"conditionType": "EQUAL",
"value": "localhost",
"sequence": 0
}
],
"applicationNames": [
"ALL"
]
}