Elastio Policy Membership API

Which assets a policy currently covers.

GitHub OpenAPI
Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent with a free APIs.io key — sign in with GitHub, Google or LinkedIn. No form to fill in; signing in shares your email address with us (Privacy).

Operations 5

GET /gateway/shared-services/v2/assets/{id}/policies List the policies whose membership covers an asset #
GET /gateway/shared-services/v2/azure/subscription-regions Live Azure (subscription, region) pairs #
GET /gateway/shared-services/v2/policies/{name}/membership Compute the assets currently selected by a stored policy #
GET /gateway/shared-services/v2/policies/{name}/subscription-regions Azure (subscription, region) pairs a stored policy covers #
POST /gateway/shared-services/v2/policies/scope-preview Compute the assets a draft policy definition would select #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/elastio:elastio-policy-membership-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

elastio-policy-membership-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Elastio Policy Membership API
  description: 'The Elastio API gives you access to the Elastio platform from code. Hunt looks for ransomware, malware, and corrupted files in live, replicated, and backup data. Pursuit investigates copies of your systems for evidence of compromise. The API returns what both find, the incidents they raise, and the evidence that proves which recovery point is clean.


    ## Base URL


    Every request goes to your tenant:


    ```

    https://{tenant}.app.elastio.com

    ```


    `{tenant}` is the subdomain you use to sign in to the Elastio console.


    ## Authentication


    Send a personal access token (PAT) in the `Authorization` header:


    ```

    Authorization: Bearer

    ```


    Tenant admins issue tokens from the Elastio console or with `POST /gateway/shared-services/v1/personal-access-tokens`. Tokens can be scoped to the categories `inventory`, `security`, `protection`, `reporting`, `integrations` and `admin`, each with `read` or `write` access. See the authentication guide for details.


    ## Trying requests


    Select **Test Request** on any operation to send it from your browser. Enter your tenant in the server field and your token under **Authentication**. Requests run against your live tenant, so write operations change real data.'
  version: 1.0.0
  contact:
    name: Elastio Support
    email: support@elastio.com
    url: https://support.elastio.com
  license:
    name: Copyright © Elastio Software, Inc. All rights reserved.
    url: https://elastio.com
servers:
- url: https://{tenant}.app.elastio.com
  description: Your Elastio tenant
  variables:
    tenant:
      default: your-tenant
      description: The subdomain of your Elastio console URL
security:
- authorization: []
tags:
- name: Policy Membership
  description: Which assets a policy currently covers.
