Skip to content

Latest commit

 

History

History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

readme.rst

Bash Code Samples - batch_request_simple

This readme file is specifically for the batch_request_simple Bash script.

The setup instructions are the same as all other Bash scripts in this repository. This file is provided as additional/supplemental information for this specific code sample.

Please see the main page for general instructions.

Script Usage

Once you have configured your system to run these scripts (see link above), the script can be run as follows.

  1. Edit batch_request_simple.json and change the Prism Central IP address to match your environment.

    "cluster_ip":"10.0.0.1"
  2. Edit batch_request_simple.json and edit the following variables to suit your requirements:

    "username":"admin"
  3. Edit batch_request_simple and edit the following variables to suit your requirements:

    \"name\": \"vm_from_batch\",
    \"name\": \"image_from_batch\"
  4. Execute the script:

    ./batch_request_simple
  5. Verify the script ran successfully and that the batch API request returned HTTP code 202:

    script_output.png
  6. If you prefer, you can also check Prism Central to ensure the VM and image were both created successfully.