Quantcast
Channel: VMware Communities : Discussion List - vRealize Orchestrator
Viewing all articles
Browse latest Browse all 6251

vAPI list all tagged objects doesn't seem to work. Anyone accomplished this via the vAPI plugin successfully?

$
0
0

I'm trying to make sense of the vAPI plugin and also reading through the online documentation and I haven't seen any examples of listing tagged objects.  If I access the rest api directly and look at the resource definitions for com/vmware/vapi/rest/navigation/resource/id:com.vmware.cis.tagging.Tag I see this which sounds like what I need:


{

      "name": "list_attached_objects",

      "documentation": "Fetches the {@term list} of attached objects for the given tag. To invoke this {@term operation}, you need the read privilege on the input tag. Only those objects for which you have read privileges will be returned.",

      "service": "com.vmware.cis.tagging.tag_association",

      "links": [

        {

          "method": "POST",

          "href": "https://server.example.com/rest/com/vmware/cis/tagging/tag-association/id:{tag_id}?~action=list-attached-objects"

        }

      ],

      "metadata": {

        "method": "GET",

        "href": "https://server.example.com/rest/com/vmware/vapi/metadata/metamodel/service/operation/id:com.vmware.cis.tagging.tag_association/id:list_attached_objects"

      }

    }

 

When I attempt to run this I get an error from the api as follows:

 

{

  "name": "com.vmware.vapi.rest.httpNotFound",

  "localizableMessages": [

    {

      "defaultMessage": "Not found.",

      "id": "com.vmware.vapi.rest.httpNotFound"

    }

  ],

  "majorErrorCode": 404

}

 

Does anyone here know this api well enough to tell me if I am making the correct call and if so can you verify that it is working?  eternallyfrustratedbyvmware how's that for a tag? hopeijustneededtortfm


Viewing all articles
Browse latest Browse all 6251

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>