Learn R Programming

arcgisutils (version 0.4.0)

arc_portal_resources: Portal File Resources

Description

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()
)

Value

a data.frame of resources available to your portal.

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

References

API Reference

See Also

Other portal: arc_portal_urls(), arc_portal_users(), self

Examples

Run this code
if (FALSE) {
  set_arc_token(auth_user())
  arc_portal_resources()
}

Run the code above in your browser using DataLab