Elastic Stack (ELK Stack) Deployments Traffic Filter API

The DeploymentsTrafficFilter API from Elastic Stack (ELK Stack) — 8 operation(s) for deploymentstrafficfilter.

GitHub OpenAPI

Operations 12

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /deployments/traffic-filter/associations/{association_type}/{associated_entity_id}/rulesets List rulesets applied to a deployment · Get associated rulesets #
Ask an LLM
“Which traffic filter rulesets are attached to my Elastic Cloud deployment?”
“How can I check what network restrictions currently protect a given deployment?”
Tell an agent
Show the traffic filter rulesets associated with {association_type} {associated_entity_id}.
List every ruleset protecting deployment {associated_entity_id} (association type {association_type}).
GET /deployments/traffic-filter/rulesets List traffic filter rulesets · List traffic filter rulesets #
Ask an LLM
“What IP and private link traffic filter rulesets do I have in Elastic Cloud?”
“Can I list rulesets for one region along with the deployments they apply to?”
Tell an agent
List all my traffic filter rulesets.
Show traffic filter rulesets in {region}, including their associations ({include_associations}).
POST /deployments/traffic-filter/rulesets Create a traffic filter ruleset · Create a ruleset #
Ask an LLM
“How do I restrict access to my deployments to a set of allowed IP addresses?”
“Can a new ruleset be applied automatically to every new deployment in a region?”
Tell an agent
Create a {type} traffic filter ruleset named {name} in {region} with rules {rules}.
Create ruleset {name} in {region} allowing {rules}, applied to new deployments by default: {include_by_default}, type {type}.
GET /deployments/traffic-filter/rulesets/{ruleset_id} Get a traffic filter ruleset · Retrieves the ruleset by ID #
Ask an LLM
“How do I see the rules inside one traffic filter ruleset?”
“Can I fetch a single ruleset together with the resources it is attached to?”
Tell an agent
Show traffic filter ruleset {ruleset_id}.
Get ruleset {ruleset_id} and include its associations.
PUT /deployments/traffic-filter/rulesets/{ruleset_id} Update a traffic filter ruleset · Updates a ruleset #
Ask an LLM
“How do I add a new allowed IP range to an existing ruleset?”
“Can I rename a traffic filter ruleset or change its description?”
Tell an agent
Update ruleset {ruleset_id} so its rules are {rules}.
Rename ruleset {ruleset_id} to {name} and describe it as {description}.
DELETE /deployments/traffic-filter/rulesets/{ruleset_id} Delete a traffic filter ruleset · Delete a ruleset #
Ask an LLM
“How do I delete a traffic filter ruleset I no longer need?”
“Can I delete a ruleset that is still attached to deployments?”
Tell an agent destructive · confirm first
Delete traffic filter ruleset {ruleset_id}.
Delete ruleset {ruleset_id} even if deployments still use it (ignore_associations={ignore_associations}).
GET /deployments/traffic-filter/rulesets/{ruleset_id}/associations List deployments using a ruleset · Get associated deployments #
Ask an LLM
“Which deployments is a particular traffic filter ruleset applied to?”
“Before I change a ruleset, how do I find every deployment it affects?”
Tell an agent
List the deployments associated with ruleset {ruleset_id}.
Show which deployments ruleset {ruleset_id} is attached to.
POST /deployments/traffic-filter/rulesets/{ruleset_id}/associations Apply a ruleset to a deployment · Create ruleset association #
Ask an LLM
“How do I attach a traffic filter ruleset to one of my deployments?”
“Can I apply an existing IP filter ruleset to a deployment without editing the ruleset?”
Tell an agent
Apply ruleset {ruleset_id} to {entity_type} {id}.
Attach traffic filter ruleset {ruleset_id} to deployment {id}.
DELETE /deployments/traffic-filter/rulesets/{ruleset_id}/associations/{association_type}/{associated_entity_id} Detach a ruleset from a deployment · Delete ruleset association #
Ask an LLM
“How do I remove a traffic filter ruleset from just one deployment?”
“Can I stop a ruleset applying to a deployment without deleting the ruleset?”
Tell an agent destructive · confirm first
Detach ruleset {ruleset_id} from {association_type} {associated_entity_id}.
Remove ruleset {ruleset_id} traffic rules from deployment {associated_entity_id}, type {association_type}.

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/elk-stack:elk-stack-deploymentstrafficfilter-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

