So again, I first need to authenticate, before I can execute any REST requests of import.
curl -i -X POST -H "Content-Type: application/oracle-compute-v3+json" -d '{"user":"/Compute-YourIdentityDomain/YourUser","password":"YourPwd"}' https://YourRESTEndpoint/authenticate/
Here is the request/response in Postman -
We are interested in the X-Oracle-Compute-Call-Id
X-Oracle-Compute-Call-Id →1605106c8e1eb8d2129191bd53539248a18d0b
Now I use this in the subsequent request(s)
Here I list the Instances -
https://YourRESTEndpoint/instance/Compute-YourIdentityDomain/YourUser/
Get the image list - this will return the image I cloned in a previous post.
https://YourRESTEndpoint/imagelist/Compute-YourIdentityDomain/YourUser/
Get the list of shapes - note the format of this request -
https://YourRESTEndpoint/shape/
curl -i -X POST -H "Content-Type: application/oracle-compute-v3+json" -d '{"user":"/Compute-YourIdentityDomain/YourUser","password":"YourPwd"}' https://YourRESTEndpoint/authenticate/
Here is the request/response in Postman -
We are interested in the X-Oracle-Compute-Call-Id
X-Oracle-Compute-Call-Id →1605106c8e1eb8d2129191bd53539248a18d0b
Now I use this in the subsequent request(s)
Here I list the Instances -
https://YourRESTEndpoint/instance/Compute-YourIdentityDomain/YourUser/
Get the image list - this will return the image I cloned in a previous post.
https://YourRESTEndpoint/imagelist/Compute-YourIdentityDomain/YourUser/
Get the list of shapes - note the format of this request -
https://YourRESTEndpoint/shape/
No comments:
Post a Comment