Get-ITGlueLocation
SYNOPSIS
List all locations in your account / List all locations for a particular organization / Retrieve a location / Retrieve a location for a particular organization
SYNTAX
List (Default)
Get-ITGlueLocation [-FilterCity <string>] [-FilterCountryId <long>] [-FilterId <long>]
[-FilterName <string>] [-FilterOrganizationId <long>] [-FilterPsaId <string>]
[-FilterPsaIntegrationType <string>] [-FilterRegionId <long>] [-Include <string>]
[-PageNumber <long>] [-PageSize <long>] [-Sort <string>] [-AllResults] [-Raw]
ByOrganizationById
Get-ITGlueLocation [-OrganizationId] <long> [-Id] <long> [-Include <string>] [-Raw]
ByOrganization
Get-ITGlueLocation [-OrganizationId] <long> [-FilterCity <string>] [-FilterCountryId <long>]
[-FilterId <long>] [-FilterName <string>] [-FilterOrganizationId <long>] [-FilterPsaId <string>]
[-FilterPsaIntegrationType <string>] [-FilterRegionId <long>] [-Include <string>]
[-PageNumber <long>] [-PageSize <long>] [-Sort <string>] [-AllResults] [-Raw]
ById
Get-ITGlueLocation [-Id] <long> [-Include <string>] [-Raw]
ALIASES
This cmdlet has the following aliases,
- None
DESCRIPTION
Parameter set [ List ] - The Get-ITGlueLocation cmdlet invokes the GET method of the /locations endpoint (List all locations in your account)
Returns a list of locations for all organizations or for a specified organization.
Example return value:
{ “data”: [ { “id”: “795”, “type”: “locations”, “attributes”: { “organization-id”: 2, “organization-name”: “Happy Frog”, “name”: “San Francisco - HQ”, “primary”: true, “address-1”: “120 Kearny Street”, “address-2”: “Unit 508”, “city”: “San Francisco”, “postal-code”: “94108”, “region-id”: 26, “region-name”: “California”, “country-id”: 84, “country-name”: “United States”, “phone”: “4152132000”, “fax”: “4152132004”, “notes”: null, “created-at”: “2016-11-08T23:02:06.000Z”, “updated-at”: “2016-11-08T23:02:06.000Z”, “formatted-phone”: “(415) 213-2000”, “formatted-fax”: “(415) 213-2004” } }, { “id”: “796”, “type”: “locations”, “attributes”: { “organization-id”: 2, “organization-name”: “Happy Frog”, “name”: “Detroit - Finance”, “primary”: false, “address-1”: “2014 E Madison Street”, “address-2”: “Ste 400”, “city”: “Detroit”, “postal-code”: “98122”, “region-id”: 102, “region-name”: “Michigan”, “country-id”: 84, “country-name”: “United States”, “phone”: “3137182000”, “fax”: “3137182002”, “notes”: null, “created-at”: “2016-11-08T23:02:06.000Z”, “updated-at”: “2016-11-08T23:02:06.000Z”, “formatted-phone”: “(313) 718-2000”, “formatted-fax”: “(313) 718-2002” } } ] }
Parameter set [ ByOrganization ] - The Get-ITGlueLocation cmdlet invokes the GET method of the /organizations/{organization_id}/relationships/locations endpoint (List all locations for a particular organization)
Returns a list of locations for all organizations or for a specified organization.
Example return value:
{ “data”: [ { “id”: “795”, “type”: “locations”, “attributes”: { “organization-id”: 2, “organization-name”: “Happy Frog”, “name”: “San Francisco - HQ”, “primary”: true, “address-1”: “120 Kearny Street”, “address-2”: “Unit 508”, “city”: “San Francisco”, “postal-code”: “94108”, “region-id”: 26, “region-name”: “California”, “country-id”: 84, “country-name”: “United States”, “phone”: “4152132000”, “fax”: “4152132004”, “notes”: null, “created-at”: “2016-11-08T23:02:06.000Z”, “updated-at”: “2016-11-08T23:02:06.000Z”, “formatted-phone”: “(415) 213-2000”, “formatted-fax”: “(415) 213-2004” } }, { “id”: “796”, “type”: “locations”, “attributes”: { “organization-id”: 2, “organization-name”: “Happy Frog”, “name”: “Detroit - Finance”, “primary”: false, “address-1”: “2014 E Madison Street”, “address-2”: “Ste 400”, “city”: “Detroit”, “postal-code”: “98122”, “region-id”: 102, “region-name”: “Michigan”, “country-id”: 84, “country-name”: “United States”, “phone”: “3137182000”, “fax”: “3137182002”, “notes”: null, “created-at”: “2016-11-08T23:02:06.000Z”, “updated-at”: “2016-11-08T23:02:06.000Z”, “formatted-phone”: “(313) 718-2000”, “formatted-fax”: “(313) 718-2002” } } ] }
Parameter set [ ById ] - The Get-ITGlueLocation cmdlet invokes the GET method of the /locations/{id} endpoint (Retrieve a location)
Returns the details of an existing location.
Example return value:
{ “data”: { “id”: “795”, “type”: “locations”, “attributes”: { “organization-id”: 2, “organization-name”: “Happy Frog”, “name”: “San Francisco - HQ”, “primary”: true, “address-1”: “120 Kearny Street”, “address-2”: “Unit 508”, “city”: “San Francisco”, “postal-code”: “94108”, “region-id”: 26, “region-name”: “California”, “country-id”: 84, “country-name”: “United States”, “phone”: “4152132000”, “fax”: “4152132004”, “notes”: null, “created-at”: “2016-11-08T23:02:06.000Z”, “updated-at”: “2016-11-08T23:02:06.000Z”, “formatted-phone”: “(415) 213-2000”, “formatted-fax”: “(415) 213-2004” } } }
Parameter set [ ByOrganizationById ] - The Get-ITGlueLocation cmdlet invokes the GET method of the /organizations/{organization_id}/relationships/locations/{id} endpoint (Retrieve a location for a particular organization)
Returns the details of an existing location.
Example return value:
{ “data”: { “id”: “795”, “type”: “locations”, “attributes”: { “organization-id”: 2, “organization-name”: “Happy Frog”, “name”: “San Francisco - HQ”, “primary”: true, “address-1”: “120 Kearny Street”, “address-2”: “Unit 508”, “city”: “San Francisco”, “postal-code”: “94108”, “region-id”: 26, “region-name”: “California”, “country-id”: 84, “country-name”: “United States”, “phone”: “4152132000”, “fax”: “4152132004”, “notes”: null, “created-at”: “2016-11-08T23:02:06.000Z”, “updated-at”: “2016-11-08T23:02:06.000Z”, “formatted-phone”: “(415) 213-2000”, “formatted-fax”: “(415) 213-2004” } } }
EXAMPLES
EXAMPLE 1
Get-ITGlueLocation
Returns the result of the /locations endpoint
EXAMPLE 2
Get-ITGlueLocation -PageNumber 2 -PageSize 10
Returns the second page of 10 items from the /locations endpoint
EXAMPLE 3
Get-ITGlueLocation -AllResults
Returns every item from the /locations endpoint by requesting every page of the results
EXAMPLE 4
Get-ITGlueLocation -OrganizationId 12345
Returns the result of the /organizations/{organization_id}/relationships/locations endpoint
EXAMPLE 5
Get-ITGlueLocation -OrganizationId 12345 -PageNumber 2 -PageSize 10
Returns the second page of 10 items from the /organizations/{organization_id}/relationships/locations endpoint
EXAMPLE 6
Get-ITGlueLocation -OrganizationId 12345 -AllResults
Returns every item from the /organizations/{organization_id}/relationships/locations endpoint by requesting every page of the results
EXAMPLE 7
Get-ITGlueLocation -Id 12345
Returns the result of the /locations/{id} endpoint
EXAMPLE 8
Get-ITGlueLocation -OrganizationId 12345 -Id 12345
Returns the result of the /organizations/{organization_id}/relationships/locations/{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: ByOrganization
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: ''
-FilterCity
Filter by city
Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: ByOrganization
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: ''
-FilterCountryId
Filter by country id
Type: System.Int64
DefaultValue: 0
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: ByOrganization
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: ''
-FilterId
Filter by id
Type: System.Int64
DefaultValue: 0
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: ByOrganization
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
Filter by name
Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: ByOrganization
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: ''
-FilterOrganizationId
Filter by organization id
Type: System.Int64
DefaultValue: 0
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: ByOrganization
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: ''
-FilterPsaId
Notes: This must be accompanied by the filter for psa_integration_type
Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: ByOrganization
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: ''
-FilterPsaIntegrationType
Filter by psa integration type
Allowed values: ‘manage’, ‘autotask’, ‘tigerpaw’, ‘kaseya-bms’, ‘pulseway-psa’, ‘vorex’
Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: ByOrganization
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: ''
-FilterRegionId
Filter by region id
Type: System.Int64
DefaultValue: 0
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: ByOrganization
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: ByOrganizationById
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: ''
-Include
Notes: Comma separated values
Allowed values: ‘adapters_resources’, ‘attachments’, ‘passwords’, ‘user_resource_accesses’, ‘group_resource_accesses’
Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: ByOrganizationById
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
- Name: ById
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
- Name: ByOrganization
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: ''
-OrganizationId
Only required for nested relationships route.
Notes: Must be a valid organization ID in your account.
Type: System.Int64
DefaultValue: 0
SupportsWildcards: false
Aliases:
- organization_id
ParameterSets:
- Name: ByOrganizationById
Position: 0
IsRequired: true
ValueFromPipeline: false
ValueFromPipelineByPropertyName: true
ValueFromRemainingArguments: false
- Name: ByOrganization
Position: 0
IsRequired: true
ValueFromPipeline: false
ValueFromPipelineByPropertyName: true
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-PageNumber
Defines the page number to return
Type: System.Int64
DefaultValue: 0
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: ByOrganization
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: ByOrganization
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’, ‘primary’, ‘created_at’, ‘updated_at’
Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: ByOrganization
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 /locations Endpoint : GET /organizations/{organization_id}/relationships/locations Endpoint : GET /locations/{id} Endpoint : GET /organizations/{organization_id}/relationships/locations/{id}