---
title: "Disconnect Resource from Gateway"
url: "https://public-api-docs.cipherscale.com/apis/cipherscale-api-1/versions/fef69080-6094-4620-8bf0-16fd2de7b598/operations/ResourceController_deleteResourceConnection"
---

> Full API specification: https://public-api-docs.cipherscale.com/apis/cipherscale-api-1/versions/fef69080-6094-4620-8bf0-16fd2de7b598.md

# Disconnect Resource from Gateway

`DELETE` `/tenants/resources/{id}/gateways/{gatewayId}`

Operation ID: `ResourceController_deleteResourceConnection`

Removes the network connection between a resource and a specific gateway, preventing access to the resource through that gateway. This operation helps manage network topology and access control.

## Path parameters

- `id` (string, uuid, required) - The unique identifier (UUID) of the resource
- `gatewayId` (string, uuid, required) - The unique identifier (UUID) of the gateway to disconnect

## Responses

- `204` - Successfully disconnected resource from gateway
- `401` - Unauthorized - Invalid or missing authentication token
- `403` - Forbidden - Insufficient permissions to perform this operation.
- `404` - Resource or gateway not found with the provided ID

## OpenAPI definition

```yaml
openapi: 3.0.0
info:
  title: Cipherscale API
  version: "1.0"
servers:
  - url: https://public-api.cipherscale.com/qa
    description: Cipherscale Public API Server
paths:
  /tenants/resources/{id}/gateways/{gatewayId}:
    delete:
      operationId: ResourceController_deleteResourceConnection
      summary: Disconnect Resource from Gateway
      description: Removes the network connection between a resource and a specific
        gateway, preventing access to the resource through that gateway. This
        operation helps manage network topology and access control.
      parameters:
        - name: id
          required: true
          in: path
          description: The unique identifier (UUID) of the resource
          schema:
            type: string
            format: uuid
        - name: gatewayId
          required: true
          in: path
          description: The unique identifier (UUID) of the gateway to disconnect
          schema:
            type: string
            format: uuid
      responses:
        "204":
          description: Successfully disconnected resource from gateway
        "401":
          description: Unauthorized - Invalid or missing authentication token
        "403":
          description: Forbidden - Insufficient permissions to perform this operation.
        "404":
          description: Resource or gateway not found with the provided ID
      tags:
        - Resources
      security:
        - ApiKeyAuth: []
security:
  - ApiKeyAuth: []
components:
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: apikey
```
