All URIs are relative to /api/v1
Method | HTTP request | Description |
---|---|---|
Invoke-GroAdminCheckFormat | GET /chkFormat | checkFormat |
Invoke-GroAdminDeleteMailq | POST /system/mailq/delete | deleteMailq |
Clear-GroAdminMailq | POST /system/mailq/flush | flushMailq |
Get-GroAdminAbout | GET /about | getAbout |
Get-GroAdminMailq | GET /system/mailq | getMailq |
Get-GroAdminProfile | GET /profile | getProfile |
Get-GroAdminStatus | GET /status | getStatus |
Get-GroAdminUserDomains | GET /domains | getUserDomains |
Submit-GroAdminLogin | POST /login | postLogin |
Submit-GroAdminRequeue | POST /system/mailq/requeue | postRequeue |
Send-GroAdminPasswd | PUT /passwd | putPasswd |
Invoke-GroAdminRemoteCLI | POST /system/cli | remoteCLI |
Sync-GroAdminTop | GET /system/sync/top | syncTop |
ChkFormatResponse Invoke-GroAdminCheckFormat
[-Domain]
[-Email]
checkFormat
Check format of input
$Domain = "MyDomain" # String | Check format of domain name (optional)
$Email = "MyEmail" # String | Check format of e-mail address (optional)
# checkFormat
try {
$Result = Invoke-GroAdminCheckFormat -Domain $Domain -Email $Email
} catch {
Write-Host ("Exception occurred when calling Invoke-GroAdminCheckFormat: {0}" -f ($_.ErrorDetails | ConvertFrom-Json))
Write-Host ("Response headers: {0}" -f ($_.Exception.Response.Headers | ConvertTo-Json))
}
Name | Type | Description | Notes |
---|---|---|---|
Domain | String | Check format of domain name | [optional] |
String | Check format of e-mail address | [optional] |
ChkFormatResponse (PSCustomObject)
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
void Invoke-GroAdminDeleteMailq
[-XCsrfToken]
[-Queue]
deleteMailq
Delete entries from postfix mail queue
$XCsrfToken = "MyXCsrfToken" # String | CSRF Token (optional)
$Queue = "MyQueue" # String | Comma separated list of postfix queue IDs (optional) (default to "ALL")
# deleteMailq
try {
$Result = Invoke-GroAdminDeleteMailq -XCsrfToken $XCsrfToken -Queue $Queue
} catch {
Write-Host ("Exception occurred when calling Invoke-GroAdminDeleteMailq: {0}" -f ($_.ErrorDetails | ConvertFrom-Json))
Write-Host ("Response headers: {0}" -f ($_.Exception.Response.Headers | ConvertTo-Json))
}
Name | Type | Description | Notes |
---|---|---|---|
XCsrfToken | String | CSRF Token | [optional] |
Queue | String | Comma separated list of postfix queue IDs | [optional] [default to "ALL"] |
void (empty response body)
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
void Clear-GroAdminMailq
[-Queue]
[-XCsrfToken]
flushMailq
Flush postfix mail queue
$Queue = "MyQueue" # String | Postfix queue ID
$XCsrfToken = "MyXCsrfToken" # String | CSRF Token (optional)
# flushMailq
try {
$Result = Clear-GroAdminMailq -Queue $Queue -XCsrfToken $XCsrfToken
} catch {
Write-Host ("Exception occurred when calling Clear-GroAdminMailq: {0}" -f ($_.ErrorDetails | ConvertFrom-Json))
Write-Host ("Response headers: {0}" -f ($_.Exception.Response.Headers | ConvertTo-Json))
}
Name | Type | Description | Notes |
---|---|---|---|
Queue | String | Postfix queue ID | |
XCsrfToken | String | CSRF Token | [optional] |
void (empty response body)
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
AboutResponse Get-GroAdminAbout
getAbout
Get general information about the backend
# getAbout
try {
$Result = Get-GroAdminAbout
} catch {
Write-Host ("Exception occurred when calling Get-GroAdminAbout: {0}" -f ($_.ErrorDetails | ConvertFrom-Json))
Write-Host ("Response headers: {0}" -f ($_.Exception.Response.Headers | ConvertTo-Json))
}
This endpoint does not need any parameter.
AboutResponse (PSCustomObject)
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
SystemMailqResponse Get-GroAdminMailq
getMailq
Retrieve mailq output
# getMailq
try {
$Result = Get-GroAdminMailq
} catch {
Write-Host ("Exception occurred when calling Get-GroAdminMailq: {0}" -f ($_.ErrorDetails | ConvertFrom-Json))
Write-Host ("Response headers: {0}" -f ($_.Exception.Response.Headers | ConvertTo-Json))
}
This endpoint does not need any parameter.
SystemMailqResponse (PSCustomObject)
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ProfileResponse Get-GroAdminProfile
getProfile
Get information about currently logged in user
# getProfile
try {
$Result = Get-GroAdminProfile
} catch {
Write-Host ("Exception occurred when calling Get-GroAdminProfile: {0}" -f ($_.ErrorDetails | ConvertFrom-Json))
Write-Host ("Response headers: {0}" -f ($_.Exception.Response.Headers | ConvertTo-Json))
}
This endpoint does not need any parameter.
ProfileResponse (PSCustomObject)
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
StatusResponse Get-GroAdminStatus
getStatus
Check API connectivity and status
# getStatus
try {
$Result = Get-GroAdminStatus
} catch {
Write-Host ("Exception occurred when calling Get-GroAdminStatus: {0}" -f ($_.ErrorDetails | ConvertFrom-Json))
Write-Host ("Response headers: {0}" -f ($_.Exception.Response.Headers | ConvertTo-Json))
}
This endpoint does not need any parameter.
StatusResponse (PSCustomObject)
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
DomainsResponse Get-GroAdminUserDomains
getUserDomains
Get list of domains the user has access to
# getUserDomains
try {
$Result = Get-GroAdminUserDomains
} catch {
Write-Host ("Exception occurred when calling Get-GroAdminUserDomains: {0}" -f ($_.ErrorDetails | ConvertFrom-Json))
Write-Host ("Response headers: {0}" -f ($_.Exception.Response.Headers | ConvertTo-Json))
}
This endpoint does not need any parameter.
DomainsResponse (PSCustomObject)
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
LoginResponse Submit-GroAdminLogin
[-ContentType]
[-User]
[-Pass]
postLogin
Login user
$ContentType = "application/x-www-form-urlencoded" # String |
$User = "MyUser" # String | Username (optional)
$Pass = "MyPass" # String | User password (optional)
# postLogin
try {
$Result = Submit-GroAdminLogin -ContentType $ContentType -User $User -Pass $Pass
} catch {
Write-Host ("Exception occurred when calling Submit-GroAdminLogin: {0}" -f ($_.ErrorDetails | ConvertFrom-Json))
Write-Host ("Response headers: {0}" -f ($_.Exception.Response.Headers | ConvertTo-Json))
}
Name | Type | Description | Notes |
---|---|---|---|
ContentType | String | ||
User | String | Username | [optional] |
Pass | String | User password | [optional] |
LoginResponse (PSCustomObject)
No authorization required
- Content-Type: application/x-www-form-urlencoded
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
void Submit-GroAdminRequeue
[-XCsrfToken]
[-Queue]
postRequeue
Requeue entries from postfix mail queue
$XCsrfToken = "MyXCsrfToken" # String | CSRF Token (optional)
$Queue = "MyQueue" # String | Comma separated list of postfix queue IDs (optional) (default to "ALL")
# postRequeue
try {
$Result = Submit-GroAdminRequeue -XCsrfToken $XCsrfToken -Queue $Queue
} catch {
Write-Host ("Exception occurred when calling Submit-GroAdminRequeue: {0}" -f ($_.ErrorDetails | ConvertFrom-Json))
Write-Host ("Response headers: {0}" -f ($_.Exception.Response.Headers | ConvertTo-Json))
}
Name | Type | Description | Notes |
---|---|---|---|
XCsrfToken | String | CSRF Token | [optional] |
Queue | String | Comma separated list of postfix queue IDs | [optional] [default to "ALL"] |
void (empty response body)
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
void Send-GroAdminPasswd
[-XCsrfToken]
[-PutPasswdRequest]
putPasswd
Change current users password
$XCsrfToken = "MyXCsrfToken" # String | CSRF Token (optional)
$PutPasswdRequest = Initialize-PutPasswdRequest -New "MyNew" -Old "MyOld" -User "MyUser" # PutPasswdRequest | (optional)
# putPasswd
try {
$Result = Send-GroAdminPasswd -XCsrfToken $XCsrfToken -PutPasswdRequest $PutPasswdRequest
} catch {
Write-Host ("Exception occurred when calling Send-GroAdminPasswd: {0}" -f ($_.ErrorDetails | ConvertFrom-Json))
Write-Host ("Response headers: {0}" -f ($_.Exception.Response.Headers | ConvertTo-Json))
}
Name | Type | Description | Notes |
---|---|---|---|
XCsrfToken | String | CSRF Token | [optional] |
PutPasswdRequest | PutPasswdRequest | [optional] |
void (empty response body)
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
SystemCliResponse Invoke-GroAdminRemoteCLI
[-RemoteCLIRequest]
[-XCsrfToken]
remoteCLI
Remote CLI invocation
$Mode = Initialize-Mode
$RemoteCLIRequest = Initialize-RemoteCLIRequest -Command "MyCommand" -Mode $Mode -Color $false -Fs @{ key_example = "MyInner" } # RemoteCLIRequest |
$XCsrfToken = "MyXCsrfToken" # String | CSRF Token (optional)
# remoteCLI
try {
$Result = Invoke-GroAdminRemoteCLI -RemoteCLIRequest $RemoteCLIRequest -XCsrfToken $XCsrfToken
} catch {
Write-Host ("Exception occurred when calling Invoke-GroAdminRemoteCLI: {0}" -f ($_.ErrorDetails | ConvertFrom-Json))
Write-Host ("Response headers: {0}" -f ($_.Exception.Response.Headers | ConvertTo-Json))
}
Name | Type | Description | Notes |
---|---|---|---|
RemoteCLIRequest | RemoteCLIRequest | ||
XCsrfToken | String | CSRF Token | [optional] |
SystemCliResponse (PSCustomObject)
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
SystemSyncTopResponse Sync-GroAdminTop
[-FilterUpdated] <System.Nullable[Int32]>
[-FilterEnded] <System.Nullable[Int32]>
syncTop
Get current usage. Should be called at least twice to provide useful information.
$FilterUpdated = 56 # Int32 | Maximum number of seconds since the last update (optional)
$FilterEnded = 56 # Int32 | Maximum number of seconds since the process ended (optional)
# syncTop
try {
$Result = Sync-GroAdminTop -FilterUpdated $FilterUpdated -FilterEnded $FilterEnded
} catch {
Write-Host ("Exception occurred when calling Sync-GroAdminTop: {0}" -f ($_.ErrorDetails | ConvertFrom-Json))
Write-Host ("Response headers: {0}" -f ($_.Exception.Response.Headers | ConvertTo-Json))
}
Name | Type | Description | Notes |
---|---|---|---|
FilterUpdated | Int32 | Maximum number of seconds since the last update | [optional] |
FilterEnded | Int32 | Maximum number of seconds since the process ended | [optional] |
SystemSyncTopResponse (PSCustomObject)
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]