This is a library containing numerous functions (sub resource) which can be directly implemented as Functions in Azure.
Resource name: auto-reply
Path: ps/auto-reply
Actions: enable
/ disable
Payload:
{
"email": "[email protected]",
"message": "Out of Office message",
"action": "enable"
}
Response:
{
"email": "[email protected]",
"message": "Out of Office message",
"detail": "Auto reply enabled.",
"status": 1
}
Status codes
Code | Description |
---|---|
1 | Enabled |
2 | Disabled |
Resource name: mailbox
Path: ps/mailbox
Payload:
{
"email": "[email protected]",
"name": "Name of your mailbox",
"owner": "[email protected]"
}
Response:
{
"email": "[email protected]",
"status": 1,
"detail": "Mailbox created.",
"name": "Name of your mailbox",
"owner": "[email protected]"
}
Status codes
Code | Description |
---|---|
1 | Mailbox created |
2 | Mailbox exits |
3 | ACL group exists |
Resource name: dl
Path: ps/dl
Payload:
{
"email": "[email protected]",
"name": "Name of your distribution list",
"owner": "[email protected]"
}
Response:
{
"email": "[email protected]",
"status": 1,
"detail": "DL created.",
"name": "Name of your distribution list",
"owner": "[email protected]"
}
Status codes
Code | Description |
---|---|
1 | DL created |
2 | DL exits |
Resource name: mfa
Path: ps/mfa
Actions: enable
/ disable
/ reset
Payload:
{
"email": "[email protected]",
"action": "reset"
}
Response:
{
"email": "[email protected]",
"detail": "MFA Reset completed.",
"status": 3
}
Status codes
Code | Description |
---|---|
1 | Enabled |
2 | Disabled |
3 | Reset |
4 | Others (Check description) |