Moab Web Services > Resources > Priority

Priority

This section describes behavior of the priority object in Moab Web Services. It contains the URLs, request bodies, and responses delivered to and from MWS.

Supported methods

Resource GET PUT POST DELETE
/rest/priority Get All Priorities Modify Priorities -- --

This topic contains these sections:

Getting Priorities

The HTTP GET method is used to retrieve priority information.

Quick reference

GET http://localhost:8080/mws/rest/priority?api-version=3

Get All Priorities

URLs and parameters

GET http://localhost:8080/mws/rest/priority?api-version=3

See Global URL Parameters for available URL parameters.

Sample response

------------------------------------
{
  "service":   {
    "weight": 1,
    "queue_time": 1,
    "x_factor": 0,
    "policy_violation": 0,
    "bypass": 0
  },
  "target":   {
    "weight": 1,
    "queue_time": 0,
    "x_factor": 0
  },
  "credential":   {
    "weight": 1,
    "user_credential": 0,
    "group_credential": 0,
    "account_credential": 0,
    "class_credential": 0,
    "qos_credential": 0
  },
  "attribute":   {
    "weight": 1,
    "attribute": 0,
    "state": 0
  },
  "fairshare":   {
    "weight": 1,
    "user_credential": 1000,
    "group_credential": 0,
    "account_credential": 0,
    "class_credential": 0,
    "qos_credential": 0,
    "jobs_per_user": 0,
    "processor_seconds_per_user": 0,
    "processors_per_user": 0
  },
  "resource":   {
    "weight": 1,
    "node": 0,
    "disk": 0,
    "memory": 0,
    "swap": 0,
    "processor_equivalent_seconds": 0,
    "walltime": 0
  },
  "usage":   {
    "weight": 1,
    "consumed": 0,
    "remaining": 0,
    "percentage_consumed": 0
  }

}

Modifying Priorities

The HTTP PUT method is used to update priority information.

Quick reference

PUT http://localhost:8080/mws/rest/priority?api-version=3

Modify Priorities

URLs and parameters

PUT http://localhost:8080/mws/rest/priority?api-version=3

See Global URL Parameters for available URL parameters.

Sample body

PUT http://localhost:8080/mws/rest/priority?api-version=3
------------------------------------
{
  "service":   {
    "weight": 2,
    "queue_time": 2,
    "x_factor": 1,
    "policy_violation": 1,
    "bypass": 1
  }

}

Related Topics 

© 2015 Adaptive Computing