Cisco Cisco Prime IP Express 8.3 Referencia técnica
Resource: Policy
This resource is used to manage the
class of Network Registrar objects.
A DHCP Policy object. The policy defines the set of DHCP Options and server policy settings that should be applied
when granting a lease.
when granting a lease.
Functions
Get Policy Object List
Gets the list of Network Registrar Policy objects.
Request:
GET /web-services/rest/resource/Policy
Policy string properties may be specified as query parameters to filter the return list. Filter values
can specify a regular expression or exact match. Use an empty string to test for unset values.
can specify a regular expression or exact match. Use an empty string to test for unset values.
Response:
Returns the list of Policy objects
Content-Type: application/xml, application/json
Content-Type: application/xml, application/json
If the list exceeds the maximum return list size, the next link is provided to get the next set of
objects.
objects.
Get Policy Object By Name
Gets the Network Registrar Policy object by name.
Request:
GET /web-services/rest/resource/Policy/{objectName}
objectName: the string representation of the Policy name property
objectName: the string representation of the Policy name property
Response:
Returns the Policy object
Content-Type: application/xml, application/json
Content-Type: application/xml, application/json
Put Policy Object By Name
Modifies or creates the specified Network Registrar Policy object.
Request:
PUT /web-services/rest/resource/Policy/{objectName}
Accept: application/xml, application/json
objectName: the string representation of the Policy name property
Query Parameters
action: extra action to perform; value can be 'push'
Accept: application/xml, application/json
objectName: the string representation of the Policy name property
Query Parameters
action: extra action to perform; value can be 'push'
When connected to a regional server, the optional push action will push the object to the
specified local clusters after changes are made. If the input object is null, or identical to the
currently saved object, only the push action will be performed.
Action Parameters
localCluster: the cluster or pair name; use repeated parameters or a comma-separated list to
specify a multiple entries
mode: the sync mode; value can be 'ensure', 'replace', or 'exact'
specified local clusters after changes are made. If the input object is null, or identical to the
currently saved object, only the push action will be performed.
Action Parameters
localCluster: the cluster or pair name; use repeated parameters or a comma-separated list to
specify a multiple entries
mode: the sync mode; value can be 'ensure', 'replace', or 'exact'
At least one local cluster or pair must be specified. By default, changes will be made in 'replace'
mode.
mode.
Response:
Returns the location of the Policy object, if created
Content: none
Content: none
Create Policy Object