Skip to content

BatchGetResources

GET/api/v1/resources:batchGet

Translate a set of resource names resources/{id} to resources.

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

Set OBLIQUE_API_KEY to your API key.

  • namesstring[]required

    An explicit list of resources to request. Format: resources/{resource}.

200BatchGetResourcesResponse
  • resourcesResource[]

    All resources in the same order as the requested names.

    • namestring

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

    • uristringread-only

      Link to the resource’s page in the Oblique app, for example “https://us.oblique.security/resources/abc”.

    • displayNamestringrequired

      Display name of the resource.

    • descriptionstring

      Description of the resource.

    • integrationstringrequired

      The integration that this resource is associated with.

    • displayParentstringread-only

      The resource this resource is shown under, such as the GitHub organization that holds a repository or the Slack workspace that holds a channel. The display parent only organizes how resources are presented. Access to the display parent says nothing about access to this resource, and the caller may not be able to view it.

      Unset for a resource that sits at the top level.

    • 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.

    • resourceUristringread-only

      A link to the resource in the system that reported it, for example the member list of a Cloudflare user group. Empty for a resource whose integration reports no link for that resource.

    • 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, but can still be fetched by name.

    • 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.

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

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

    • capabilitiesCapabilitiesread-only

      The changes Oblique can push to this resource, determined by the integration that reported it and re-evaluated on every sync alongside supports_push. Requests for changes the resource doesn’t support are rejected. Unset for a resource whose integration can’t push to it, which places no constraint on requests.

      • entitlementUpdatebooleanread-only

        Whether Oblique can change the roles an existing entitlement carries.

      • entitlementAddbooleanread-only

        Whether Oblique can grant access to a subject that holds none.

      • entitlementRemovebooleanread-only

        Whether Oblique can take a subject’s access away, including when an entitlement expires.

    • 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}

    • memberRulesMemberRule[]read-only

      The rules for each kind of member the resource can hold, as stated by the integration that owns it. A resource holds only the kinds of member its rules name, each at the roles its rule allows.

      Each rule applies to a single entitlement. A user can hold access to the same resource through multiple entitlements with different roles, so they can hold more roles than a rule allows. How those roles combine depends on the integration.

      • memberKindstringread-only

        The kind of member the rule covers.

        “account” covers the accounts the integration reports, which users, teams and groups hold the resource through. Any other value is a kind of resource from the same integration, named as that resource’s kind names the kind: the name of the field in Resource that holds it, such as “github_team”.

      • roleGroupsRoleGroup[]read-only

        The roles such a member can be granted on the resource, in groups. Each role is in one group. When the groups name no roles, such a member holds the resource without one.

        • rolesstring[]read-only

          The roles in the group.

        • mininteger (int32)read-only

          The fewest of the group’s roles an entitlement names. Zero places no minimum.

        • maxinteger (int32)read-only

          The most of the group’s roles an entitlement names. Unset places no limit.

      • minRolesinteger (int32)read-only

        The fewest roles an entitlement for such a member names, across all the groups. Zero places no minimum.

      • maxHeldinteger (int32)read-only

        The most resources of this resource’s kind such a member can hold at once. Zero places no limit.

      • descriptionstringread-only

        The rule in words, such as “Through a single entitlement, a GitHub team can hold one role.” Empty when the rule places no limit.

    • 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. Required when creating or updating a resource.

        • domainBaseUristring

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

        • 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
    • statusResourceStatusread-only

      The progress of background work on this resource.

      • 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
StatusMeaning
400Malformed request
401Missing or invalid API key
403Not allowed for this API key
404Not found
429Too many requests
500Internal server error