Get-CsOnlineTelephoneNumberInventoryCountries

Use the `Get-CsOnlineTelephoneNumberInventoryCountries` cmdlet to retrieve a list of countries with telephone number inventories by specified region and telephone number inventory types.

Syntax

Get-CsOnlineTelephoneNumberInventoryCountries
   [-Tenant <Guid>]
   -RegionalGroup <String>
   [-CountryOrRegion <String>]
   -InventoryType <String>
   [-DomainController <Fqdn>]
   [-Force]
   [<CommonParameters>]

Description

Following is an example of the Get-CsOnlineTelephoneNumberInventoryCountries cmdlet's console output.

RunspaceId : af39ca40-06a7-473b-8963-668865d15e87

Id : US

DefaultName : United States

Areas : {}

Examples

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

Get-CsOnlineTelephoneNumberInventoryCountries -InventoryType Service -RegionalGroup NOAM

This example returns the countries in the north American region that contain service type telephone numbers.

Parameters

-AsJob

Indicates that this cmdlet runs as a background job.

When you specify the AsJob parameter, the command immediately returns an object that represents the background job. You can continue to work in the session while the job finishes. The job is created on the local computer and the results from the Skype for Business Online session are automatically returned to the local computer. To get the job results, use the Receive-Job cmdlet.

For more information about Windows PowerShell background jobs, see about_Jobs and about_Remote_Jobs.

Type:SwitchParameter
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:Skype for Business Online
-CountryOrRegion

Specifies the target country for the cmdlet.

Type:String
Aliases:Country
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:Skype for Business Online
-DomainController

This parameter is reserved for internal Microsoft use.

Type:Fqdn
Aliases:DC
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:Skype for Business Online
-Force

The Force switch specifies whether to suppress warning and confirmation messages. It can be useful in scripting to suppress interactive prompts. If the Force switch isn't provided in the command, you're prompted for administrative input if required.

Type:SwitchParameter
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:Skype for Business Online
-InventoryType

Specifies the target telephone number type for the cmdlet. Acceptable values are:

"Service" for numbers assigned to conferencing support.

"Subscriber" for numbers supporting public switched telephone network (PSTN) functions.

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:Skype for Business Online
-RegionalGroup

Specifies the target geographical region for the cmdlet.

Type:String
Aliases:Region
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:Skype for Business Online
-Tenant

This parameter is reserved for internal Microsoft use.

Type:Guid
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:Skype for Business Online

Inputs

None

Outputs

Deserialized.Microsoft.Skype.EnterpriseVoice.BVDClient.Country

Instance or array of the object.