Get-CsOnlineTelephoneNumberInventoryCities

 

Topic Last Modified: 2016-08-30

Use the Get-CsOnlineTelephoneNumberInventoryCities to retrieve the cities that support a given inventory type within a geographical area.

Get-CsOnlineTelephoneNumberInventoryCities -Area <String> -CountryOrRegion <String> -InventoryType <String> -RegionalGroup <String> [-BypassDualWrite <$true | $false>] [-CapitalOrMajorCity <String>] [-DomainController <Fqdn>] [-Force <SwitchParameter>] [-Tenant <Guid>]

The following example retrieves the cities defined as supporting "Service" inventory types in New York state.

Get-CsOnlineTelephoneNumberInventoryCities -InventoryType Service -RegionalGroup NOAM -CountryOrRegion US -Area NY

The following example retrieves the cities defined as supporting "Subscriber" inventory types in New York state.

Get-CsOnlineTelephoneNumberInventoryCities -InventoryType Subscriber -RegionalGroup NOAM -CountryOrRegion US -Area NY

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

Get-CsOnlineTelephoneNumberInventoryCities -InventoryType Service -RegionalGroup NOAM -CountryOrRegion US -Area NY

RunspaceId  : 1374aa93-75c4-4679-b765-6efc22f97563
Id          : NY
DefaultName : New York City
GeoCode     : NOAM-US-NY-NY

 

Parameter Required Type Description

Area

Required

System.String

Specifies the target geographical area for the cmdlet. To get a list of geographical codes for areas, use the Get-CsOnlineTelephoneNumberInventoryAreas cmdlet.

CountryOrRegion

Required

System.String

Specifies the target country for the cmdlet. To get a list of geographical codes for countries, use the Get-CsOnlineTelephoneNumberInventoryCities cmdlet.

InventoryType

Required

System.String

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.

RegionalGroup

Required

System.String

Specifies the target geographical region for the cmdlet. To get a list of geographical codes for regions, use the Get-CsOnlineTelephoneNumberInventoryRegions cmdlet.

BypassDualWrite

Optional

System.Boolean

PARAMVALUE: $true | $false

CapitalOrMajorCity

Optional

System.String

Specifies the target geographical city for the cmdlet. To get a list of geographical codes for cities, use the Get-CsOnlineTelephoneNumberInventoryCities cmdlet.

DomainController

Optional

Microsoft.Rtc.Management.Deploy.Fqdn

This parameter is reserved for internal Microsoft use.

Force

Optional

System.Management.Automation.SwitchParameter

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.

Tenant

Optional

System.Guid

This parameter is reserved for internal Microsoft use.

The cmdlet returns an instance, or an array of instances of the Deserialized.Microsoft.Rtc.Management.Hosted.Bvd.Types.InventoryCity object.

 
Show: