Support Migration Notice: To update migrated JIRA cases click here to open a new case use www.vmware.com/go/sr | vFabric Hyperic 5.7.0 is Now Available

HQApi

Add ResourceApi.getParent(Resource r)

Details

  • Type: New Feature New Feature
  • Status: Resolved Resolved
  • Priority: Trivial Trivial
  • Resolution: Fixed
  • Affects Version/s: None
  • Fix Version/s: None
  • Component/s: None
  • Case Links:
    none

Description

There is no clear way to retrieve parent Resources from within the API. This request is to add the API:

/**

  • Get the parent Resource for a given Resource
    *
  • @param r The resource to query
  • @return The parent {@link Resource} for the given Resource
    *
  • @throws java.io.IOException If a network error occurs while making the request.
    */
    public ResourceResponse getParent(Resource r)
    throws IOException

To the ResourceApi

Activity

Hide
Ryan Morgan added a comment -

Implemented in HQApi 4.1. Users should check the status of this API call, for resources which do not have parents (such as platforms) ObjectNotFound will be returned.

To git@github.com:hyperic/hqapi.git
ea577cb..94bef86 master -> master

A pre-release version of 4.1 can be obtained via Hudson: http://hudson.hyperic.com/job/hqapi-master/122/

Show
Ryan Morgan added a comment - Implemented in HQApi 4.1. Users should check the status of this API call, for resources which do not have parents (such as platforms) ObjectNotFound will be returned. To git@github.com:hyperic/hqapi.git ea577cb..94bef86 master -> master A pre-release version of 4.1 can be obtained via Hudson: http://hudson.hyperic.com/job/hqapi-master/122/

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved:
    Last comment:
    3 years, 15 weeks, 2 days ago