Administer with the HTTP command interface


Overview

With the HTTP command interface, you can run operations on your appliance, configure appliance settings, and administer data grids, collectives, and zones.

Use the HTTP command interface to run operations with HTTP POST JSON statements. You can combine these statements into scripts to automate configuration and administration tasks.

  1. View the available commands for the HTTP command interface in the user interface.

    To view a table of all the available commands in the user interface, click (Help) > HTTP Command Interface Help. After you click a command name, you can view the Detailed Usage and Example JSON Submission.

  2. Create a JSON statement for the operation to run. This statement must contain:

    • The command you want to run.
    • The appropriate parameters for the command.

    For example you might use the following command in the cURL tool:

    curl -v \
         -k \
         -u XC_ADMIN_USER:XC_ADMIN_PWD \
         -H "Content-Type: application/json" \
         --data-binary "HTTP_INTERFACE_JSON_STATEMENT" https://XC10_HOST_NAME/resources/appTaskInterface

    Define the following variables:

    XC_ADMIN_USER:XC_ADMIN_PWD

    Specifies the user name and password for the WebSphere DataPower XC10 appliance administrator.

    HTTP_INTERFACE_JSON_STATEMENT

    Specifies one of the possible JSON statements submitted to the HTTP command interface.

    XC10_HOST_NAME

    Specifies the full host name or IP address of the WebSphere DataPower XC10 appliance.

  3. Run the command and view output.