elk-stack-deploymentstrafficfilter-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  version: '1'
  title: Elastic Cloud Enterprise Deployments Traffic Filter API
  termsOfService: ''
servers:
- url: https://{{hostname}}/api/v1
security:
- basicAuth: []
- apiKey: []
tags:
- name: DeploymentsTrafficFilter
paths:
  /deployments/traffic-filter/associations/{association_type}/{associated_entity_id}/rulesets:
    get:
      tags:
      - DeploymentsTrafficFilter
      summary: Get associated rulesets
      description: Retrieves the rulesets associated with a deployment.
      operationId: get-traffic-filter-deployment-ruleset-associations
      parameters:
      - name: association_type
        in: path
        description: Association type
        required: true
        schema:
          type: string
      - name: associated_entity_id
        in: path
        description: Associated entity ID
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Rulesets in the deployment were successfully returned
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TrafficFilterSettings'
        '400':
          description: 'Invalid association type. (code: `traffic_filter.invalid_association_type`)'
          headers:
            x-cloud-error-codes:
              description: The error codes associated with the response
              schema:
                type: string
                enum:
                - traffic_filter.invalid_association_type
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BasicFailedReply'
        '500':
          description: 'Error fetching traffic filter rulesets. (code: `traffic_filter.request_execution_failed`)'
          headers:
            x-cloud-error-codes:
              description: The error codes associated with the response
              schema:
                type: string
                enum:
                - traffic_filter.request_execution_failed
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BasicFailedReply'
      x-doc:
        tag: Deployments - Traffic Filter - Associations
  /deployments/traffic-filter/link-ids:
    get:
      tags:
      - DeploymentsTrafficFilter
      summary: List traffic filter claimed link id
      description: List all of the traffic filter claimed link id.
      operationId: get-traffic-filter-claimed-link-ids
      parameters:
      - name: region
        in: query
        description: If provided limits the claimed id to that region only.
        required: false
        schema:
          type: string
      - name: organization_id
        in: query
        description: Retrieves a list of resources that are associated to the specified organization ID. It only takes effect if the user is an admin.
        required: false
        schema:
          type: string
      responses:
        '200':
          description: The collection of traffic filter claimed link id
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TrafficFilterClaimedLinkIds'
        '500':
          description: 'Error fetching traffic filter claimed link ids. (code: `traffic_filter_claimed_link_id.request_execution_failed`)'
          headers:
            x-cloud-error-codes:
              description: The error codes associated with the response
              schema:
                type: string
                enum:
                - traffic_filter_claimed_link_id.request_execution_failed
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BasicFailedReply'
      x-doc:
        tag: Deployments - Traffic Filter Claimed Link Id
  /deployments/traffic-filter/link-ids/_claim:
    post:
      tags:
      - DeploymentsTrafficFilter
      summary: Claim a link id
      description: Claim the ownership of a link id.
      operationId: claim-traffic-filter-link-id
      responses:
        '201':
          description: The ruleset definition is valid and the creation has started.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TrafficFilterClaimedLinkIdInfo'
        '500':
          description: 'Error creating the traffic filter ruleset. (code: `traffic_filter_claimed_link_id.request_execution_failed`)'
          headers:
            x-cloud-error-codes:
              description: The error codes associated with the response
              schema:
                type: string
                enum:
                - traffic_filter_claimed_link_id.request_execution_failed
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BasicFailedReply'
      x-doc:
        tag: Deployments - Traffic Filter Claimed Link Id
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/TrafficFilterClaimedLinkIdRequest'
        description: The specification for traffic filter claimed link id.
        required: true
  /deployments/traffic-filter/link-ids/_unclaim:
    post:
      tags:
      - DeploymentsTrafficFilter
      summary: Unclaims a link id
      description: Unclaims the ownership of a link id.
      operationId: unclaim-traffic-filter-link-id
      responses:
        '200':
          description: The claimed link id was successfully deleted.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EmptyResponse'
        '400':
          description: 'Error validating the request. (code: `traffic_filter_claimed_link_id.invalid_input`)'
          headers:
            x-cloud-error-codes:
              description: The error codes associated with the response
              schema:
                type: string
                enum:
                - traffic_filter_claimed_link_id.invalid_input
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BasicFailedReply'
        '500':
          description: 'Error deleting the traffic filter claimed link id. (code: `traffic_filter_claimed_link_id.request_execution_failed`)'
          headers:
            x-cloud-error-codes:
              description: The error codes associated with the response
              schema:
                type: string
                enum:
                - traffic_filter_claimed_link_id.request_execution_failed
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BasicFailedReply'
      x-doc:
        tag: Deployments - Traffic Filter Claimed Link Id
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/TrafficFilterClaimedLinkIdRequest'
        description: The specification for traffic filter claimed link id.
        required: true
  /deployments/traffic-filter/rulesets:
    get:
      tags:
      - DeploymentsTrafficFilter
      summary: List traffic filter rulesets
      description: List all of the traffic filter rulesets.
      operationId: get-traffic-filter-rulesets
      parameters:
      - name: include_associations
        in: query
        description: Retrieves a list of resources that are associated to the specified ruleset.
        required: false
        schema:
          type: boolean
          default: false
      - name: region
        in: query
        description: If provided limits the rulesets to that region only.
        required: false
        schema:
          type: string
      - name: organization_id
        in: query
        description: Retrieves a list of resources that are associated to the specified organization ID. It only takes effect if the user is an admin.
        required: false
        schema:
          type: string
      responses:
        '200':
          description: The collection of traffic filter routes
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TrafficFilterRulesets'
        '500':
          description: 'Error fetching traffic filter rulesets. (code: `traffic_filter.request_execution_failed`)'
          headers:
            x-cloud-error-codes:
              description: The error codes associated with the response
              schema:
                type: string
                enum:
                - traffic_filter.request_execution_failed
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BasicFailedReply'
      x-doc:
        tag: Deployments - Traffic Filter - CRUD
    post:
      tags:
      - DeploymentsTrafficFilter
      summary: Create a ruleset
      description: Creates a ruleset that consists of a set of rules.
      operationId: create-traffic-filter-ruleset
      responses:
        '201':
          description: The ruleset definition is valid and the creation has started.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TrafficFilterRulesetResponse'
        '500':
          description: 'Error creating the traffic filter ruleset. (code: `traffic_filter.request_execution_failed`)'
          headers:
            x-cloud-error-codes:
              description: The error codes associated with the response
              schema:
                type: string
                enum:
                - traffic_filter.request_execution_failed
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BasicFailedReply'
      x-doc:
        tag: Deployments - Traffic Filter - CRUD
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/TrafficFilterRulesetRequest'
        description: The specification for traffic filter ruleset.
        required: true
  /deployments/traffic-filter/rulesets/{ruleset_id}:
    get:
      tags:
      - DeploymentsTrafficFilter
      summary: Retrieves the ruleset by ID
      description: Retrieves a list of resources that are associated to the specified ruleset.
      operationId: get-traffic-filter-ruleset
      parameters:
      - name: ruleset_id
        in: path
        description: The mandatory ruleset ID.
        required: true
        schema:
          type: string
      - name: include_associations
        in: query
        description: Retrieves a list of resources that are associated to the specified ruleset.
        required: false
        schema:
          type: boolean
          default: false
      responses:
        '200':
          description: The container for a set of traffic filter rules.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TrafficFilterRulesetInfo'
        '404':
          description: 'The traffic filter ruleset specified by {ruleset_id} cannot be found. (code: `traffic_filter.not_found`)'
          headers:
            x-cloud-error-codes:
              description: The error codes associated with the response
              schema:
                type: string
                enum:
                - traffic_filter.not_found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BasicFailedReply'
        '500':
          description: 'Error reading the traffic filter ruleset. (code: `traffic_filter.request_execution_failed`)'
          headers:
            x-cloud-error-codes:
              description: The error codes associated with the response
              schema:
                type: string
                enum:
                - traffic_filter.request_execution_failed
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BasicFailedReply'
      x-doc:
        tag: Deployments - Traffic Filter - CRUD
    put:
      tags:
      - DeploymentsTrafficFilter
      summary: Updates a ruleset
      description: Updates the ruleset with the definition.
      operationId: update-traffic-filter-ruleset
      parameters:
      - name: ruleset_id
        in: path
        description: The mandatory ruleset ID.
        required: true
        schema:
          type: string
      responses:
        '200':
          description: The ruleset definition was valid and the update has started.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TrafficFilterRulesetResponse'
        '404':
          description: 'The traffic filter ruleset specified by {ruleset_id} cannot be found. (code: `traffic_filter.not_found`)'
          headers:
            x-cloud-error-codes:
              description: The error codes associated with the response
              schema:
                type: string
                enum:
                - traffic_filter.not_found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BasicFailedReply'
        '500':
          description: 'Error reading the traffic filter ruleset. (code: `traffic_filter.request_execution_failed`)'
          headers:
            x-cloud-error-codes:
              description: The error codes associated with the response
              schema:
                type: string
                enum:
                - traffic_filter.request_execution_failed
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BasicFailedReply'
      x-doc:
        tag: Deployments - Traffic Filter - CRUD
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/TrafficFilterRulesetRequest'
        description: The specification for traffic filter ruleset.
        required: true
    delete:
      tags:
      - DeploymentsTrafficFilter
      summary: Delete a ruleset
      description: Deletes the ruleset by ID.
      operationId: delete-traffic-filter-ruleset
      parameters:
      - name: ruleset_id
        in: path
        description: The mandatory ruleset ID.
        required: true
        schema:
          type: string
      - name: ignore_associations
        in: query
        description: When true, ignores the associations and deletes the ruleset. When false, recognizes the associations, which prevents the deletion of the rule set.
        required: false
        schema:
          type: boolean
          default: false
      responses:
        '200':
          description: The traffic filter ruleset was successfully deleted.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EmptyResponse'
        '404':
          description: 'The traffic filter ruleset specified by {ruleset_id} cannot be found. (code: `traffic_filter.not_found`)'
          headers:
            x-cloud-error-codes:
              description: The error codes associated with the response
              schema:
                type: string
                enum:
                - traffic_filter.not_found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BasicFailedReply'
        '500':
          description: 'Error deleting the traffic filter ruleset. (code: `traffic_filter.request_execution_failed`)'
          headers:
            x-cloud-error-codes:
              description: The error codes associated with the response
              schema:
                type: string
                enum:
                - traffic_filter.request_execution_failed
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BasicFailedReply'
      x-doc:
        tag: Deployments - Traffic Filter - CRUD
  /deployments/traffic-filter/rulesets/{ruleset_id}/associations:
    get:
      tags:
      - DeploymentsTrafficFilter
      summary: Get associated deployments
      description: Retrieves a list of deployments that are associated to the specified ruleset.
      operationId: get-traffic-filter-ruleset-deployment-associations
      parameters:
      - name: ruleset_id
        in: path
        description: The mandatory ruleset ID.
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Associations referred by traffic filter rulesets were successfully returned
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RulesetAssociations'
        '500':
          description: 'Error fetching deployments. (code: `traffic_filter.request_execution_failed`)'
          headers:
            x-cloud-error-codes:
              description: The error codes associated with the response
              schema:
                type: string
                enum:
                - traffic_filter.request_execution_failed
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BasicFailedReply'
      x-doc:
        tag: Deployments - Traffic Filter - Associations
    post:
      tags:
      - DeploymentsTrafficFilter
      summary: Create ruleset association
      description: Applies the ruleset to the specified deployment.
      operationId: create-traffic-filter-ruleset-association
      parameters:
      - name: ruleset_id
        in: path
        description: The mandatory ruleset ID.
        required: true
        schema:
          type: string
      responses:
        '201':
          description: Create association request was valid and the association has been created
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EmptyResponse'
        '200':
          description: Create association request was valid and the association already exists
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EmptyResponse'
        '404':
          description: 'The traffic filter ruleset specified by {ruleset_id} cannot be found. (code: `traffic_filter.not_found`)'
          headers:
            x-cloud-error-codes:
              description: The error codes associated with the response
              schema:
                type: string
                enum:
                - traffic_filter.not_found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BasicFailedReply'
        '500':
          description: 'Creation failed. (code: `traffic_filter.request_execution_failed`)'
          headers:
            x-cloud-error-codes:
              description: The error codes associated with the response
              schema:
                type: string
                enum:
                - traffic_filter.request_execution_failed
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BasicFailedReply'
      x-doc:
        tag: Deployments - Traffic Filter - Associations
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/FilterAssociation'
        description: Mandatory ruleset association description
        required: true
  /deployments/traffic-filter/rulesets/{ruleset_id}/associations/{association_type}/{associated_entity_id}:
    delete:
      tags:
      - DeploymentsTrafficFilter
      summary: Delete ruleset association
      description: Deletes the traffic rules in the ruleset from the deployment.
      operationId: delete-traffic-filter-ruleset-association
      parameters:
      - name: ruleset_id
        in: path
        description: The mandatory ruleset ID.
        required: true
        schema:
          type: string
      - name: association_type
        in: path
        description: Association type
        required: true
        schema:
          type: string
      - name: associated_entity_id
        in: path
        description: Associated entity ID
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Delete association request was valid and the association has been deleted
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EmptyResponse'
        '404':
          description: 'The traffic filter ruleset association cannot be found. (code: `traffic_filter.not_found`)'
          headers:
            x-cloud-error-codes:
              description: The error codes associated with the response
              schema:
                type: string
                enum:
                - traffic_filter.not_found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BasicFailedReply'
        '500':
          description: 'Deletion failed. (code: `traffic_filter.request_execution_failed`)'
          headers:
            x-cloud-error-codes:
              description: The error codes associated with the response
              schema:
                type: string
                enum:
                - traffic_filter.request_execution_failed
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BasicFailedReply'
      x-doc:
        tag: Deployments - Traffic Filter - Associations
