You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Using curl to pull back instance and orchestration states

Received Response
11
Views
2
Comments
edited Dec 15, 2017 8:00AM in Java 2 comments

Summary

Using curl to pull back instance and orchestration states

Content

I’m running some curl from a shell script to get the state of an instance and also an orchestration.

In the below, I’ve replaced my actual tenant and info with the oracle sample code and I’ve previously generated a cookie and passed this into the $COMPUTE_COOKIE parameter.

This cookie works fine.

When I try and run curl against the instance it returns all the information I want – but how can I just pull back the state? 

curl -X GET \

  -H "Cookie: $COMPUTE_COOKIE"   \

  -H "Accept: application/oracle-compute-v3+json" \

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!