api
DSaaS client API module
get_flow()
Get metadata on the flow provided a flow ID.
PARAMETER | DESCRIPTION |
---|---|
flow_id
|
The flow UUID
TYPE:
|
inputs_only
|
Whether to return flow input data exclusively. Defaults to True.
TYPE:
|
RETURNS | DESCRIPTION |
---|---|
dict
|
Flow metadata in dictionary representation.
TYPE:
|
globus_logout()
Remove the Globus Auth token file to invoke login on next API access.
list_metadata()
Get the metadata records.
PARAMETER | DESCRIPTION |
---|---|
metadata_type
|
List metadata of a certain type.
TYPE:
|
RETURNS | DESCRIPTION |
---|---|
JSON
|
Generation[JSON]: a generator returning up to 15 metadata records at a time. |
register_flow()
register_flow(
endpoint_uuid: str,
function_uuid: str,
input_data: dict[str | dict[str | int | None]] = {},
output_data: dict[str | dict[str, str]] = {},
kwargs: JSON = {},
config: str | None = None,
description: str | None = None,
policy: PolicyEnum = PolicyEnum.NONE,
timer_delay: int | None = None,
pull_function_uuid: str | None = None,
commit_function_uuid: str | None = None,
) -> None
Register user function to run as a Globus Flow on remote server periodically.
PARAMETER | DESCRIPTION |
---|---|
endpoint_uuid
|
Globus Compute endpoint uuid
TYPE:
|
function_uuid
|
Globus Compute registered function UUID
TYPE:
|
input_data
|
The input data,
presented in the format {"name": {"id":
TYPE:
|
output_data
|
The output data that will be created,
presented in the format {"name": {"url":
TYPE:
|
kwargs
|
Keyword arguments to pass to function. Default is None
TYPE:
|
config
|
Path to config file. Default is None.
TYPE:
|
description
|
A description of the Flow. Default is None.
TYPE:
|
policy
|
Which policy to use to rerun the flow. Default is never rerun.
TYPE:
|
timer_delay
|
The timer delay in seconds if PolicyEnum.TIMER is applied. Default is None.
TYPE:
|
pull_function_uuid
|
the uuid returned when registering either
TYPE:
|
commit_function_uuid
|
the uuid returned when registering either
TYPE:
|
RAISES | DESCRIPTION |
---|---|
ClientError
|
if function was not able to be registered as a flow, this error is raised |
RETURNS | DESCRIPTION |
---|---|
str
|
the timer job uuid.
TYPE:
|