{"type":"api","title":"Get list of profiling rules","meta":{"id":"/apps/pubhub/media/dna-center-235/0e427c513038595590fc5a0593cb0e208dd78571/2192edf3-d24e-3461-ab8c-12a97b547df4","swagger":"2.0","info":{"description":"Cisco DNA Center Platform v. 2.3.5","version":"2.3.5","title":"Intent API"},"schemes":["https"],"x-parser-conf":{"expand":0,"labelConfig":{"endpoint":"summary"}}},"spec":{"operationId":"getListOfProfilingRules","tags":["Policy"],"summary":"Get list of profiling rules","description":"This API fetches the list of profiling rules. It can be used to show profiling rules in client applications, or export those from an environment. 'POST /profiling-rules/bulk' API can be used to import such exported rules into another environment.\nIf this API is used to export rules to be imported into another Cisco DNA Center system, then ensure that 'includeDeleted' parameter is 'true', so that deleted rules get synchronized correctly.\nUse query parameters to filter the data, as required. If no filter is provided, then it will include only rules of type 'Custom Rule' in the response. By default, the response is limited to 500 records. Use 'limit' parameter to fetch higher number of records, if required. 'GET /profiling-rules/count' API can be used to find out the total number of rules in the system.\n","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"ruleType","description":"Use comma-separated list of rule types to filter the data. Defaults to 'Custom Rule'.","type":"string","in":"query"},{"name":"includeDeleted","description":"Flag to indicate whether deleted rules should be part of the records fetched.","default":false,"type":"boolean","in":"query"},{"name":"limit","description":"Maximum number of records to be fetched. If not provided, 500 records will be fetched by default. To fetch all\nthe records in the system, provide a large value for this parameter.\n","type":"number","in":"query"},{"name":"offset","description":"Record offset to start data fetch at. Offset starts at zero.","type":"number","in":"query"},{"name":"sortBy","description":"Name of the column to sort the results on. Please note that fetch might take more time if sorting is requested.","type":"string","in":"query"},{"name":"order","description":"Order to be used for sorting.","type":"string","in":"query"}],"responses":{"200":{"description":"Success. In case no records are found, 'profilingRules' attribute will contain empty array.","schema":{"type":"object","properties":{"profilingRules":{"type":"array","items":{"type":"object","properties":{"ruleId":{"type":"string"},"ruleName":{"type":"string"},"ruleType":{"type":"string","enum":["Cisco Default - Static","Cisco Default - Dynamic","Custom Rule","ML Rule"]},"ruleVersion":{"type":"integer"},"rulePriority":{"type":"integer"},"sourcePriority":{"type":"integer"},"isDeleted":{"type":"boolean"},"lastModifiedBy":{"type":"string"},"lastModifiedOn":{"type":"integer"},"pluginId":{"type":"string"},"clusterId":{"type":"string"},"rejected":{"type":"boolean"},"result":{"type":"object","properties":{"deviceType":{"type":"array","items":{"type":"string"}},"hardwareManufacturer":{"type":"array","items":{"type":"string"}},"hardwareModel":{"type":"array","items":{"type":"string"}},"operatingSystem":{"type":"array","items":{"type":"string"}}}},"conditionGroups":{"type":"object","properties":{"type":{"type":"string","enum":["attr","classification"]},"condition":{"type":"object","properties":{"attribute":{"type":"string"},"operator":{"type":"string","enum":["equals","contains","startswith","matches"]},"value":{"type":"string"},"attributeDictionary":{"type":"string"}}},"operator":{"type":"string","enum":["and","or"]},"conditionGroup":{"type":"array","items":{"type":"string"}}}},"usedAttributes":{"type":"array","items":{"type":"string"}}}}}},"$$ref":"#/definitions/ProfilingRules"}},"400":{"description":"Invalid request. Check response body for more details."},"500":{"description":"Internal server error. Check response body for more details."}},"__originalOperationId":"getListOfProfilingRules","method":"get","path":"/dna/intent/api/v1/endpoint-analytics/profiling-rules"}}