Can someone please provide me the curl commands to do following tasks :
-
curl commands to create organisation ,environment ,virtual hosts
-
curl commands to list organisation,encironment and virtual hosts
Can someone please provide me the curl commands to do following tasks :
curl commands to create organisation ,environment ,virtual hosts
curl commands to list organisation,encironment and virtual hosts
I am assuming that you have apigee EDGE on premise.
Go through the script
//apigee4/bin/create-org.sh
Also, you can use the below API CALL
curl -u -H âContent-Type:application/xmlâ -X POST http://localhost:8080/v1/organizations \ -d ââ
After creating the ORG, you need to associate the ORG with the POD
curl -u -H âContent-Type:application/x-www-form-urlencodedâ \ -u -X POST \ http://localhost:8080/v1/organizations/$ORGNAME/pods \ -d âregion=default&pod=gatewayâ
Local host means = IP Address of Management Server
You can use the below script to create an Environment in the existing ORG
//apigee4/bin/add-env.sh
You can use the below API CALL for creating the ENV
curl -u -H âContent-Type:application/xmlâ -u -X POST http://localhost:8080/v1/organizations/$ORGNAME>/environments \ -d ââ
Its better to use the script shared by APIGEE to create this.
Creating Virtual host
curl -H âContent-Type:application/xmlâ -u : \ -X POST \ http://:8080/v1/organizations//environments//virtualhosts \ -d ' \ \ abcde.company.com \ \ \ 443
You can remove -X post and -d value from all the above commands to get the details for ORG, ENV and virtual host
Hi @Arpit Sharma,
On a related-topic, you may also find this Postman collection particularly helpful for all of your Apigee Management Server API needs.