PhoneNumbersClient Class

Definition

The Azure Communication Services phone numbers client.

public class PhoneNumbersClient
type PhoneNumbersClient = class
Public Class PhoneNumbersClient
Inheritance
PhoneNumbersClient

Constructors

PhoneNumbersClient()

Initializes a new instance of PhoneNumbersClient for mocking.

PhoneNumbersClient(String, PhoneNumbersClientOptions)

Initializes a phone numbers client with an Azure resource connection string and client options.

PhoneNumbersClient(String)

Initializes a phone numbers client with an Azure resource connection string and client options.

PhoneNumbersClient(Uri, AzureKeyCredential, PhoneNumbersClientOptions)

Initializes a new instance of PhoneNumbersClient.

PhoneNumbersClient(Uri, TokenCredential, PhoneNumbersClientOptions)

Initializes a phone numbers client with a token credential.

Methods

GetAvailableAreaCodesGeographic(String, PhoneNumberAssignmentType, String, String, CancellationToken)

Lists the available area codes within a given country and locality.

GetAvailableAreaCodesGeographicAsync(String, PhoneNumberAssignmentType, String, String, CancellationToken)

Lists the available area codes within a given country and locality.

GetAvailableAreaCodesTollFree(String, CancellationToken)

Lists the available area codes within a given country and locality.

GetAvailableAreaCodesTollFreeAsync(String, CancellationToken)

Lists the available area codes within a given country and locality.

GetAvailableCountries(CancellationToken)

Lists the available countries from which to purchase phone numbers.

GetAvailableCountriesAsync(CancellationToken)

Lists the available countries from which to purchase phone numbers.

GetAvailableLocalities(String, String, CancellationToken)

Lists the available localities (e.g. city or town) in the given country from which to purchase phone numbers.

GetAvailableLocalitiesAsync(String, String, CancellationToken)

Lists the available localities (e.g. city or town) in the given country from which to purchase phone numbers.

GetAvailableOfferings(String, Nullable<PhoneNumberType>, Nullable<PhoneNumberAssignmentType>, CancellationToken)

Lists the available offerings in the given country.

GetAvailableOfferingsAsync(String, Nullable<PhoneNumberType>, Nullable<PhoneNumberAssignmentType>, CancellationToken)

Lists the available offerings in the given country.

GetPhoneNumberSearchResult(String, CancellationToken)

Retrieve the search result details.

GetPhoneNumberSearchResultAsync(String, CancellationToken)

Retrieve the search result details.

GetPurchasedPhoneNumber(String, CancellationToken)

Gets the details of the given purchased phone number.

GetPurchasedPhoneNumberAsync(String, CancellationToken)

Gets the details of the given purchased phone number.

GetPurchasedPhoneNumbers(CancellationToken)

Gets the list of all purchased phone numbers.

GetPurchasedPhoneNumbersAsync(CancellationToken)

Gets the list of all purchased phone numbers.

SearchOperatorInformation(IEnumerable<String>, OperatorInformationOptions, CancellationToken)

Search for operator information about specified phone numbers.

SearchOperatorInformationAsync(IEnumerable<String>, OperatorInformationOptions, CancellationToken)

Search for operator information about specified phone numbers.

StartPurchasePhoneNumbers(String, CancellationToken)

Purchases phone numbers.

StartPurchasePhoneNumbersAsync(String, CancellationToken)

Purchases phone numbers.

StartReleasePhoneNumber(String, CancellationToken)

Releases an purchased phone number.

StartReleasePhoneNumberAsync(String, CancellationToken)

Releases an purchased phone number.

StartSearchAvailablePhoneNumbers(String, PhoneNumberType, PhoneNumberAssignmentType, PhoneNumberCapabilities, PhoneNumberSearchOptions, CancellationToken)

Search for available phone numbers to purchase.

StartSearchAvailablePhoneNumbersAsync(String, PhoneNumberType, PhoneNumberAssignmentType, PhoneNumberCapabilities, PhoneNumberSearchOptions, CancellationToken)

Search for available phone numbers to purchase.

StartUpdateCapabilities(String, Nullable<PhoneNumberCapabilityType>, Nullable<PhoneNumberCapabilityType>, CancellationToken)

Updates the capabilities of a phone number.

StartUpdateCapabilitiesAsync(String, Nullable<PhoneNumberCapabilityType>, Nullable<PhoneNumberCapabilityType>, CancellationToken)

Updates the capabilities of a phone number.

Applies to