Skip to content

Commit 585e3db

Browse files
adrianwellsCalebAlbers
adrianwells
authored andcommitted
Fix function Remove-ITGlueBaseURI in BaseURI.ps1 (#36)
* Add Support for Passwords API With the release of API v1.8.0, a new Passwords endpoint was added. This update uncovers that endpoint in the PowerShell module with the addition of the following functions: - `New-ITGluePasswords` - `Get-ITGluePasswords` - `Set-ITGluePasswords` Release notes for the Passwords api are available [here](https://kb.itglue.com/hc/en-us/articles/360001797531-Release-Note s-1-8-0-API). —————— The Module Version was also updated to reflect the API version it supports. * Add support for EU API endpoints API endpoints have been added for deployments in the EU datacenter. This update uncovers the ability to use the EU API links by use of a `-data_center` (or `-dc`) option on the `Add-ITGlueBaseURI` function. This optional argument takes `EU` and `US` as options, however the US datacenter is still kept as the default even if no arguments are given. — HTTPS is also set by default for both the US and EU data centers. * Added enhanced filtering capability Most endpoints (especially Index/Show, and Update) now allow for expanded filtering capabilities. This updated exposes those new capabilities as command parameters. * Fixed Configurations Return Data Fixed a bug that was pointed out that caused incorrect data to be returned from the `Get-ITGlueConfigurations’ function. * Compatability Update All resources now match the current API spec given at https://api.itglue.com/developer. This includes enhanced bulk update, bulk destroy, and filtering capabilities. Thanks to @TheMattCollins0 for changes to make adding an API key via command line easier. * Added file to resolve Import-Module HRESULT: 0x8013104 * Sync'ing master with 2.0.0 release * Fix to remove variable correclty and minor spacing edits
1 parent c63427b commit 585e3db

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

ITGlueAPI/Internal/BaseURI.ps1

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,11 @@ function Add-ITGlueBaseURI {
2020
Default {}
2121
}
2222

23-
24-
Set-Variable -Name "ITGlue_Base_URI" -Value $base_uri -Option ReadOnly -Scope global -Force
23+
Set-Variable -Name "ITGlue_Base_URI" -Value $base_uri -Option ReadOnly -Scope global -Force
2524
}
2625

27-
2826
function Remove-ITGlueBaseURI {
29-
Remove-Variable -Name "ITGlue_Base_URI" -Force
27+
Remove-Variable -Name "ITGlue_Base_URI" -Scope global -Force
3028
}
3129

3230
function Get-ITGlueBaseURI {

0 commit comments

Comments
 (0)