Administrative Actions
Last updated
Last updated
The administrator
interface provides administrative actions for this AMPS instance.
These actions are designed to be usable from a minimal web browser interface. Retrieving the URI for an action requests that AMPS take that action. In other words, clicking on the link for the action in a browser or performing a GET from a script will cause AMPS to take the appropriate action.
Authorization: Selecting the authorization
resource will allow the authentication
or entitlement
resources to be reset. Selecting either one of these will present a reset
link, which calls the reset function as defined by the respective authentication or entitlement resource.
Admin Path: /amps/administrator/authorization/<resource-type>/<action>
Clients: Selecting the clients
resource will list all connected clients by identifier. Selecting a single client will permit that client to be disconnected.
Admin Path: /amps/administrator/clients/<id>/<action>
Diagnostics: Selecting the diagnostics
resource will provide the option to write a diagnostics dump
message to the log. This message is logged at info
level, and is event number 31-0010
. In this release of AMPS, the diagnostic message provides information on the current state of the queues configured for the instance.
Admin Path: /amps/administrator/diagnostics/<action>
Minidump: Selecting the minidump
resource will create a minidump of the currently running AMPS instance.
The minidump will be saved in a directory specified by the MiniDumpDirectory
, or /tmp
if no directory is specified. See for more information.
Admin Path: /amps/administrator/minidump
Queues: Selecting the queues
resource allows you to select whether this instance will respect the original ownership of messages in the queue, or allow the instance to claim ownership of messages if the original owner is unreachable.
The options available from this interface are enable_proxied_transfer
(meaning to allow this instance to claim ownership if a direct link to the owning instance is not connected) or disable_proxied_transfer
(meaning that only the instance that owned the original message can transfer ownership). By default, proxied transfer is disabled.
Admin Path: /amps/administrator/queues/<id>/<action>
Replication: Selecting the replication
resource will list all currently configured replications. Selecting any individual replication destination will permit the destination to be downgraded or upgraded.
Admin Path: /amps/administrator/replication/<id>/<action>
SOW: Selecting the sow
resource will list all currently configured sow. topics. Selecting a topic will permit you to compact
that topic. Compacting a SOW causes AMPS to release unused space in the SOW: this is normally done during startup.
Admin Path: /amps/administrator/sow/<id>/<action>
Transaction Log: Selecting the transaction_log
resource will allow the journals
resources to be compressed, archived, or removed. Only journal files that are full will be displayed.
Selecting a journal will permit you to compress
, archive
, or remove
that journal and all older journals. Compressing a journal will compress the selected journal and all older journals. Archiving a journal will move the selected journal and all older journals to the specified archive location. Removing a journal will delete the selected journal and all older journals.
Admin Path: /amps/administrator/transaction_log/journals/<id>/<action>
Transports: Selecting the transports
resource will list all currently configured transports. Selecting any individual transport will permit the transport to be enabled or disabled.
Admin Path: /amps/administrator/transports/<id>/<action>
The administrative intervace provides a way to check access to an administrative action without running the action.
Admin Path: /amps/administrator/authorization/entitlement/transports/amps-admin/check
This resource requires a path
parameter with the full path of the action to check. AMPS will run the entitlement check, and then return a true
or false
result indicating whether the user has permission to run the action.
For example, a full entitlement check on the ability to disconnect the client with object ID 1, requesting the result as a JSON document, would be: http://server:admin_port/amps/administrator/authorization/entitlement/transport/amps-admin/check.json?path=/amps/administrator/clients/1/disconnect
.