Exercise 6: Batch Controller

Document created by jkim Employee on Jun 24, 2019Last modified by jkim Employee on Jun 24, 2019
Version 2Show Document
  • View in full screen mode

The following should be done using Fiddler, PostMan, or another non-browser application capable of making HTTP requests

  1. Use a batch request to retrieve all the Asset Servers and Data Archives for your PI Web Instance
    1. Ensure that the Data Archives are returned prior to the Asset Servers in the response

 

  1. Starting with a blank request body, do the following in a single call to the batch controller:
    1. Retrieve the WebId of that Data Archive with a GetBy Path call
    2. Create a new tag called "New Tag" on the Data Archive using Parameters from the first sub-request

 

  1. Starting with a blank request body, do the following in a single call to the batch controller:
    1. Retrieve the WebId of the element “\\PIAF\Nugreen\Nugreen\Wichita\Cracking Process\Equipment”
    2. create a new element under the Equipment Element called "New Element", using Parameters from the first sub-request
    3. create an attribute for the new element linked to the new tag, using parameters from the second sub-request
    4. update the value of the attribute to 5450

 

  1. Starting with a blank request body, do the following in a single call to the batch controller:
    1. Query for the element "\\PIAF\Nugreen\Nugreen\Wichita\Cracking Process\Equipment\P-723"
    2. Query for the attributes on the element
    3. Using a request template, retrieve the interpolated data for the attribute
    4. Make a second call for the interpolated attribute data using the streamsets by referencing the link from the first call for the element
    5. Do you see a difference in the data between the streamsets call and using a request template? (pick any one attribute)

 

Post questions about this exercise on the forum.

Done with the exercise? Compare your answers with Solution: Batch Controller

Attachments

    Outcomes