< Back
Invoke-CentreonCommand
Post
NAME Invoke-CentreonCommand
SYNOPSIS
Interact with the Centreon Objects.
SYNTAX
Invoke-CentreonCommand [-Session] <Object> [-object] <String> [-action] <String> [[-values] <String>]
[<CommonParameters>]
DESCRIPTION
PARAMETERS
-Session <Object>
Specify object get from New-CentreonCommand cmdlet.
Required? true
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters? false
-object <String>
Specify Centreon Object. (Corresponds to -a option with Centreon Clapi).
Required? true
Position? 2
Default value
Accept pipeline input? false
Accept wildcard characters? false
-action <String>
Required? true
Position? 3
Default value
Accept pipeline input? false
Accept wildcard characters? false
-values <String>
Specify string arguments splited by ";"
Required? false
Position? 4
Default value
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
NOTES
https://github.com/ClissonFlorian/Centr ... ell-Module
-------------------------- EXAMPLE 1 --------------------------
Invoke-CentreonCommand -Object <object>-action <action>
-------------------------- EXAMPLE 2 --------------------------
PS C:\\>Invoke-CentreonCommand -Object host -action show
-------------------------- EXAMPLE 3 --------------------------
PS C:\\>Invoke-CentreonCommand -Object host -action add -Values "test;Test
host;127.0.0.1;generic-host;central;Linux"
RELATED LINKS
#To get informations about the Centreon API.
https://documentation.centreon.com/docs ... index.html
https://documentation.centreon.com/docs ... index.html
SYNOPSIS
Interact with the Centreon Objects.
SYNTAX
Invoke-CentreonCommand [-Session] <Object> [-object] <String> [-action] <String> [[-values] <String>]
[<CommonParameters>]
DESCRIPTION
PARAMETERS
-Session <Object>
Specify object get from New-CentreonCommand cmdlet.
Required? true
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters? false
-object <String>
Specify Centreon Object. (Corresponds to -a option with Centreon Clapi).
Required? true
Position? 2
Default value
Accept pipeline input? false
Accept wildcard characters? false
-action <String>
Required? true
Position? 3
Default value
Accept pipeline input? false
Accept wildcard characters? false
-values <String>
Specify string arguments splited by ";"
Required? false
Position? 4
Default value
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
NOTES
https://github.com/ClissonFlorian/Centr ... ell-Module
-------------------------- EXAMPLE 1 --------------------------
Invoke-CentreonCommand -Object <object>-action <action>
-------------------------- EXAMPLE 2 --------------------------
PS C:\\>Invoke-CentreonCommand -Object host -action show
-------------------------- EXAMPLE 3 --------------------------
PS C:\\>Invoke-CentreonCommand -Object host -action add -Values "test;Test
host;127.0.0.1;generic-host;central;Linux"
RELATED LINKS
#To get informations about the Centreon API.
https://documentation.centreon.com/docs ... index.html
https://documentation.centreon.com/docs ... index.html