This Powershell module contains a set of functions for connecting and talking to a 3CX V20+ System via the REST-API.
To install the module, you can use the following command:
Install-Module -Name 3CX
https://www.powershellgallery.com/packages/3CX/
Once the module is installed, you can import it using the Import-Module
cmdlet:
Import-Module -Name 3CX
$cred = Get-Credential
Connect-3CX -Credential $cred -APIHost "my.3cx.de"
Get-3CXSystemHealth | ft
$cred = Get-Credential
Connect-3CX -Credential $cred -APIHost "my.3cx.de"
Get-3CXResult -Endpoint "/xapi/v1/SystemStatus" | ft
The authentication is handled by Get-3CXResult
If you would like to contribute to this project, feel free to submit a pull request or a issue.
This project is licensed under the MIT License.
Connect-3CX
Get-3CXActiveCalls
Get-3CXEventLog
Get-3CXResult
Get-3CXSIPDevice
Get-3CXSystemHealth
Get-3CXSystemStatus
Get-3CXUser
Get-3CXVersion