Add-ITGlueBaseURI
SYNOPSIS
Sets the base URI for the ITGlue API connection
SYNTAX
CustomUri (Default)
Add-ITGlueBaseURI [[-BaseURI] <string>]
DataCenter
Add-ITGlueBaseURI -DataCenter <string>
ALIASES
This cmdlet has the following aliases,
- Set-ITGlueBaseURI
DESCRIPTION
The Add-ITGlueBaseURI cmdlet sets the base URI which is used to construct the full URI for all API calls
Only the scheme, host, & path of the URL are kept, a trailing slash is removed
EXAMPLES
EXAMPLE 1
Add-ITGlueBaseURI
The base URI will use https://api.itglue.com
EXAMPLE 2
Add-ITGlueBaseURI -DataCenter EU
The base URI will use https://api.eu.itglue.com
EXAMPLE 3
'https://myapi.gateway.celerium.org' | Add-ITGlueBaseURI
The base URI is passed in from the pipeline and will use https://myapi.gateway.celerium.org
PARAMETERS
-BaseURI
Sets the base URI for the ITGlue API connection
The URL must use https
Default value: https://api.itglue.com
Type: System.String
DefaultValue: https://api.itglue.com
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: CustomUri
Position: 0
IsRequired: false
ValueFromPipeline: true
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-DataCenter
Defines the data center to use, which sets a predefined base URI
Allowed values: ‘US’, ‘EU’, ‘AU’
US = https://api.itglue.com EU = https://api.eu.itglue.com AU = https://api.au.itglue.com
Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: DataCenter
Position: Named
IsRequired: true
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.String
OUTPUTS
NOTES
N/A