Skip to content

ListResources

GET/api/v1/resources

List resources. Resources are low-level APIs that represent objects that users can be granted access to in external systems. Users should be shown Listings and ListingRoles instead.

curl \
-H "Authorization: Bearer ${OBLIQUE_API_KEY}" \
"https://us.oblique.security/api/v1/resources"

Set OBLIQUE_API_KEY to your API key.

  • pageSizeinteger (int32)

    The maximum number of resources to return. This service may return fewer than this value.

  • pageTokenstring

    A page token, received from a previous ListResources call.

  • showDeletedboolean

    If true, include deleted resources in the response.

  • filterstring

    Filter that can be used to search for resources. Supported filters are:

    • integration - Search by the integration that the resource is associated with.
    • owner="users/{id}", owner="users/me", owner="teams/{id}", owner="groups/{id}" - Search by the owner of the resource. For users this includes transitive ownerships via a team or group.

    Filters can’t be combined.

200ListResourcesResponse
  • resourcesResource[]
    • namestring

      Assigned by Oblique. Name of the resource of the format resources/{id}.

    • displayNamestringrequired

      Display name of the resource.

    • descriptionstring

      Description of the resource.

    • integrationstringrequired

      The integration that this resource is associated with.

    • resourceIdstringread-only

      The identifier the integration uses for this resource.

      IDs are optional and opaque to clients. They are guarenteed to be unique within the scope of a single integration, but may overlap between integrations.

    • kindstringread-only

      A string representing the value of the metadata oneof. For example, cloudflare_user_group or cloudflare_resource_group.

    • createTimestring (date-time)read-only

      Create and update timestamps.

    • updateTimestring (date-time)read-only
    • deleteTimestring (date-time)read-only

      Resources can only be soft-deleted to preserve logs and history. If this field is present, the resource has been deleted and won’t be returned in lists.

    • managedStartTimestring (date-time)read-only

      The time when the resource was first switched to PUSH mode indicating when Oblique started managing the resource as the source of truth. Empty otherwise.

    • userCountinteger (int32)read-only

      The number of users that have either direct or indirect access to this resource.

      Note that this will move to status.user_count in the future.

    • syncModestring
      Allowed values: PULL, PUSH, PAUSED
    • supportsPushbooleanread-only

      Whether the integration that reported this resource can push to the object backing it. Determined by the access the integration was granted, and re-evaluated on every sync.

    • visibilityVisibility

      Who can view this resource. An unset visibility is equivalent to PUBLIC.

      • modestringrequired
        Allowed values: RESTRICTED, PUBLIC
      • audienceAudience

        Who has visibility into an object in addition to owners/admins. Ignored when mode = PUBLIC. Retained during mode changes so that users can toggle visibility modes without rebuilding the list every time.

        • usersstring[]

          Users named directly in the audience.

          Format: users/{user}

        • groupsstring[]

          Groups whose effective members are in the audience.

          Format: groups/{group}

        • teamsstring[]

          Teams whose effective members are in the audience.

          Format: teams/{team}

    • roleRequirementstringread-only
      Allowed values: NONE, AT_LEAST_ONE, EXACTLY_ONE

      The roles an entitlement granting access to this resource must name, as reported by the integration that owns it. Entitlements that don’t meet the requirement are rejected. An unset requirement places no constraint on the roles an entitlement carries.

    • One of

      • oktaGroupOktaGroup

        For groups/teams that are sourced from an integration, this field holds information about that object.

        • idstring

          The ID of the Okta group. Will be set unless group_create_name is set (indicating Oblique should create a group).

        • domainBaseUristring

          Full base URL of the Okta domain, including the schema. For example: https://dev-45752433-admin.okta.com

        • groupCreateNamestring

          If provided, the name of a group to be created in Okta.

        • groupCreateDescriptionstring

          If provided, the description of the group to be created in Okta.

        • groupRulesOktaGroupRule[]

          The set of rules that are applied to the group.

          • idstring

            The ID of the rule.

          • namestring

            The name of the rule.

        • appIdstring

          When the group is an APP_GROUP, this field will be set to the ID of the Okta app that the group is associated with.

        • typestring
          Allowed values: APP_GROUP, BUILT_IN, OKTA_GROUP
    • syncTimestring (date-time)read-only

      The last time this resource was synchronized successfully with its downstream.

    • statestringread-only
      Allowed values: SYNCING, ACTIVE, SUSPENDED, CREATING, RECALCULATING
  • nextPageTokenstring

    A token, which can be sent as page_token to retrieve the next page.

StatusMeaning
400Malformed request
401Missing or invalid API key
403Not allowed for this API key
404Not found
429Too many requests
500Internal server error