Get-ITGlueRegion

SYNOPSIS

List all regions / List all regions for a particular country / Retrieve a region / Retrieve a region for a paricular country

SYNTAX

List (Default)

Get-ITGlueRegion [-FilterCountryId <long>] [-FilterIso <string>] [-FilterName <string>]
 [-PageNumber <long>] [-PageSize <long>] [-Sort <string>] [-AllResults] [-Raw]

ByCountryById

Get-ITGlueRegion [-CountryId] <long> [-Id] <long> [-Raw]

ByCountry

Get-ITGlueRegion [-CountryId] <long> [-FilterCountryId <long>] [-FilterIso <string>]
 [-FilterName <string>] [-PageNumber <long>] [-PageSize <long>] [-Sort <string>] [-AllResults]
 [-Raw]

ById

Get-ITGlueRegion [-Id] <long> [-Raw]

ALIASES

This cmdlet has the following aliases,

  • None

DESCRIPTION

Parameter set [ List ] - The Get-ITGlueRegion cmdlet invokes the GET method of the /regions endpoint (List all regions)

Returns a list of supported regions.

Example return value:

{ “data”: [ { “id”: “1”, “type”: “regions”, “attributes”: { “name”: “Alberta”, “iso”: “AB”, “country-id”: 1 } }, { “id”: “2”, “type”: “regions”, “attributes”: { “name”: “British Columbia”, “iso”: “BC”, “country-id”: 1 } }, { “id”: “3”, “type”: “regions”, “attributes”: { “name”: “Manitoba”, “iso”: “MB”, “country-id”: 1 } } ] }

Parameter set [ ByCountry ] - The Get-ITGlueRegion cmdlet invokes the GET method of the /countries/{country_id}/relationships/regions endpoint (List all regions for a particular country)

Returns a list of supported regions.

Example return value:

{ “data”: [ { “id”: “1”, “type”: “regions”, “attributes”: { “name”: “Alberta”, “iso”: “AB”, “country-id”: 1 } }, { “id”: “2”, “type”: “regions”, “attributes”: { “name”: “British Columbia”, “iso”: “BC”, “country-id”: 1 } }, { “id”: “3”, “type”: “regions”, “attributes”: { “name”: “Manitoba”, “iso”: “MB”, “country-id”: 1 } } ] }

Parameter set [ ById ] - The Get-ITGlueRegion cmdlet invokes the GET method of the /regions/{id} endpoint (Retrieve a region)

Returns the details of one of the supported regions.

Example return value:

{ “data”: { “id”: “1”, “type”: “regions”, “attributes”: { “name”: “Alberta”, “iso”: “AB”, “country-id”: 1 } } }

Parameter set [ ByCountryById ] - The Get-ITGlueRegion cmdlet invokes the GET method of the /countries/{country_id}/relationships/regions/{id} endpoint (Retrieve a region for a paricular country)

Returns the details of one of the supported regions.

Example return value:

{ “data”: { “id”: “1”, “type”: “regions”, “attributes”: { “name”: “Alberta”, “iso”: “AB”, “country-id”: 1 } } }

EXAMPLES

EXAMPLE 1

Get-ITGlueRegion

Returns the result of the /regions endpoint

EXAMPLE 2

Get-ITGlueRegion -PageNumber 2 -PageSize 10

Returns the second page of 10 items from the /regions endpoint

EXAMPLE 3

Get-ITGlueRegion -AllResults

Returns every item from the /regions endpoint by requesting every page of the results

EXAMPLE 4

Get-ITGlueRegion -CountryId 12345

Returns the result of the /countries/{country_id}/relationships/regions endpoint

EXAMPLE 5

Get-ITGlueRegion -CountryId 12345 -PageNumber 2 -PageSize 10

Returns the second page of 10 items from the /countries/{country_id}/relationships/regions endpoint

EXAMPLE 6

Get-ITGlueRegion -CountryId 12345 -AllResults

Returns every item from the /countries/{country_id}/relationships/regions endpoint by requesting every page of the results

EXAMPLE 7

Get-ITGlueRegion -Id 12345

Returns the result of the /regions/{id} endpoint

EXAMPLE 8

Get-ITGlueRegion -CountryId 12345 -Id 12345

Returns the result of the /countries/{country_id}/relationships/regions/{id} endpoint

PARAMETERS

-AllResults

Returns all items from the endpoint by requesting every page of the results

When PageSize is not defined 1000 items are requested with each page

Type: System.Management.Automation.SwitchParameter
DefaultValue: False
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: ByCountry
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
- Name: List
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

-CountryId

Only required for nested relationships route.

Type: System.Int64
DefaultValue: 0
SupportsWildcards: false
Aliases:
- country_id
ParameterSets:
- Name: ByCountryById
  Position: 0
  IsRequired: true
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: true
  ValueFromRemainingArguments: false
- Name: ByCountry
  Position: 0
  IsRequired: true
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: true
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

-FilterCountryId

Filter by country id

Type: System.Int64
DefaultValue: 0
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: ByCountry
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
- Name: List
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

-FilterIso

Filter by iso

Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: ByCountry
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
- Name: List
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

-FilterName

exact match only

Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: ByCountry
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
- Name: List
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

-Id

Defines the ID of the item

Type: System.Int64
DefaultValue: 0
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: ByCountryById
  Position: 1
  IsRequired: true
  ValueFromPipeline: true
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
- Name: ById
  Position: 0
  IsRequired: true
  ValueFromPipeline: true
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

-PageNumber

Defines the page number to return

Type: System.Int64
DefaultValue: 0
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: ByCountry
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
- Name: List
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

-PageSize

Defines the number of items to return with each page

The maximum page size is 1000

Type: System.Int64
DefaultValue: 0
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: ByCountry
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
- Name: List
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

-Raw

Returns the full API response (data, meta, links, & included) instead of only the data

Type: System.Management.Automation.SwitchParameter
DefaultValue: False
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

-Sort

Notes: To Invert order use -, eg: -name Comma separated values

Allowed values: ‘name’, ‘id’, ‘created_at’, ‘updated_at’

Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: ByCountry
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
- Name: List
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

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.

INPUTS

System.Int64

OUTPUTS

NOTES

Endpoint : GET /regions Endpoint : GET /countries/{country_id}/relationships/regions Endpoint : GET /regions/{id} Endpoint : GET /countries/{country_id}/relationships/regions/{id}