Red Hat Training

A Red Hat training course is available for Red Hat JBoss Operations Network

1.12. http://localhost:7080/rest/resource/type : Resource type related

This endpoint deals with resource types

Defining class: org.rhq.enterprise.server.rest.ResourceTypeHandlerBean

Produces: application/json, application/xml

Methods

  • GET /resource/type/{id}

    Description

    Return information about the resource type with the passed id
    Parameters:
    NameP.TypeDescriptionRequiredTypeAllowed valuesDefault value
    id Path none int -all- -none-

    Return type: ResourceTypeRest

    Error codes:
    CodeReason
    404 There is no type with the passed id
  • GET /resource/type

    Description

    Search for resource types

    Supports returning a gzip'ed Content-Encoding

    Parameters:
    NameP.TypeDescriptionRequiredTypeAllowed valuesDefault value
    q Query Limit results to param in the resource type name false String all
    plugin Query Limit results to the plugin with the passed name false String all
    ps Query Page size for paging false int all 20
    page Query Page for paging, 0-based false Integer all

    Return type: ResourceTypeRest (multi)