Wordpress
Wordpress API allowing A-Ops flows to interact with the wordpress web framework.
Actions
Wordpress Connect
Connect to a wordpress API using username and application password.
Input
| Name | Description | Type | Required | Syntax |
|---|---|---|---|---|
| Domain | Wordpress domain name i.e. www.secureack.com. | input | True | True |
| username | Username to login with. | input | True | True |
| Password | Password or application password for the user. | password-input | True | True |
Output
| Name | Description | Type | always_present | values |
|---|---|---|---|---|
| result | Returns True when successful. | boolean | True | {"True": {"description": "Connection handler created."}} |
| rc | Returns the exit code for the action. | number | True | {"200": {"description": "Connection handler created."}} |
Wordpress Custom Request
Call any supported wordpress API endpoint and return the results to the A-Ops flow.
Input
| Name | Description | Type | Required | Syntax |
|---|---|---|---|---|
| Connection ID | Connection ID of the wordpress connection handler to user. | input | True | True |
| endpoint | API URI endpoint to call i.e. plugins | input | True | True |
| HTTP Method | The HTTP method to use e.g. HEAD, GET, PUT, POST, DELETE. | dropdown | True | True |
| Data | Body data to include with the request. | json-input | False | True |
Output
| Name | Description | Type | always_present | values |
|---|---|---|---|---|
| result | Returns True when successful. | boolean | True | {"True": {"description": "Successful."}, "False": {"description": "Connection handler not configured, please run Wordpress Connection before calling this object."}} |
| rc | Returns the exit code for the action. | number | True | {"255": {"description": "Connection handler not configured, please run Wordpress Connection before calling this object."}, "200": {"description": "Successful."}} |
| response | Response data. | string | True | {} |
| status_code | HTTP response code. | number | True | {} |
| pages | Number of pages of data, this can be used to iterate pages with a forEach. | number | True | {} |
Wordpress List Users
Lists configured users.
Input
| Name | Description | Type | Required | Syntax |
|---|---|---|---|---|
| Connection ID | Connection ID of the wordpress connection handler to user. | input | True | True |
Output
| Name | Description | Type | always_present | values |
|---|---|---|---|---|
| result | Returns True when successful. | boolean | True | {"True": {"description": "Successful."}, "False": {"description": "Connection handler not configured, please run Wordpress Connection before calling this object."}} |
| rc | Returns the exit code for the action. | number | True | {"255": {"description": "Connection handler not configured, please run Wordpress Connection before calling this object."}, "200": {"description": "Successful."}} |
| users | User list. | json | True | {} |
Wordpress List Plugins
Lists installed plugins with an option to check if the plugins is up to date.
Input
| Name | Description | Type | Required | Syntax |
|---|---|---|---|---|
| Connection ID | Connection ID of the wordpress connection handler to user. | input | True | True |
| checkUpdates | checkbox | False | False |
Output
| Name | Description | Type | always_present | values |
|---|---|---|---|---|
| result | Returns True when successful. | boolean | True | {"True": {"description": "Successful."}, "False": {"description": "Connection handler not configured, please run Wordpress Connection before calling this object."}} |
| rc | Returns the exit code for the action. | number | True | {"255": {"description": "Connection handler not configured, please run Wordpress Connection before calling this object."}, "200": {"description": "Successful."}} |
| plugins | Plugins list. | json | True | {} |
Wordpress List Themes
Lists installed themes with an option to check if the themes are up to date.
Input
| Name | Description | Type | Required | Syntax |
|---|---|---|---|---|
| Connection ID | Connection ID of the wordpress connection handler to user. | input | True | True |
| checkUpdates | checkbox | False | False |
Output
| Name | Description | Type | always_present | values |
|---|---|---|---|---|
| result | Returns True when successful. | boolean | True | {"True": {"description": "Successful."}, "False": {"description": "Connection handler not configured, please run Wordpress Connection before calling this object."}} |
| rc | Returns the exit code for the action. | number | True | {"255": {"description": "Connection handler not configured, please run Wordpress Connection before calling this object."}, "200": {"description": "Successful."}} |
| themes | Themes list. | json | True | {} |
Wordpress Get Health
Get a summary of the Wordpress health page.
Input
| Name | Description | Type | Required | Syntax |
|---|---|---|---|---|
| Connection ID | Connection ID of the wordpress connection handler to user. | input | True | True |
Output
| Name | Description | Type | always_present | values |
|---|---|---|---|---|
| result | Returns True when successful. | boolean | True | {"True": {"description": "Successful."}, "False": {"description": "Connection handler not configured, please run Wordpress Connection before calling this object."}} |
| rc | Returns the exit code for the action. | number | True | {"255": {"description": "Connection handler not configured, please run Wordpress Connection before calling this object."}, "200": {"description": "Successful."}} |
| health | Available health data. | json | True | {} |
Wordpress Get Version
Get the current Wordpress version with an option to check if this is the latest version.
Input
| Name | Description | Type | Required | Syntax |
|---|---|---|---|---|
| Connection ID | Connection ID of the wordpress connection handler to user. | input | True | True |
| checkUpdates | checkbox | False | False |
Output
| Name | Description | Type | always_present | values |
|---|---|---|---|---|
| result | Returns True when successful. | boolean | True | {"True": {"description": "Successful."}, "False": {"description": "Connection handler not configured, please run Wordpress Connection before calling this object."}} |
| rc | Returns the exit code for the action. | number | True | {"255": {"description": "Connection handler not configured, please run Wordpress Connection before calling this object."}, "200": {"description": "Successful."}} |
| version | Version details. | json | True | {} |