paths:
  /gateway/shared-services/v2/assets/{id}/policies:
    get:
      description: The asset→policies reverse lookup, served from the precomputed edge model. Returns the policy names whose active membership includes this catalog asset. Optional `kind` filters by `policy_asset_memberships.policy_kind` (`scheduled` or `event`); omit to return both. 503 when membership storage is not enabled.
      operationId: getAssetPolicies
      parameters:
      - description: Catalog asset UUID
        in: path
        name: id
        required: true
        schema:
          format: uuid
          type: string
      - description: Filter by policy kind. Omit to include both scheduled and event policies.
        in: query
        name: kind
        schema:
          enum:
          - scheduled
          - event
          type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AssetPoliciesResponse'
          description: Policies covering the asset
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MembershipErrorResponse'
          description: Invalid kind query parameter
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MembershipErrorResponse'
          description: Missing or invalid tenant context
        '503':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MembershipErrorResponse'
          description: Membership storage not enabled
      summary: List the policies whose membership covers an asset
      tags:
      - Policy Membership
  /gateway/shared-services/v2/azure/subscription-regions:
    get:
      description: Distinct catalog pairs that currently hold a live Azure VM, disk, blob container, or file share. Live predicates match ingestion's live-assets CTE. Viewer-readable; scoped callers are filtered to their Azure subscriptions. Empty inventory is 200 with an empty array, not 404.
      operationId: listAzureSubscriptionRegions
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SubscriptionRegionsResponse'
          description: Distinct (subscription, region) pairs, sorted
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MembershipErrorResponse'
          description: Missing or invalid tenant context
        '500':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MembershipErrorResponse'
          description: Internal error
      summary: Live Azure (subscription, region) pairs
      tags:
      - Policy Membership
  /gateway/shared-services/v2/policies/{name}/membership:
    get:
      description: Resolves the policy via one exact-name lookup of the authoritative `policies` table (any platform), loads candidate assets from the catalog (covering pre-filters limit the scan to the policy's account/region scope), and evaluates the policy's selectors against each candidate. Returns the catalog asset ids that match.
      operationId: getPolicyMembership
      parameters:
      - $ref: '#/components/parameters/MembershipPolicyName'
      - description: '`computed` (default) evaluates the policy''s selectors live against current inventory. `stored` reads the precomputed membership from the last engine pass; returns 503 when that storage is not enabled.'
        in: query
        name: source
        schema:
          default: computed
          enum:
          - computed
          - stored
          type: string
      - $ref: '#/components/parameters/MembershipPageLimit'
      - $ref: '#/components/parameters/MembershipPageOffset'
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MembershipResponse'
          description: Computed membership
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MembershipErrorResponse'
          description: Invalid policy name or pagination parameters
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MembershipErrorResponse'
          description: Missing or invalid tenant context
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MembershipErrorResponse'
          description: Policy not found
        '500':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MembershipErrorResponse'
          description: Internal error (including matcher failures)
        '503':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MembershipErrorResponse'
          description: source=stored requested but membership storage is not enabled
      summary: Compute the assets currently selected by a stored policy
      tags:
      - Policy Membership
  /gateway/shared-services/v2/policies/{name}/subscription-regions:
    get:
      description: Resolves the named policy, then returns distinct pairs from its active `policy_asset_memberships` edges (the same stored membership the engine writes). Azure only. Unknown name is 404; AWS/IBM is 400. A policy with no edges yet is 200 with an empty array.
      operationId: getPolicySubscriptionRegions
      parameters:
      - $ref: '#/components/parameters/MembershipPolicyName'
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SubscriptionRegionsResponse'
          description: Distinct (subscription, region) pairs, sorted
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MembershipErrorResponse'
          description: Policy is not Azure, or the name is invalid
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MembershipErrorResponse'
          description: Missing or invalid tenant context
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MembershipErrorResponse'
          description: Policy not found
        '500':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MembershipErrorResponse'
          description: Internal error
      summary: Azure (subscription, region) pairs a stored policy covers
      tags:
      - Policy Membership
  /gateway/shared-services/v2/policies/scope-preview:
    post:
      description: Evaluates an unsaved policy definition against the tenant's current inventory without persisting anything. AWS drafts supply `selectors` and `account_region_selectors` (the same JSON shapes accepted by the v2 policies API); Azure/IBM drafts supply the cluster `policy_yaml` document.
      operationId: previewPolicyScope
      parameters:
      - $ref: '#/components/parameters/MembershipPageLimit'
      - $ref: '#/components/parameters/MembershipPageOffset'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ScopePreviewRequest'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MembershipResponse'
          description: Computed membership for the draft definition
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MembershipErrorResponse'
          description: Invalid body, platform, or pagination parameters
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MembershipErrorResponse'
          description: Missing or invalid tenant context
        '500':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MembershipErrorResponse'
          description: Internal error (including matcher failures)
      summary: Compute the assets a draft policy definition would select
      tags:
      - Policy Membership
components:
  schemas:
    AzureSubscriptionRegion:
      properties:
        asset_counts:
          $ref: '#/components/schemas/AzureAssetCounts'
        azure_tenant_id:
          description: Picker only. The Azure AD tenant the subscription belongs to. Absent when unknown and on the per-policy variant.
          type: string
        region:
          type: string
        subscription_id:
          type: string
        subscription_name:
          type: string
        subscription_state:
          description: 'Picker only. The subscription''s state as recorded by inventory: enabled, warned, past_due, disabled, or deleted. Absent on the per-policy variant.'
          type: string
      required:
      - subscription_id
      - subscription_name
      - region
      type: object
    AssetPoliciesResponse:
      properties:
        asset_id:
          format: uuid
          type: string
        policies:
          items:
            type: string
          type: array
      required:
      - asset_id
      - policies
      type: object
    ScopePreviewRequest:
      properties:
        account_region_selectors:
          description: 'AWS only: account/region scope pairs.'
          items:
            properties:
              account_id:
                type: string
              region:
                type: string
            required:
            - account_id
            - region
            type: object
          type: array
        name:
          description: Display name echoed back in the response (optional).
          type: string
        platform:
          enum:
          - AWS
          - Azure
          - IBM
          type: string
        policy_yaml:
          description: 'Azure/IBM only; the cluster policy document (`scan_policies: {...}` YAML), as stored in `cluster_options`.'
          type: string
        selectors:
          description: 'AWS only; plan selectors exactly as accepted by the v2 policies API (`{"criteria": [...]}` objects).'
          items:
            type: object
          type: array
        subscription_ids:
          description: 'Azure only: the draft''s typed scope. When present, `policy_yaml` is AND-ed with these subscriptions before matching, exactly as a stored subscription-scoped policy is, so the preview reports what the saved policy would cover.'
          items:
            format: uuid
            type: string
          type: array
      required:
      - platform
      type: object
    SubscriptionRegionsResponse:
      properties:
        subscription_regions:
          description: Distinct Azure (subscription, region) pairs. Never null.
          items:
            $ref: '#/components/schemas/AzureSubscriptionRegion'
          type: array
      required:
      - subscription_regions
      type: object
    MembershipErrorResponse:
      properties:
        code:
          type: string
        error:
          type: string
      required:
      - error
      type: object
    MembershipResponse:
      properties:
        asset_ids:
          description: Catalog asset UUIDs in this page, sorted.
          items:
            format: uuid
            type: string
          type: array
        candidate_assets:
          description: Number of catalog assets evaluated.
          type: integer
        computed_at:
          format: date-time
          type: string
        pagination:
          properties:
            limit:
              type: integer
            offset:
              type: integer
          required:
          - limit
          - offset
          type: object
        platform:
          enum:
          - AWS
          - Azure
          - IBM
          type: string
        policy_name:
          type: string
        total_matched:
          description: Total matches before pagination.
          type: integer
      required:
      - policy_name
      - platform
      - candidate_assets
      - total_matched
      - asset_ids
      - computed_at
      - pagination
      type: object
    AzureAssetCounts:
      description: 'Picker only. Live asset counts for the (subscription, region) pair, per matchable kind: the same live predicates the pair listing uses. Absent on the per-policy variant.'
      properties:
        azure_blob_container:
          type: integer
        azure_disk:
          type: integer
        azure_storage_file_share:
          type: integer
        azure_vm:
          type: integer
      required:
      - azure_vm
      - azure_disk
      - azure_blob_container
      - azure_storage_file_share
      type: object
  parameters:
    MembershipPolicyName:
      description: Policy name (URL-encoded)
      in: path
      name: name
      required: true
      schema:
        type: string
    MembershipPageOffset:
      description: Page offset (default 0)
      in: query
      name: offset
      schema:
        default: 0
        minimum: 0
        type: integer
    MembershipPageLimit:
      description: Page size (1..1000, default 100)
      in: query
      name: limit
      schema:
        default: 100
        maximum: 1000
        minimum: 1
        type: integer
  securitySchemes:
    authorization:
      type: http
      scheme: bearer
      description: 'A personal access token (PAT) sent as `Authorization: Bearer <token>`. Tenant admins issue tokens from the Elastio console or with `POST /gateway/shared-services/v1/personal-access-tokens`.'
    bearerAuth:
      type: http
      scheme: bearer
      description: Integration channel token issued by Elastio for inbound partner events (Wiz).
externalDocs:
  description: Elastio Developer Portal
  url: https://developer.elastio.com
x-tagGroups:
- name: Platform
  tags:
  - System
  - Tenant Settings
  - Licenses
  - Plan
  - Billing
  - Early Access
  - AI Provider Credentials
- name: Identity & Access
  tags:
  - Users
  - User Groups
  - Roles
  - Account Groups
  - Personal Access Tokens
  - Audit Logs
- name: Inventory & Deployments
  tags:
  - Deployments
  - Assets
  - Search
  - Inventory
  - Asset Accounts
  - Tags
  - Azure Subscriptions
  - GCP Projects
  - IBM
  - OVA Accounts
  - Vault
  - Database Monitoring
  - Data
- name: Backups & Recovery Points
  tags:
  - Backup
- name: Hunts & Investigations
  tags:
  - Scans
  - Scan Jobs
  - Hunt Rules
  - Custom Hunts
  - Pursuit
  - Pursuit Scans
  - Threats
  - Ransomware
  - Data Classification
- name: Findings & Response
  tags:
  - Incidents
  - Findings
  - Violations
  - Issues
  - Posture
  - Compliance
  - DRS
- name: Policies & Jobs
  tags:
  - Policies
  - Policy Schedules
  - Policy Membership
  - System Policies
  - System Events
  - Jobs
- name: Recovery & Evidence
  tags:
  - Resilience Program
  - Recovery Verdict
  - Recovery Analytics
  - Evidence
  - Security Metrics
- name: Reporting
  tags:
  - Reports
  - Report Schedules
  - EQL
- name: Alerts & Integrations
  tags:
  - Alerts
  - Webhooks
  - Slack
  - Splunk
  - VirusTotal
  - Wiz
  - GuardDuty