<?xml version = "1.0" encoding ="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="RAPI.xsl"?>
<application><doc>Running pdadmin commands</doc>
<resources base="">
<resource path="https://{appliance_hostname}/isam/pdadmin/">
<param type="path" name="appliance_hostname">
<doc>Host name of the appliance.</doc>
</param>
<method name="POST" id="Running pdadmin commands"><doc>     To run one or multiple pdadmin commands with the RESTful web service, issue an HTTP POST command on the pdadmin resource URI. </doc>
<request>
<doc>
 POST https://{appliance_hostname}/isam/pdadmin

 POST_DATA:
 {
 "admin_id":"The administrator id",
 "admin_pwd":"The administrator password",
 "commands":
 [
 "The first command to run",
 "The second command to run",
 "server list",
 "server task ..."
 ]
 }
 </doc><param name="Authorization" style="header">
<doc>Basic Authentication header </doc></param>
<param name="Accept:application/json" style="header">
<doc>Required for requests to the service </doc></param>
<representation name="runPdadminCmdsJsonRequest" mediatype="application/json">
<param style="plain" name="admin_id" type="String" optional="No" >
<doc>The Security Verify Access administrator name.</doc>
</param>
<param style="plain" name="admin_pwd" type="String" optional="No" >
<doc>The Security Verify Access administrator password.</doc>
</param>
<param style="plain" name="admin_domain" type="String" optional="Yes" >
<doc>The Security Verify Access administration domain. The 'Default' domain will be used if this parameter is not supplied.</doc>
</param>
<param style="plain" name="commands" type="String" optional="No" >
<doc>The pdadmin commands to run. </doc>
</param>
</representation></request>
<response status="400">
<doc>There is a problem with the request. The JSON message describes the problem.</doc>
<param name="Content-Type:application/json" style="header">
<doc>Response is in JSON formatting </doc></param>
<representation name="httpErrorJsonResponse" mediatype="application/json">
<param style="plain" name="message" type="String" optional="No" >
<doc>The error message. </doc>
</param>
</representation></response><response status="404">
<doc>File not Found, The requested service does not exist. The JSON message indicates which resource.</doc>
<param name="Content-Type:application/json" style="header">
<doc>Response is in JSON formatting </doc></param>
<representation name="httpErrorJsonResponse" mediatype="application/json">
<param style="plain" name="message" type="String" optional="No" >
<doc>The error message. </doc>
</param>
</representation></response><response status="500">
<doc>An internal error occurred. The JSON message indicates the problem.</doc>
<param name="Content-Type:application/json" style="header">
<doc>Response is in JSON formatting </doc></param>
<representation name="httpErrorJsonResponse" mediatype="application/json">
<param style="plain" name="message" type="String" optional="No" >
<doc>The error message. </doc>
</param>
</representation></response><response status="200">
<doc>OK, The request was successful.</doc>
<doc>
 200 ok
 {"result":"cmd> server listn ivmgrd-mastern test-webseald-appliance"}

 Note:
 HTTP response code and JSON data that represents the output from the pdadmin commands.
 If you run multiple pdadmin commands, a failure response is only returned if the last command fails.
 If a command other than the last fails, the response is successful.
 View the result to ensure that the previous commands are all successful.
 Also, if a single command fails, it does not halt the operation of subsequent commands.

 Note:
 This API takes into account whether or not the machine it is running on is a Cluster Restricted Node.
 If it is a Cluster Restricted Node, the API will only work if the requester is the same host machine.
 </doc><param name="Content-Type:application/json" style="header">
<doc>Response is in JSON formatting </doc></param>
<representation name="runPdadminCmdsJsonResponse" mediatype="application/json">
<param style="plain" name="result" type="String" optional="No" >
<doc>Output from the command, for e.g., cmd> server listn ivmgrd-mastern test-webseald-appliance </doc>
</param>
</representation></response></method>
</resource>
</resources>
</application>
