> ## Documentation Index
> Fetch the complete documentation index at: https://docs.devin.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Ziele aus einem Devin Connect-Gateway entfernen

> Entfernen Sie Ziele aus der Liste des Gateways; nicht in der Liste enthaltene Ziele werden ignoriert.

**Entfernt** die im Request-Body angegebenen Ziele aus einem [Devin Connect](https://docs.devin.ai/de/enterprise/deployment/devin-connect.md)-Gateway. Die Ziele werden im Request-Body statt im Pfad übergeben, da ein IPv4-CIDR-Block das Zeichen `/` enthält.

## Berechtigungen

Erfordert einen [Service-Benutzer](https://docs.devin.ai/de/api-reference/v3/service-users/members-service-users.md) oder ein [persönliches Zugriffstoken](https://docs.devin.ai/de/api-reference/personal-access-tokens.md) mit der Berechtigung `ManageEnterpriseSettings` auf Enterprise-Ebene. Devin Connect muss für das Enterprise aktiviert sein, andernfalls gibt der Endpunkt `403` zurück.

## Verhalten

* Ziele verwenden dasselbe Format wie bei [Gateway-Ziele hinzufügen](https://docs.devin.ai/de/api-reference/v3/devin-connect/post-enterprise-devin-connect-gateway-destinations.md) und werden vor dem Abgleich auf dieselbe Weise normalisiert.
* Ziele, die das Gateway nicht routet, werden ignoriert. Ein wiederholtes Entfernen ist daher unbedenklich.
* Um alle Ziele zu entfernen, verwenden Sie [Gateway-Ziele ersetzen](https://docs.devin.ai/de/api-reference/v3/devin-connect/put-enterprise-devin-connect-gateway-destinations.md) mit einer leeren Liste.
* Das Entfernen eines Ziels aus dem Gateway wirkt sich auf kein [Security Profile](https://docs.devin.ai/de/product-guides/security-profiles.md) aus. Soll der Host nicht mehr erlaubt sein, entfernen Sie ihn separat aus `net_policy.allow` des Profils.
* Änderungen werden im [Audit-Protokoll](https://docs.devin.ai/de/api-reference/v3/audit-logs/enterprise-audit-logs.md) als `update_gateway_hostnames` aufgezeichnet.


## OpenAPI

````yaml de/v3-openapi.yaml DELETE /v3beta1/enterprise/devin-connect/gateways/{gateway_id}/destinations
openapi: 3.1.0
info:
  description: Devin v3 API mit Service-User-Authentifizierung und RBAC
  title: Devin API v3
  version: 3.0.0
servers: []
security:
  - bearerAuth: []
paths:
  /v3beta1/enterprise/devin-connect/gateways/{gateway_id}/destinations:
    delete:
      tags:
        - devin-connect
      summary: Ziele aus einem Devin Connect-Gateway entfernen
      description: >-
        Entfernen Sie Ziele aus der Liste des Gateways; nicht in der Liste
        enthaltene Ziele werden ignoriert.
      operationId: >-
        handle_remove_devin_connect_gateway_destinations_v3beta1_enterprise_devin_connect_gateways__gateway_id__destinations_delete
      parameters:
        - in: path
          name: gateway_id
          required: true
          schema:
            title: Gateway Id
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DevinConnectDestinationsRemoveRequest'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DevinConnectGateway'
          description: Erfolgreiche Antwort
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProblemDetail'
          description: Nicht authentifiziert
        '403':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProblemDetail'
          description: Zugriff verweigert
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProblemDetail'
          description: Nicht gefunden
        '409':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProblemDetail'
          description: Konflikt
        '410':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProblemDetail'
          description: Nicht mehr verfügbar
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProblemDetail'
          description: Nicht verarbeitbarer Inhalt
        '429':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProblemDetail'
          description: Zu Viele Anfragen
components:
  schemas:
    DevinConnectDestinationsRemoveRequest:
      description: Entfernt Ziele aus einem Gateway.
      properties:
        destinations:
          description: >-
            Zu entfernende Ziele. Nicht im Gateway vorhandene Ziele werden
            ignoriert, sodass das Entfernen gefahrlos wiederholt werden kann.
          items:
            $ref: '#/components/schemas/DevinConnectDestination'
          title: Destinations
          type: array
      required:
        - destinations
      title: DevinConnectDestinationsRemoveRequest
      type: object
    DevinConnectGateway:
      description: >-
        Ein Devin Connect-Gateway und die Ziele, zu denen der Datenverkehr
        darüber geleitet wird.
      properties:
        connected:
          anyOf:
            - type: boolean
            - type: 'null'
          description: Ob ein Tunnel-Gateway derzeit verbunden ist; null bei direct
          title: Connected
        destinations:
          description: Ziele, zu denen der Datenverkehr über dieses Gateway geleitet wird
          items:
            $ref: '#/components/schemas/DevinConnectDestination'
          title: Destinations
          type: array
        gateway_id:
          description: Gateway-ID
          title: Gateway Id
          type: string
        kind:
          description: >-
            tunnel: Das Kundengateway stellt die Verbindung her; direct: Devin
            stellt die Verbindung zum Gateway her (z. B. über AWS PrivateLink)
          enum:
            - tunnel
            - direct
          title: Kind
          type: string
        last_connected_at:
          anyOf:
            - type: integer
            - type: 'null'
          description: Zeitpunkt der letzten Meldung eines Tunnel-Gateways
          title: Last Connected At
        name:
          description: Gateway-Name
          title: Name
          type: string
      required:
        - gateway_id
        - name
        - kind
        - destinations
      title: DevinConnectGateway
      type: object
    ProblemDetail:
      description: >-
        RFC 9457 application/problem+json-Fehlertext für die v3-API.


        detail wird aus dem Legacy-Body {"detail": ...} aus Gründen der
        Abwärtskompatibilität beibehalten; die

        anderen Member sind additiv. errors enthält Validierungsfehler auf
        Feldebene

        (nur 422).
      properties:
        detail:
          anyOf:
            - type: string
            - type: 'null'
          description: Eine menschenlesbare Erklärung, die speziell für diesen Fall gilt.
          title: Detail
        error_code:
          anyOf:
            - type: string
            - type: 'null'
          description: >-
            Maschinenlesbarer Code für die Ablehnung blockierter Aktionen (z. B.
            "user_frozen", "migrated_session").
          title: Error Code
        errors:
          anyOf:
            - items:
                additionalProperties: true
                type: object
              type: array
            - type: 'null'
          description: Validierungsfehler auf Feldebene (nur bei 422-Antworten).
          title: Errors
        instance:
          anyOf:
            - type: string
            - type: 'null'
          description: Eine URI-Referenz (der Anfragepfad) für diesen Fall.
          title: Instance
        status:
          description: Der HTTP-Statuscode.
          title: Status
          type: integer
        title:
          description: Eine kurze, menschenlesbare Zusammenfassung des Problemtyps.
          title: Title
          type: string
        type:
          default: about:blank
          description: Eine URI-Referenz, die den Problemtyp identifiziert.
          title: Type
          type: string
      required:
        - title
        - status
      title: ProblemDetail
      type: object
    DevinConnectDestination:
      description: 'Ein Ziel: entweder ``hostname`` oder ``ipv4``, aber nicht beides.'
      properties:
        hostname:
          anyOf:
            - type: string
            - type: 'null'
          description: Exakter DNS-Name (keine Platzhalter), z. B. git.corp.example
          title: Hostname
        ipv4:
          anyOf:
            - type: string
            - type: 'null'
          description: >-
            IPv4-Adresse oder CIDR-Präfix, z. B. 10.20.0.0/16; eine Adresse ohne
            Präfix wird als /32 behandelt
          title: Ipv4
      title: DevinConnectDestination
      type: object
  securitySchemes:
    bearerAuth:
      description: 'Servicebenutzer-Anmeldedaten (Präfix: cog_)'
      scheme: bearer
      type: http

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.