Cisco Cisco Prime IP Express 8.3 Technische Referenzen

Seite von 1286
Resource: Lease
This resource is used to manage the 
 class of Network Registrar objects.
A DHCP lease.
Functions
Get Lease Object List
Gets the list of Network Registrar Lease objects.
Request:
GET /web-services/rest/resource/Lease 
Query Parameters 
  vpnId: the VPN identifier for the address, if applicable 
Lease 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. If
the vpnId parameter is not specified, the default VPN will be used for the request.
Response:
Returns the list of Lease objects
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.
Get Lease Object By Name
Gets the Network Registrar Lease object by name.
Request:
GET /web-services/rest/resource/Lease/{objectName}
objectName
: the string representation of the Lease address property. Use the '-' character in place
of the '/' character, if present in the name.
Response:
Returns the Lease object
Content-Type: application/xml, application/json
Get Next Available Lease Object
Creates a Network Registrar Lease object with the next available address.
Request:
POST /web-services/rest/resource/Lease
Accept: application/x-www-form-urlencoded 
Action Parameters 
  clientId: the client MAC address 
  address: the parent subnet or related address 
  vpnId: the VPN identifier for the address, if applicable 
  clientClass: the client class required for the address, if applicable 
  scope: the parent scope name (if specified, address parameters are ignored) 
  hostName: the client host name; when set, DNS entries will be created for the assigned address 
  domainName: the domain name for the client host name 
The clientId parameter and parent criteria are required for this action.
Response:
Returns the location of the new Lease object
Content: none
Release Lease Object