PhoneNumbersClient.CreateOrUpdateReservation Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Updates the reservation with the given ID if it exists; or creates a new one otherwise. The response will be the updated state of the reservation. Updating a reservation will extend the expiration time of the reservation to 15 minutes after the last change, up to a maximum of 2 hours from creation time.
public virtual Azure.Response<Azure.Communication.PhoneNumbers.PhoneNumbersReservation> CreateOrUpdateReservation(Azure.Communication.PhoneNumbers.CreateOrUpdateReservationOptions options, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdateReservation : Azure.Communication.PhoneNumbers.CreateOrUpdateReservationOptions * System.Threading.CancellationToken -> Azure.Response<Azure.Communication.PhoneNumbers.PhoneNumbersReservation>
override this.CreateOrUpdateReservation : Azure.Communication.PhoneNumbers.CreateOrUpdateReservationOptions * System.Threading.CancellationToken -> Azure.Response<Azure.Communication.PhoneNumbers.PhoneNumbersReservation>
Public Overridable Function CreateOrUpdateReservation (options As CreateOrUpdateReservationOptions, Optional cancellationToken As CancellationToken = Nothing) As Response(Of PhoneNumbersReservation)
Parameters
- options
- CreateOrUpdateReservationOptions
An object describing the parameters for the operation.
- cancellationToken
- CancellationToken
The cancellation token to use.
Returns
Remarks
Partial success is possible, in which case the result will contain phone numbers with error status.