addIpRangeReservation()
SubscriptionIpRange addIpRangeReservation(string usn, string reservationId)
This method is used to add an IP range which was reserved through the Number Pools system to a given subscription. No IP range information is necessary as the information will be retrieved from the Number Pools system.
Parameters
- usn
- Format: string
- reservationId
- Format: string
Example: Request an IP range reservation
This example shows a request for an IP range reservation for subscription 1000120231.
usn: 1000120231
reservationId: 4CDD92B5-4F6B-4F17-B8AD-FA0706FB91E7
Results
This method returns a SubscriptionIpRange XML document containing information about the IP range reservation. After the method returns successfully, the subscription will have created a link to the reserved IP range and will have updated its set of IP ranges using the reserved IP range's details.
Smile emits the SubscriptionIpRangesUpdated message when the task is complete.
Example: A returned SubscriptionIpRange XML document
This example shows a SubscriptionIpRange XML document containing details of the IP range reservation for the given reservation ID.
<SubscriptionIpRange>
<SubscritpionIpRangeId>C3AFD146-8ECB-4250-A770-F8ABB4C45D8D</SubscritpionIpRangeId>
<FromAddress>203.132.4.0</FromAddress>
<ToAddress>203.132.4.255</ToAddress>
<PoolReservationLink>
<LinkId>6F91A091-8DCC-4D77-B810-DFB95DFED649</LinkId>
<LinkType>Allocation</LinkType>
<Reservation>
<ReservationId>4CDD92B5-4F6B-4F17-B8AD-FA0706FB91E7</ReservationId>
<Start>203.132.4.0</Start>
<End>203.132.4.255</End>
<PoolType>IP</PoolType>
</Reservation>
</PoolReservationLink>
</SubscriptionIpRange>
Faults
NoSuchItemExceptionThis fault is returned when the subscription or reservation is not found.
InvalidRequestExceptionThis fault is returned when the request is invalid.
Java client syntax
java -cp build/smilewsv2-client.jar [options]
com.inomial.smile.client.v2.examples.AddIpRangeReservation usn reservationId
- usn
- Purpose: Specifies the USN of the subscription to which to add the reservation.
- reservationId
- Purpose: Specifies a reservation ID from the reservation system.