anchor.diff:  |Flag |Parameter
   |`-d \| --deployment`
   |The name attribute of the `deployment` element to be retrieved.
  +|`--target`
  +|The target for the command. Defaults to 'server'.
   |===
   
   ===== get-chainlink-deployment-job-operator -d <deployment name> -j <job operator name>
  
positive.code: |The filename of a file containing the xml model.
  |`-b \| --base64`
  |A base64 encoded string of the xml model.
  |===
  
  ===== delete-chainlink
  
negative.code: Accidentally call `delete-chainlink`? The existing configuration is returned so you can save it to a
  file and then upload it again with `set-chainlink`. Remember, configuration changes are not visible to
  Chainlink until `reload-chainlink` is called.
  ====
  
  ==== Using the REST api
  
  These commands are also provided through Glassfish's REST api. The commands are accessed through with
  the following rules.
  
  1. Commands prefixed with `get-` are accessed by sending a GET request.
  2. Commands prefixed with `set-` are accessed by sending a POST request.
  3. Commands prefixed with `delete-` are accessed by sending a DELETE request.
  
  Here is an example using curl to create, inspect and then remove a job operator.
  
  [source,shell]
  ----
  # The file argument will load the file from the servers FS.
  # Instead this encodes a local file so it can be included in the request.
  ENCODED_FILE="$(base64 -w0 ~/job.xml | tr '+/' '-_')"
  
  # Have a look at what's there
  curl -X GET \
          -H "Accept: application/xml" \
          http://localhost:4848/management/domain/get-chainlink \
      | xmllint --format -
  
  # Create the job operator
  curl -X POST \
          -H "Accept: application/xml" \
          -H "X-Requested-By: GlassFish REST HTML interface" \
          -d "base64=${ENCODED_FILE}" \
          http://localhost:4848/management/domain/set-chainlink-job-operator \
      | xmllint --format -
  
  # Have a look at the job operator we just uploaded
  curl -X GET \
          -H "Accept: application/xml" \
          http://localhost:4848/management/domain/get-chainlink-job-operator \
      | xmllint --format -
  
  # Remove the job operator
  curl -X DELETE \
          -H "Accept: application/xml" \
          -H "X-Requested-By: GlassFish REST HTML interface" \
          -d "job-operator=default" \
          http://localhost:4848/management/domain/delete-chainlink-job-operator \
      | xmllint --format -
  ----