Returns a list of workflow instances.

oc_list_workflow_instances(
  withoperations = FALSE,
  withconfigurationpanel = FALSE,
  filter = "",
  sort = "",
  limit = 0,
  offset = 0
)

Arguments

withoperations

Whether the workflow operations should be included in the response.

withconfigurationpanel

Whether the workflow configuration panel should be included in the response.

filter

A comma seperated list of filters to limit the results with. A filter is the filter's name followed by a colon ":" and then the value to filter with so it is the form :.

sort

Sort the results based upon a list of comma seperated sorting criteria. In the comma seperated list each type of sorting is specified as a pair such as: :ASC or :DESC. Adding the suffix ASC or DESC sets the order as ascending or descending order and is mandatory.

limit

The maximum number of results to return for a single request.

offset

The index of the first result to return.

Value

Returns a list of workflow instances.

Details

This function expects the hostname, username and password to be set as environment variables.

Examples

Sys.setenv(OPENCAST_HOST = "https://legacy.opencast.org") Sys.setenv(OPENCAST_USERNAME = "admin") Sys.setenv(OPENCAST_PASSWORD = "opencast") oc_list_workflow_instances()
#> $content #> workflow_definition_identifier identifier creator #> 1 fast 524 Opencast Project Administrator #> 2 fast 521 Opencast Project Administrator #> 3 fast 533 Opencast Project Administrator #> 4 fast 543 Opencast Project Administrator #> 5 fast 546 Opencast Project Administrator #> description #> 1 \n A minimal workflow that transcodes the media into distribution formats, then\n sends the resulting distribution files, along with their associated metadata,\n to the distribution channels.\n #> 2 \n A minimal workflow that transcodes the media into distribution formats, then\n sends the resulting distribution files, along with their associated metadata,\n to the distribution channels.\n #> 3 \n A minimal workflow that transcodes the media into distribution formats, then\n sends the resulting distribution files, along with their associated metadata,\n to the distribution channels.\n #> 4 \n A minimal workflow that transcodes the media into distribution formats, then\n sends the resulting distribution files, along with their associated metadata,\n to the distribution channels.\n #> 5 \n A minimal workflow that transcodes the media into distribution formats, then\n sends the resulting distribution files, along with their associated metadata,\n to the distribution channels.\n #> state title event_identifier #> 1 succeeded Fast Testing Workflow 2c028936-6610-4ea2-af4e-bc88eb6ee50a #> 2 succeeded Fast Testing Workflow 4bfb829b-fe30-4ca4-8387-b5921781e6af #> 3 succeeded Fast Testing Workflow bb69d37c-f842-4818-acf5-1e7a6986e2c1 #> 4 succeeded Fast Testing Workflow 5f7b4557-e6c3-4669-a0f1-e7484d66617a #> 5 succeeded Fast Testing Workflow 71061353-56cc-4249-8b8c-6ae7e4fa694d #> #> $url #> [1] "https://legacy.opencast.org/api/workflows/" #> #> $response #> Response [https://legacy.opencast.org/api/workflows/?withoperations=FALSE&withconfigurationpanel=FALSE&filter=&sort=&limit=0&offset=0] #> Date: 2020-03-19 11:21 #> Status: 200 #> Content-Type: application/v1.2.0+json #> Size: 2.17 kB #> <BINARY BODY> #> #> attr(,"class") #> [1] "opencast_api"