The Apigee Advanced API Security Demo toolkit sets up sample proxies and the needed Apigee artifacts to execute the Bot simulation toolkit.
-
Set up the following variables
export APIGEE_PROJECT_ID=<apigee-project-id where the demo will be executed> export APIGEE_ENV=<apigee-env> export APIGEE_ENV_HOSTNAME=<apigee-env-group-hostname> #Indicate the protocol https or http ex: https://my-apigee.example.com
-
Set up the gcloud authentication and fetch the tokens.
gcloud config set project $APIGEE_PROJECT_ID gcloud auth application-default login --no-launch-browser export TOKEN=$(gcloud auth print-access-token)
-
Set up the following variables for the simulation controller
export JOB_CONTROLLER_ENDPOINT="https://eval-group.35-186-236-163.nip.io" export BOT_PERCENT="50" export BOT_SRC_IPADDRESS="127.0.0.1" export JOB_CONTROLLER_EXECUTION_PERIOD=80
-
Run the following to the get the usage information
./advapisec-demo-setup.sh
-
Setup run, this will install the needed artifacts in Apigee org and executes the simulation
./advapisec-demo-setup.sh -a setup
-
Follow the instructions, to view the status of the bot executions and completion statu.
-
Sample report creation.
./scripts/report-gen.sh
-
Cleanup run, this will clean the adv api security demo artifacts in Apigee org
./advapisec-demo-setup.sh -a cleanup