/pcee_add_user_api_script

Primary LanguageShellGNU General Public License v3.0GPL-3.0

Add New User Prisma Cloud Enterprise Edition API SCRIPT

Assumptions

  • You're using the ENTERPRISE EDITION OF PRISMA CLOUD

  • You're using ubuntu 20.04

  • You're able to reach your Prisma Cloud Enterprise Edition console from your ubuntu 20.04 machine

  • You would know how to harden this process if working in a production environment.

  • If you do decide to keep the keys in this script, then it's critical you:

    • Add it to your .gitignore (if using git) file and chmod 700 iac_script.bash between steps 2 and 3 below so that others can't read, write, or excute it.

Instructions

  • Step 1: git clone https://github.com/Kyle9021/pcee_add_user_api_script
  • Step 2: cd pcee_add_user_api_script/
  • Step 3: nano add_user.bash and assign variables according to comment documentation
  • Step 4: Install jq if you dont have it sudo apt update && upgrade -y then sudo apt-get install jq
  • Step 5: bash rql_api.bash

Links to reference