list
List resource instances defined within the environment.
Parameters
tenant
(optional) - The tenant key or id to filter by
resource
(optional) - The resource key or id to filter by
page
(optional) - The page number of the results to fetch, starting at page 1
perPage
(optional) - The number of results per page (maximum of 100)
Implementation
await permit.api.resourceInstances.list({
tenant: "default",
resource: "file",
page: 1,
perPage: 20,
});