Edit

Share via


Get-CsOnlineTelephoneNumberType

Use the Get-CsOnlineTelephoneNumberType cmdlet to get the list of supported telephone number offerings in a given country or region.

Syntax

Default (Default)

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.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.