Import-ITGlueModuleSettings

SYNOPSIS

Imports the ITGlue BaseURI, API, & JSON configuration information to the current session

SYNTAX

Set (Default)

Import-ITGlueModuleSettings [[-ITGlueConfigPath] <string>] [[-ITGlueConfigFile] <string>]

ALIASES

This cmdlet has the following aliases,

  • None

DESCRIPTION

The Import-ITGlueModuleSettings cmdlet imports the ITGlue BaseURI, API, & JSON configuration information stored in the ITGlue configuration file to the users current session

By default the configuration file is stored in the following location: $env:USERPROFILE\Celerium.ITGlue

The ITGLUE_BASE_URI & ITGLUE_API_KEY environment variables are also supported and take precedence over the values stored in the configuration file

When no base URI is found the default base URI (https://api.itglue.com) is used

EXAMPLES

EXAMPLE 1

Import-ITGlueModuleSettings

Validates that the configuration file created with the Export-ITGlueModuleSettings cmdlet exists then imports the stored data into the current users session

The default location of the ITGlue configuration file is: $env:USERPROFILE\Celerium.ITGlue\config.psd1

EXAMPLE 2

Import-ITGlueModuleSettings -ITGlueConfigPath C:\Celerium.ITGlue -ITGlueConfigFile MyConfig.psd1

Validates that the configuration file created with the Export-ITGlueModuleSettings cmdlet exists then imports the stored data into the current users session

The location of the ITGlue configuration file in this example is: C:\Celerium.ITGlue\MyConfig.psd1

PARAMETERS

-ITGlueConfigFile

Define the name of the ITGlue configuration file

By default the configuration file is named: config.psd1

Type: System.String
DefaultValue: config.psd1
SupportsWildcards: false
Aliases:
- ITGlueConfFile
ParameterSets:
- Name: (All)
  Position: 1
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

-ITGlueConfigPath

Define the location to store the ITGlue configuration file

By default the configuration file is stored in the following location: $env:USERPROFILE\Celerium.ITGlue

Type: System.String
DefaultValue: $(Join-Path -Path $home -ChildPath $(if ($IsWindows -or $PSEdition -eq 'Desktop') {"Celerium.ITGlue"}else{".Celerium.ITGlue"}) )
SupportsWildcards: false
Aliases:
- ITGlueConfPath
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