Skip to content

Latest commit

 

History

History

federation

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 

Federation Extension

The openEO API is a specification for interoperable cloud-based processing of large Earth observation datasets.

This is an extension for federation aspects, i.e. where multiple back-ends are exposed as a single API.

  • Version: 0.1.0
  • Stability: experimental
  • Conformance class: https://api.openeo.org/extensions/federation/0.1.0

Note: This document only documents the additions to the specification. Extensions can not change or break existing behavior of the openEO API.

Backend details

A new required field federation is added to GET / to enable federation.

OpenAPI fragment

schema:
  type: object
  required:
    - 'federation'
  properties:
    'federation':
      description: >-
        Lists all back-ends that are part of this federation with details.
        They keys of the object are the unique identifiers for the back-ends that are returned in sub-sequent requests (see below).
      type: object
      minProperties: 2
      additionalProperties:
        type: object
        required:
          - url
        properties:
          url:
            type: string
            format: uri
            description: >-
              URL to the versioned API endpoint of the back-end,
              so a URL that is available through well-known discovery on the back-end.
            example: https://openeo.provider.org/api/v1/
          title:
            type: string
            description: Name of the back-end.
          description:
            type: string
            description: A description of the back-end and its specifics.
          status:
            type: string
            enum:
              - online
              - offline
            description: Current status of the back-ends.
            default: online
          last_status_check:
            type: string
            format: date-time
            description: The time at which the status of the back-end was checked last.
          last_successful_check:
            type: string
            format: date-time
            description: >-
              If the `status` is `offline`: The time at which the back-end was checked and available the last time.
              Otherwise, this is equal to the property `last_status_check`.
          experimental:
            type: boolean
            description: >-
              Declares the back-end to be experimental, which means that
              it is likely to change or may produce unpredictable behaviour.
            default: false
          deprecated:
            type: boolean
            description: |-
              Declares the back-end to be deprecated with the potential
              to be removed in any of the next versions.
            default: false

Example

{
  "api_version": "1.2.0",
  "federation": {
    "vito": {
      "title": "VITO",
      "url": "https://openeo.vito.be"
    },
    "eodc": {
      "title": "EODC",
      "url": "https://openeo.eodc.eu"
    },
    "wwu": {
      "title": "WWU Münster",
      "url": "https://openeo.wwu.de",
      "status": "offline",
      "description": "Experimental integration of the WWU HPC",
      "experimental": true
    }
  },
  ...
}

Lists of resources

Clients will assume that all lists of resources are the a combination of all back-ends listed in GET /. Federated APIs can expose if any of the back-ends is not available and thus is not part of the response.

Applies to:

  • GET /collections
  • GET /processes
  • GET /file_formats
  • GET /process_graphs
  • GET /jobs
  • GET /jobs/{job_id}
  • GET /jobs/{job_id}/results
  • GET /services

The following endpoints define the resources (UDF runtimes / service types) at the top level of their response as key-value pairs. Consequently, they are not extensible with additional properties for federation purposes.

  • GET /udf_runtimes
  • GET /service_types

OpenAPI fragment

schema:
  type: object
  properties:
    'federation:missing':
      description: >-
        Lists all back-ends that were not considered in the response (e.g. because they were not accessible).
        If not given or empty, all back-ends were considered for creating the response.
        Back-ends that were listed as offline in the capabilities still need to be listed here.
      type: array
      items:
        type: string
        description: The ID of a back-end.

Example

{
  "federation:missing": ["wwu"],
  "collections": [...],
  "links": [...]
}

Resources supported only by a subset of back-ends

Every discoverable resource that is defined as an object and allows to contain additional properties, can list the backends that support or host the exposed resource/functionality. This can also be embeded deeply into a hierarchical structure, e.g. for process or file format parameters.

schema:
  type: object
  properties:
    'federation:backends':
      description: >-
        Lists all back-ends that support or host the resource.
        If not given, all back-ends support the resource.
      type: array
      minItems: 1
      items:
        type: string
        description: The ID of a back-end.

Note: In Collections this should generally be provided on the top-level of the object.

Examples

Process

{
  "process_id": "example",
  "federation:backends": ["vito", "eodc"],
  "parameters": [
    {
      "name": "parameter1",
      "description": "A parameter supported by both back-ends...",
      "schema": {}
    },
    {
      "name": "proprietary_parameter",
      "description": "A parameter supported only by EODC.",
      "federation:backends": ["eodc"],
      "schema": {}
    }
  ]
  ...
}

Collection

{
  "stac_version": "1.0.0",
  "id": "example",
  "description": "...",
  "summaries": {
    "federation:backends": ["vito", "eodc"],
    ...
  },
  ...
}