Test-ITGlueAPIKey
SYNOPSIS
Test the ITGlue API key
SYNTAX
Test (Default)
Test-ITGlueAPIKey [[-BaseUri] <string>]
ALIASES
This cmdlet has the following aliases,
- None
DESCRIPTION
The Test-ITGlueAPIKey cmdlet tests the base URI & API key that are defined by the Add-ITGlueBaseURI & Add-ITGlueAPIKey cmdlets
Helpful when needing to validate general functionality or when using RMM deployment tools
The test makes a single GET request to the /regions endpoint that only asks for one region
A 200 status code means the base URI & API key are valid. A 401 status code means the API key was not accepted & a 403 status code means the key is valid but is not allowed to read the resource
EXAMPLES
EXAMPLE 1
Test-ITGlueAPIKey
Tests the base URI & API key that are defined by the Add-ITGlueBaseURI & Add-ITGlueAPIKey cmdlets
EXAMPLE 2
Test-ITGlueAPIKey -BaseUri https://myapi.gateway.celerium.org
Tests the defined base URI & the API key that was defined by the Add-ITGlueAPIKey cmdlet
The full test uri in this example is: https://myapi.gateway.celerium.org/regions?page[size]=1
PARAMETERS
-BaseUri
Define the base URI for the ITGlue API connection using ITGlue’s URI or a custom URI
By default the value used is the one defined by the Add-ITGlueBaseURI function
Type: System.String
DefaultValue: $ITGlueModuleBaseURI
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: 0
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
OUTPUTS
NOTES
N/A