search.inputs.Rd
Search PEcAn Input files from the database using search based on
model_id & site_id Hits the /api/inputs/
API endpoint with
relevant query parameters
search.inputs(
server,
model_id = NULL,
site_id = NULL,
format_id = NULL,
host_id = NULL,
offset = 0,
limit = 50
)
Server object obtained using the connect() function
ID of the model associated with the input, Default: NULL (Returns all models)
ID of the model associated with the input, Default: NULL (Returns all sites)
ID of the format associated with the input, Default: NULL (Returns all formats)
ID of the host containing the input, Default: NULL (Returns all hosts)
The number of workflows to skip before starting to collect the result set.
The number of workflows to return (Available values : 10, 20, 50, 100, 500)
Response obtained from the /api/inputs/
endpoint with relevant query parameters
server <- connect(url="http://pecan.localhost:80", username="carya", password="illinois")
# Get details of all inputs
res1 <- search.inputs(server)
#> Error in loadNamespace(x): there is no package called ‘stringr’
# Get details of all inputs for the SIPNET ssr model (id = 1000000022)
res2 <- search.inputs(server, model_id="1000000022")
#> Error in loadNamespace(x): there is no package called ‘stringr’
# Get details of all inputs for the SIPNET ssr model (id = 1000000022) & Niwor Ridge site (id = 772)
res3 <- search.inputs(server, model_id="1000000022", site_id="772")
#> Error in loadNamespace(x): there is no package called ‘stringr’