Activate and Run the Recipe

After you've configured the connections and other resources, you can activate and run the recipe.

  1. In the project workspace, click Activate. In the Activate project panel, with the default project deployment selected, choose an appropriate tracing option, then click Activate.

    A message confirms that the integration has been activated. Refresh the page to view the updated status of the integration.

  2. Run the recipe from an external application.
    1. In the Integrations section of the project workspace, click Actions Actions icon on the integration flow, then select Run.
    2. On the Configure and run page, click Endpoint metadata.
    3. In the panel that opens, copy the Endpoint URL value. This is the integration flow's endpoint URL.
    4. From the external application, send a POST request to this endpoint URL along with the plain text or cipher text, which you want to encrypt or decrypt. Provide the text in the POST request’s Body field. See the subsequent step for example request payloads.
      The recipe encrypts or decrypts the data you pass in the request body.
  3. Test the recipe in Oracle Integration.
    1. In the Integrations section of the project workspace, click Actions Actions icon on the integration flow, then select Run.
    2. On the Configure and run page, in the Request section, click Body and enter the request data.

      Example request payload to encrypt data:

      {
            "plain_text": "oracle"
      
      }

      Example request payload to decrypt data:

      {
           "cipher_text": "QW3HfP0AD4bvAFJgNV2RrrLrbuNAmKxa2MhaUhFlsgUU2DwAgMWxp6MWZFcAAAAA"
      
      }
    3. Click Run
      The recipe invokes an OCI Vault REST API to encrypt or decrypt the data. The Activity Stream pane appears displaying the status of the integration instance’s execution.
    4. In the Response section of the Configure and run page, under the Body tab, you’ll find a success response, 200 OK.