Skip to contents

The resources endpoint lists all file resources for the organization.

Usage

arc_portal_resources(
  id = arc_portal_self(token)[["id"]],
  page_size = 50,
  max_pages = Inf,
  .progress = TRUE,
  host = arc_host(),
  token = arc_token()
)

Arguments

id

the portal ID. By default it fetches the id from arc_portal_self().

page_size

a scalar integer between 1 and 100 indicating the number of responses per page.

max_pages

the maximum number of pages to fetch. By default fetches all pages.

.progress

default TRUE. Whether to display a progress bar for requests.

host

default "https://www.arcgis.com". The host of your ArcGIS Portal.

token

an object of class httr2_token as generated by auth_code() or related function

Value

a data.frame of resources available to your portal.

References

API Reference

See also

Examples

if (FALSE) { # \dontrun{
  set_arc_token(auth_user())
  arc_portal_resources()
} # }