Create a Org in 1605 Private Cloud using admin-api

4.16.05 comes with first class cli support for admin api required for administrative purpose in Apigee Installation. With admin-api you no longer need to use curl commands for such configurations. I'm putting across steps required to create a new organization using admin-api


#Name of New Organization
org=$ORG
#New Password
password=$PASSWORD
host=$HOST
port=$PORT
admin=$APIGEE_ADMIN
vhost=$VHOSTPASSWORD
vhost_port=$VHOST_PORT
vhost_alist=$VHOST_ALIAS
	
apigee-adminapi.sh orgs add -o $ORG --admin $APIGEE_ADMIN --host $HOST --port $PORT --pwd $PASSWORD
apigee-adminapi.sh orgs envs add -o $ORG -e test --admin $APIGEE_ADMIN --host $HOST --port $PORT --pwd $PASSWORD
#Get the UUI of Message Processor from the above command
apigee-adminapi.sh servers list --admin $APIGEE_ADMIN --host $HOST --port $PORT --pod gateway --pwd $PASSWORD
#Add Servers to env
apigee-adminapi.sh orgs envs servers add -o $ORG -e test -u 114d551f-c3b3-4222-a33a-b8ac88801a33 --admin $APIGEE_ADMIN --host $HOST --port $PORT --pwd $PASSWORD
apigee-adminapi.sh orgs pods add -o $ORG -r dc-1 -p gateway --admin $APIGEE_ADMIN --host $HOST --port $PORT --pwd $PASSWORD
apigee-adminapi.sh orgs envs virtual_hosts add -o $ORG -e test -v $VHOST -p $VHOST_PORT -a $VHOST_ALIAS --admin $APIGEE_ADMIN --host $HOST --port $PORT --pwd $PASSWORD
#Get the UUI of qpid server
apigee-adminapi.sh servers list --admin $APIGEE_ADMIN --host $HOST --port $PORT  --pwd $PASSWORD
#Get the UUI of postgres server
apigee-adminapi.sh servers list --admin $APIGEE_ADMIN --host $HOST --port $PORT -p analytics --pwd $PASSWORD
#Onboard analytics where -q is qpid server uuid and -p is postgres server UUID
apigee-adminapi.sh orgs envs analytics onboard -o $ORG -e test -g axgroup001 -q 7aedc95e-0c4d-423b-a94b-2d92b2a401c5 -p cf874943-6a7c-40a3-824c-67a6895e8a2d --admin $APIGEE_ADMIN --host $HOST --port $PORT --pwd $PASSWORD
#Add Org Admin
apigee-adminapi.sh orgs ORGroles ORGs add -o $ORG -u $APIGEE_ADMIN -r orgadmin --admin $APIGEE_ADMIN --host $HOST --port $PORT --pwd $
Version history
Last update:
‎06-01-2016 10:22 AM
Updated by: