You can use the vRealize Automation REST API catalog service to request an Amazon machine.

Prerequisites

Procedure

  1. Find the published Amazon blueprint to use for the machine request by displaying the entitled catalog items in the service catalog.
    curl --insecure -H "Content-Type: application/json" 
    -H "Authorization: Bearer $token” 
    https://$host/catalog-service/api/consumer/catalogItems?limit=10&page
  2. Request a machine by using a published Amazon blueprint, the resource values specified in the blueprint, and a JSON input file containing request data such as your user name and business group ID.

    Construct a JSON file for an Amazon machine request.

    1. Copy the appropriate JSON input file template to a new file in an XML editor that maintains formatting.
    2. Substitute the input variables in the template with the values obtained for specific ID.
    3. Save the file with a new name, for example, request.json.
  3. Request an Amazon machine as defined in the chosen blueprint or override the default values of the blueprint by adding properties to the JSON input file to override default values. For example, add ESB storage or choose a specific location.
    curl --insecure -H "Content-Type: application/json" 
    -H "Authorization: Bearer $token"
    https://$host/catalog-service/api/consumer/requests --data @ec2machine_specific.json
  4. Check the status of the Amazon machine request by using the catalog service.
    curl --insecure -H "Content-Type: application/json" 
    -H "Authorization: Bearer $token"
    https://$host/catalog-service/api/consumer/requests/25211c6c-f09d-4e2b-9be4-7b09c47c9f6c