Resource types

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

The Fields: Resource Types reference contains the type and description of all fields in the Resource Type object.

Supported methods

Resource GET PUT POST DELETE
/rest/resource-types Get all resource types -- -- --

This topic contains these sections:

Getting resource types

The HTTP GET method is used to retrieve Resource Type information.

Quick reference

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

Get all resource types

URLs and parameters

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

See Global URL parameters for available URL parameters.

Sample response

GET http://localhost:8080/mws/rest/resource-types?api-version=3&fields=id
------------------------------------

{
  "totalCount": 1,
  "resultCount": 1,
  "results":   [
    {"id": "throttle_migrate"}
  ]
}

Related topics 

© 2014 Adaptive Computing