Cisco Cisco Prime Network Services Controller 3.0 Guide Du Développeur
Page 23
OL-28369-01
●
The inDn attribute specifies the named object from which the child objects are retrieved.
●
The classId attribute specifies the name of the child object class to return.
●
The authentication cookie is received from aaaLogin or aaaRefresh.
●
The inHierarchical attribute (default = false), if true, specifies that the results are hierarchical.
●
The enumerated values, class IDs, and bit masks are displayed as strings.
configResolveParent
When resolving the parent object of an object, ensure the following:
●
The method retrieves the parent object of a specified DN.
●
The dn attribute is the DN of the child object.
●
The authentication cookie is received from aaaLogin or aaaRefresh.
●
The inHierarchical attribute (default = false), if true, specifies that the results are hierarchical.
●
The enumerated values, class IDs, and bit masks are displayed as strings.
See the example request/response in
configScope
Limiting the scope of a query allows for a finer grained, less resource-intensive request. The query can be
anchored at a point in the management information tree other than the root.
anchored at a point in the management information tree other than the root.
When setting the query scope, ensure the following:
●
The method sets the root (scope) of the query to a specified DN and returns objects of the specified class
type.
type.
●
The dn is the named object from which the query is scoped.
●
The inClass attribute specifies the name of the object class to return.
Note If a class name is not specified, the query acts the same as configResolveDn.
●
The authentication cookie is received from aaaLogin or aaaRefresh.
●
The inHierarchical attribute (default = false), if true, specifies that the results are hierarchical.
●
The enumerated values, class IDs, and bit masks are displayed as strings.
See the example request/response in
Query Methods for Policies
Policies are available in different organizations. In a large system with many policies, querying all policies
simultaneously is resource intensive. Instead, identify the type of policy and the parent organization to which the
policies are attached.
simultaneously is resource intensive. Instead, identify the type of policy and the parent organization to which the
policies are attached.
The following code sample shows a query for rule-based policies:
<configScope
cookie="<real_cookie>"
inHierarchical="false"
dn="org-root/org-tenant_d3338"
inClass="policyRuleBasedPolicy" />
inHierarchical="false"
dn="org-root/org-tenant_d3338"
inClass="policyRuleBasedPolicy" />
The response is as follows:
<configScope
dn="org-root/org-tenant_d3338"
cookie="<real_cookie>"
commCookie="7/13/0/24e7"
srcExtSys="10.193.34.70"
destExtSys="10.193.34.70"
srcSvc="sam_extXMLApi"
destSvc="policy-mgr_dme"
cookie="<real_cookie>"
commCookie="7/13/0/24e7"
srcExtSys="10.193.34.70"
destExtSys="10.193.34.70"
srcSvc="sam_extXMLApi"
destSvc="policy-mgr_dme"