title: View individual deployment status in Wildfly with curl/API
body: <p>I'm very new to Wildfly but I need to set up automated monitoring of individual deployment status via the API.</p>
  
  <p>In the same way that I can view the server state with curl, eg:</p>
  
  <pre><code>curl --insecure --digest 'https://admin:password@localhost:9993/management' --header "Content-Type: application/json" -d '{"operation":"read-attribute","name":"server-state","json.pretty":1}'
  </code></pre>
  
  <p>Will return:</p>
  
  <pre><code>{
      "outcome" =&gt; "success",
      "result" =&gt; "running"
  }
  </code></pre>
  
  <p>In the same way the from the jboss-cli, I issue:</p>
  
  <pre><code>:read-attribute(name=server-state)
  </code></pre>
  
  <p>And get the same result.</p>
  
  <p>So, from the CLI, if I issue the following command to get the status of a specific deployment:</p>
  
  <pre><code>/deployment=bob :read-attribute(name=status)
  </code></pre>
  
  <p>I get the following result:</p>
  
  <pre><code>{
      "outcome" =&gt; "success",
      "result" =&gt; "OK"
  }
  </code></pre>
  
  <p>But I can't work out what curl command will give me that result.  I've read through a tonne of documentation and either it doesn't exist or I'm looking in the wrong spot.  I've tried:</p>
  
  <pre><code>curl --insecure --digest 'https://password@localhost:9993/management' --header "Content-Type: application/json" -d '{"deployment":"bob","operation":"read-attribute","name":"status","json.pretty":1}'
  </code></pre>
  
  <p>but that didn't work.  Any ideas?</p>
  
  <p>Thanks,
  Mark J.</p>