Flows API
  • Globus Flows
  • Overview
  • Getting Started
    • How to Run a Flow
    • How to Monitor a Flow Run
    • How to Create a Flow
  • Authoring Flows
    • Introduction
    • Actions
    • Expressions
    • Choice States
    • Wait States
    • Fail States
    • Pass States
    • Protecting Secrets
    • Handling Exceptions
    • Performing Actions as Different Users
    • Run Context
    • Validating Flow Definitions
  • Authoring Input Schemas
  • Authentication and Authorization
  • Consents and Resuming Runs
  • Permissions
  • Limits
  • Hosted Action Providers
    • Hello World
    • Globus Search - Ingest Task
    • Globus Search - Delete Task
    • Send Notification Email
    • Wait For User Selection
    • Expression Evaluation
    • DataCite Mint
    • Transfer APs
    • Compute AP
  • Example Flows
    • Simple Transfer
    • Move (copy and delete) files
    • Transfer and Share Files
    • Two Stage Globus Transfer
    • Transfer After Approval
    • Looping Batched Move
    • Tar and Transfer with Globus Compute
Skip to main content
Globus Docs
  • APIs
    Auth Flows Groups Search Timers Transfer Globus Connect Server Compute Helper Pages
  • Applications
    Globus Connect Personal Globus Connect Server Premium Storage Connectors Compute Command Line Interface Python SDK JavaScript SDK
  • Guides
  • Support
    FAQs Mailing Lists Contact Us Check Support Tickets
  1. Home
  2. Globus Services
  3. Globus Flows
  4. Hosted Action Providers
  5. Globus Search - Ingest Task

Action Provider: Search - Ingest Task

URL: https://actions.globus.org/search/ingest

Scope: https://auth.globus.org/scopes/actions.globus.org/search/ingest

Synchronous / Asynchronous: Asynchronous

This action provider supports adding records to an existing Globus Search index.

The input to the action provider must include the ID of the target Globus Search index together with the content to add. The user must have permission to write to the target index.

Globus Search does not support cancellation of tasks, so this action provider cannot support cancellation of its actions.

Usage Example

The example below demonstrates how to use the action provider.

  • Flow
  • Input schema
  • Sample input body

Features of the flow:

  • In this example, glossary terms are added to the Search index based on user input. The user input is referenced using JSON paths: the keys that end with .$ indicate a variable will be referenced, and the values which start with $. indicate a path to the user input variables.

{
  "StartAt": "SearchIngest",
  "States": {
    "SearchIngest": {
      "Type": "Action",
      "ActionUrl": "https://actions.globus.org/search/ingest",
      "Parameters": {
        "search_index": "11111111-a85c-473f-9bb6-04dfc6344dd2",
        "visible_to": [
          "urn:globus:groups:id:22222222-0b3a-11ec-9a67-afcad34eca9b"
        ],
        "subject.$": "$.term",
        "content": {
          "term.$": "$.term",
          "definition.$": "$.definition"
        }
      },
      "End": true
    }
  }
}

Features of the input schema:

  • Titles, description, and a property order are included, which are used by the Globus Web App when rendering the guided input form when a user starts the flow.

Example Input
{
  "properties": {
    "term": {
      "title": "Term to add",
      "description": "The term will be added to the glossary",
      "type": "string"
    },
    "definition": {
      "title": "Definition",
      "type": "string"
    }
  },
  "required": [
    "term",
    "definition"
  ],
  "additionalProperties": false,
  "propertyOrder": [
    "term",
    "definition"
  ]
}
{
  "term": "numerator",
  "definition": "The top part of a fraction"
}
  • Globus Flows
  • Overview
  • Getting Started
    • How to Run a Flow
    • How to Monitor a Flow Run
    • How to Create a Flow
  • Authoring Flows
    • Introduction
    • Actions
    • Expressions
    • Choice States
    • Wait States
    • Fail States
    • Pass States
    • Protecting Secrets
    • Handling Exceptions
    • Performing Actions as Different Users
    • Run Context
    • Validating Flow Definitions
  • Authoring Input Schemas
  • Authentication and Authorization
  • Consents and Resuming Runs
  • Permissions
  • Limits
  • Hosted Action Providers
    • Hello World
    • Globus Search - Ingest Task
    • Globus Search - Delete Task
    • Send Notification Email
    • Wait For User Selection
    • Expression Evaluation
    • DataCite Mint
    • Transfer APs
    • Compute AP
  • Example Flows
    • Simple Transfer
    • Move (copy and delete) files
    • Transfer and Share Files
    • Two Stage Globus Transfer
    • Transfer After Approval
    • Looping Batched Move
    • Tar and Transfer with Globus Compute
© 2010- The University of Chicago Legal Privacy Accessibility