< Back

New-CentreonConnection

Mon Jan 13, 2020 12:20 am

NAME New-CentreonConnection



SYNOPSIS

Authenticate against the Rest API.





SYNTAX

New-CentreonConnection [-server] <String> [[-Credentials] <Object>] [<CommonParameters>]





DESCRIPTION





PARAMETERS

-server <String>

Specify the IP address or the Hostname of the Centreon Server.



Required? true

Position? 1

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Credentials <Object>

Specify Centreon Credentials.



Required? false

Position? 2

Default value (Get-Credential -Message "Enter centreon credentials")

Accept pipeline input? false

Accept wildcard characters? false



<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



OUTPUTS

System.Object. Returns object with server,url and token.





NOTES





https://github.com/ClissonFlorian/Centr ... ell-Module



-------------------------- EXAMPLE 1 --------------------------



PS C:\\>$Session = New-SSConnection -server 192.168.1.50













-------------------------- EXAMPLE 2 --------------------------



PS C:\\>$Credentials = Get-Credential -Message "Enter centreon credentials"



$Session = New-SSConnection -server 192.168.1.50 -Credentials $Credentials











RELATED LINKS