Returns a single capture agent.

oc_agent(agentId = "")

Arguments

agentId

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

Value

A list containing details of a single capture agent.

Details

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

Examples

# \donttest{ Sys.setenv(OPENCAST_HOST = "https://legacy.opencast.org") Sys.setenv(OPENCAST_USERNAME = "admin") Sys.setenv(OPENCAST_PASSWORD = "opencast") agents <- oc_list_agents() oc_agent(agents$content$agent_id)
#> Error in if (agentId == "") { stop("No agentId specified.", call. = FALSE)}: argument is of length zero
# }