< Back
Set-GlpiToolsInitSession
Post
NAME Set-GlpiToolsInitSession
SYNOPSIS
Function which init API session.
SYNTAX
Set-GlpiToolsInitSession [<CommonParameters>]
DESCRIPTION
Function gets nesessery information from Config file, then initialize session, and return object with
session_token property.
PARAMETERS
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
None, inside script Function uses Get-GlpiToolsConfig to get data from Config.
OUTPUTS
SessionToken parameter
NOTES
PSP 12/2018
-------------------------- EXAMPLE 1 --------------------------
PS C:\\Users\\Wojtek>Set-GlpiToolsInitSession
Run command like that and you will initiate session with API GLPI
RELATED LINKS
SYNOPSIS
Function which init API session.
SYNTAX
Set-GlpiToolsInitSession [<CommonParameters>]
DESCRIPTION
Function gets nesessery information from Config file, then initialize session, and return object with
session_token property.
PARAMETERS
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
None, inside script Function uses Get-GlpiToolsConfig to get data from Config.
OUTPUTS
SessionToken parameter
NOTES
PSP 12/2018
-------------------------- EXAMPLE 1 --------------------------
PS C:\\Users\\Wojtek>Set-GlpiToolsInitSession
Run command like that and you will initiate session with API GLPI
RELATED LINKS