components:
  schemas:
    EmptyResponse:
      type: object
    TrafficFilterRulesetInfo:
      type: object
      required:
      - id
      - include_by_default
      - name
      - region
      - rules
      - type
      properties:
        id:
          type: string
          description: The ruleset ID
        name:
          type: string
          description: Name of the ruleset
        description:
          type: string
          description: Description of the ruleset
        type:
          type: string
          description: Type of the ruleset
          enum:
          - ip
          - azure_private_endpoint
          - gcp_private_service_connect_endpoint
          - vpce
          - egress_firewall
          - remote_cluster
        include_by_default:
          type: boolean
          description: Should the ruleset be automatically included in the new deployments
        region:
          type: string
          description: The ruleset can be attached only to deployments in the specific region
        rules:
          type: array
          description: List of rules
          items:
            $ref: '#/components/schemas/TrafficFilterRule'
        associations:
          type: array
          description: List of associations. Returned only when include_associations query parameter is true
          items:
            $ref: '#/components/schemas/FilterAssociation'
        total_associations:
          type: integer
          format: int32
          description: Total number of associations. This includes associations the user does not have permission to view.Returned only when include_associations query parameter is true
      description: The container for a set of traffic filter rules.
    RulesetAssociations:
      type: object
      required:
      - associations
      - total_associations
      properties:
        associations:
          type: array
          description: List of associations
          items:
            $ref: '#/components/schemas/FilterAssociation'
        total_associations:
          type: integer
          format: int32
          description: Total number of associations. This includes associations the user does not have permission to view.
      description: The configuration settings for the traffic filter.
    BasicFailedReply:
      type: object
      required:
      - errors
      properties:
        errors:
          type: array
          description: A list of errors that occurred in the failing request
          items:
            $ref: '#/components/schemas/BasicFailedReplyElement'
    BasicFailedReplyElement:
      type: object
      required:
      - code
      - message
      properties:
        code:
          type: string
          description: A structured code representing the error type that occurred
        message:
          type: string
          description: A human readable message describing the error that occurred
        fields:
          type: array
          description: If the error can be tied to a specific field or fields in the user request, this lists those fields
          items:
            type: string
    TrafficFilterSettings:
      type: object
      required:
      - rulesets
      properties:
        rulesets:
          type: array
          description: IDs of the traffic filter rulesets
          items:
            type: string
      description: The configuration settings for the traffic filter.
    TrafficFilterEgressRule:
      type: object
      required:
      - protocol
      - target
      properties:
        target:
          type: string
          description: 'Allowed traffic filter egress target: IP address or CIDR mask'
        ports:
          type: array
          description: A list of target ports for an egress rule
          items:
            type: integer
            format: int32
        protocol:
          type: string
          description: The target protocol for an egress rule
          enum:
          - all
          - tcp
          - udp
      description: The rule detail for a traffic filter egress rule.
    TrafficFilterRulesetResponse:
      type: object
      required:
      - id
      properties:
        id:
          type: string
          description: The new ruleset ID
      description: The response after you create a new ruleset.
    TrafficFilterClaimedLinkIdRequest:
      type: object
      required:
      - region
      properties:
        link_id:
          type: string
          description: Link id. A GCP private service connect ID or AWS VPC endpoint ID
        azure_endpoint_name:
          type: string
          description: Name of the Azure Private Endpoint to allow connections from
        azure_endpoint_guid:
          type: string
          description: Resource GUID of the Azure Private Endpoint to allow connections from
        region:
          type: string
          description: The claimed link id can be used only for traffic filter in the specific region
      description: The specification for traffic filter claimed link id.
    TrafficFilterClaimedLinkIds:
      type: object
      required:
      - claimed_link_ids
      properties:
        claimed_link_ids:
          type: array
          description: List of traffic filter claimed link id
          items:
            $ref: '#/components/schemas/TrafficFilterClaimedLinkIdInfo'
      description: The container for a set of traffic filter claimed link id.
    TrafficFilterClaimedLinkIdInfo:
      type: object
      required:
      - region
      properties:
        link_id:
          type: string
          description: Link id. A GCP private service connect ID or AWS VPC endpoint ID
        azure_endpoint_name:
          type: string
          description: Name of the Azure Private Endpoint to allow connections from
        azure_endpoint_guid:
          type: string
          description: Resource GUID of the Azure Private Endpoint to allow connections from
        region:
          type: string
          description: The claimed link id can be used only for traffic filter in the specific region
    TrafficFilterRulesets:
      type: object
      required:
      - rulesets
      properties:
        rulesets:
          type: array
          description: List of traffic filter rules
          items:
            $ref: '#/components/schemas/TrafficFilterRulesetInfo'
      description: The container for a set of traffic filter rulesets.
    FilterAssociation:
      type: object
      required:
      - entity_type
      - id
      properties:
        entity_type:
          type: string
          description: Type of the traffic filter ruleset association, such as 'deployment', 'cluster'
        id:
          type: string
          description: ID of the entity, such as the deployment ID or Elasticsearch cluster ID.
      description: The association with a ruleset or user auth token for a deployment, template, or product.
    TrafficFilterRulesetRequest:
      type: object
      required:
      - include_by_default
      - name
      - region
      - rules
      - type
      properties:
        name:
          type: string
          description: Name of the ruleset
        description:
          type: string
          description: Description of the ruleset
        type:
          type: string
          description: Type of the ruleset
        include_by_default:
          type: boolean
          description: Should the ruleset be automatically included in the new deployments
        region:
          type: string
          description: The ruleset can be attached only to deployments in the specific region
        rules:
          type: array
          description: List of rules
          items:
            $ref: '#/components/schemas/TrafficFilterRule'
      description: The specification for traffic filter ruleset.
    TrafficFilterRule:
      type: object
      properties:
        id:
          type: string
          description: The rule ID
        remote_cluster_org_id:
          type: string
          description: The remote cluster organization ID
        remote_cluster_id:
          type: string
          description: The remote cluster ID
        description:
          type: string
          description: Description of the rule
        source:
          type: string
          description: 'Allowed traffic filter source: IP address, CIDR mask, or VPC endpoint ID'
        azure_endpoint_name:
          type: string
          description: Name of the Azure Private Endpoint to allow connections from
        azure_endpoint_guid:
          type: string
          description: Resource GUID of the Azure Private Endpoint to allow connections from
        egress_rule:
          description: An egress traffic filter rule
          $ref: '#/components/schemas/TrafficFilterEgressRule'
      description: The container for a traffic filter rule.
  securitySchemes:
    apiKey:
      type: apiKey
      name: Authorization
      in: header
    basicAuth:
      type: http
      scheme: basic
x-elastic:
  curl:
    auth: '-H "Authorization: ApiKey $ECE_API_KEY"'