Modifier

Partager via


Get-CsOnlineTelephoneNumberType

Use the Get-CsOnlineTelephoneNumberType cmdlet to get the list of supported telephone number offerings in a given country or region. The telephone numbers can then be used to set up calling features for users and services in your organization.

Syntax

Get-CsOnlineTelephoneNumberType
   [-Country] <CountryCode>
   [<CommonParameters>]

Description

Use the Get-CsOnlineTelephoneNumberType cmdlet to get the list of supported telephone number offerings in a given country or region. The NumberType field in the response is used to indicate the capabilities of a given offering. The telephone numbers can then be used to set up calling features for users and services in your organization.

Examples

-------------------------- Example 1 --------------------------

PS C:\> Get-CsOnlineTelephoneNumberType -Country US

AllowedSearchType    : {CivicAddress, Prefix}
AreaCode             :
AvailabilityInfo     : Microsoft.Teams.ConfigAPI.Cmdlets.Generated.Models.AvailabilityInfo
Id                   : 470316bd-815e-459d-80e7-d7332f00fcb9
NumberType           : UserSubscriber
OfferModel           : DirectStock
PrefixSearchOption   : Microsoft.Teams.ConfigAPI.Cmdlets.Generated.Models.PrefixSearchOptions
RequiresCivicAddress : True

AllowedSearchType    : {CivicAddress, Prefix}
AreaCode             :
AvailabilityInfo     : Microsoft.Teams.ConfigAPI.Cmdlets.Generated.Models.AvailabilityInfo
Id                   : 25444938-a335-4a85-b64d-d445b45f04e3
NumberType           : UserSubscriberVoiceAndSms
OfferModel           : DirectStock
PrefixSearchOption   : Microsoft.Teams.ConfigAPI.Cmdlets.Generated.Models.PrefixSearchOptions
RequiresCivicAddress : True

This example returns the list of supported number offerings in United States.

-------------------------- Example 2 --------------------------

PS C:\> Get-CsOnlineTelephoneNumberType -Country CA | ft NumberType

NumberType
----------
UserSubscriber
UserSubscriberVoiceAndSms
ConferenceToll
ConferenceTollFree
CallQueueToll
CallQueueTollFree
AutoAttendantToll
AutoAttendantTollFree

This example returns the list of supported NumberTypes in Canada.

Parameters

-Country

Specifies the country or region that the number offerings belong. The country code uses ISO 3166 standard and the list of supported countries or regions can be found by calling Get-CsOnlineTelephoneNumberCountry.

Type:String
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False