VMware Cloud Community
CalmCloud
Enthusiast
Enthusiast
Jump to solution

How to monitor request status - REST

Hi All,

I was following Using vCAC 6.X REST APIs - Part 2 - Elastic Skies blog to submit a REST request. I was able to post request. It returns response right away after successful submission.   How to monitor the request? The response object of the request submission has "location" header property set to https://<<hostname>>/catalog-service/api/consumer/requests/56428808-f9a0-4bac-b83d-ce75ddc86b78".

I have tried to use "location" url which has not worked.

var requsetRest = vcacHost.createRestClient(vCACCAFEServicesEnum.CATALOG_SERVICE);

var response = requsetRest.get("consumer/requests/56428808-f9a0-4bac-b83d-ce75ddc86b78");


Any help appreciated.


Thanks

0 Kudos
1 Solution

Accepted Solutions
CalmCloud
Enthusiast
Enthusiast
Jump to solution

I was able to get request with vcaccafeenitiesfinder.getCatalogItemRequest method.

View solution in original post

0 Kudos
1 Reply
CalmCloud
Enthusiast
Enthusiast
Jump to solution

I was able to get request with vcaccafeenitiesfinder.getCatalogItemRequest method.

0 Kudos