Get All Credential Rules
API EndPoint : getAllCredentialRules
Retrieves a paginated list of Credential Rules available in NCM. This endpoint is typically used to populate a grid or table view in the UI. The response includes both the Credential Rule data and pagination metadata.
HTTP Method
GET
API URL
http://localhost:8060/api/json/ncmtags/getAllCredentialRules?apiKey=********
Parameters
| Param Name | Description | Data Type | Regex | Is Mandatory |
|---|---|---|---|---|
| apiKey | API Key to access your server. | - | - | Yes |
Sample Response
HTTP Code: 200
{
"headers": [
{
"hidden": true,
"displayName": "",
"name": "id"
},
{
"displayName": "webclient.ncm.credRule.ruleOrder",
"name": "RULE_ORDER",
"width": "5"
},
{
"formatter": "cellValueEscapeFormat",
"displayName": "webclient.admin.alarmesc.RuleName",
"classes": "pointer",
"name": "RULENAME",
"width": "15"
},
{
"formatter": "formatCredRuleCriteria",
"displayName": "webclient.opm.group.create.step2",
"classes": "pointer",
"name": "CRITERIA",
"width": "50"
},
{
"hidden": true,
"displayName": "",
"classes": "pointer",
"name": "DEVICE_CRI_TYPE"
},
{
"hidden": true,
"displayName": "",
"name": "STATUS"
},
{
"displayName": "opu.common.PROTOCOL",
"classes": "pointer",
"name": "PROTOCOL_NAME",
"width": "10"
},
{
"formatter": "cellValueEscapeFormat",
"displayName": "ncm.acd.Profile_Name",
"classes": "pointer",
"name": "PROFILENAME",
"width": "10"
},
{
"formatter": "formatCredRuleAction",
"displayName": "webclient.action.actions",
"classes": "pointer",
"name": "ACTION",
"width": "10"
}
],
"colCount": 6,
"gridId": "CredentialRules",
"rows": [
{
"CREATED_BY": "admin",
"CRITERIA": {
"criteriaDetails": [
{
"Condition": "LIKE",
"Field": "ADDRESS",
"Value": "3.4",
"Comparator": ""
},
{
"Condition": "STARTS_WITH",
"Field": "RESOURCENAME",
"Value": "CHEN",
"Comparator": "and"
}
]
},
"DEVICE_CRI_TYPE": "CRITERIA",
"STATUS": true,
"PROFILENAME": "test",
"RULENAME": "Cred Rule Test",
"LAST_MODIFIED_BY": "admin",
"DESCRIPTION": "This is a new Credential Rule",
"RULE_ORDER": 1,
"id": 1,
"PROTOCOL_NAME": "SSH"
}
],
"isSuccess": true
}