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

# Detach a floating IP

> Stops routing the public IP and clears the binding. Idempotent —
detaching an already-detached floating IP (or a NIC that isn't a member)
returns 200 with the unchanged row.

An address an instance pool owns is refused (409): its members are that
pool's live replicas, so removing one here would be reinstated by the
pool's next reconcile. Detach it at
`DELETE /v1/instance-pools/{pool_id}/floating-ips/{floating_ip_id}`.




## OpenAPI

````yaml /api-reference/specs/network.yaml post /v1/floating-ips/{floating_ip_id}/detach
openapi: 3.0.3
info:
  title: Basaltic Network API
  version: 1.0.0
  description: |
    The VPC surface — networks and subnets, interfaces, route tables,
    security groups, internet, NAT and egress-only gateways, and floating
    IPs.
  contact:
    name: Basaltic Support
    email: ping@basaltic.sh
  license:
    name: Proprietary
    url: https://basaltic.sh/terms
servers:
  - url: https://network.{region}.basaltic.sh
    description: Regional API endpoint
    variables:
      region:
        default: sa-saopaulo-1
        description: Region code
security:
  - SignatureAuth: []
paths:
  /v1/floating-ips/{floating_ip_id}/detach:
    post:
      tags:
        - Networking
      summary: Detach a floating IP
      description: |
        Stops routing the public IP and clears the binding. Idempotent —
        detaching an already-detached floating IP (or a NIC that isn't a member)
        returns 200 with the unchanged row.

        An address an instance pool owns is refused (409): its members are that
        pool's live replicas, so removing one here would be reinstated by the
        pool's next reconcile. Detach it at
        `DELETE /v1/instance-pools/{pool_id}/floating-ips/{floating_ip_id}`.
      operationId: detachFloatingIp
      parameters:
        - $ref: '#/components/parameters/IdempotencyKey'
        - $ref: '#/components/parameters/FloatingIpId'
      requestBody:
        required: false
        content:
          application/json:
            schema:
              type: object
              properties:
                interface_id:
                  type: string
                  format: uuid
                  description: >-
                    The member to remove. A floating IP outside an instance pool
                    has at most one member, so naming it or omitting it detaches
                    the same address; naming a NIC that is not a member is a
                    no-op.
                  example: 7a1c9d3e-2f5b-4c8a-9e6d-3b2a1c4f5e8d
      responses:
        '200':
          description: Detached
          content:
            application/json:
              schema:
                type: object
                properties:
                  floating_ip:
                    $ref: '#/components/schemas/FloatingIp'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '409':
          $ref: '#/components/responses/Conflict'
        '422':
          $ref: '#/components/responses/UnprocessableEntity'
      security:
        - SignatureAuth: []
components:
  parameters:
    IdempotencyKey:
      name: Idempotency-Key
      in: header
      description: >-
        Optional client-generated key that makes a create replay-safe. Retrying
        a request with the same key returns the original outcome verbatim
        instead of creating a duplicate resource. Reusing a key with a different
        request body is rejected (422); a request whose key is still being
        processed returns 409. Records are honored for 24 hours. Use a UUID or
        similarly unique token.
      required: false
      schema:
        type: string
        maxLength: 255
      example: 550e8400-e29b-41d4-a716-446655440000
    FloatingIpId:
      name: floating_ip_id
      in: path
      description: Floating IP ID
      required: true
      schema:
        type: string
        format: uuid
      example: 550e8400-e29b-41d4-a716-446655440000
  schemas:
    FloatingIp:
      type: object
      required:
        - id
        - crn
        - ip_address
        - members
        - tags
        - created_at
        - updated_at
      properties:
        id:
          type: string
          format: uuid
          readOnly: true
        crn:
          type: string
          readOnly: true
          example: crn:network:sa-saopaulo-1:my-account:floating-ip/<uuid>
        description:
          type: string
          example: Public IP for the web load balancer
        ip_address:
          type: string
          example: 10.60.128.7
        attached_to_interface_id:
          type: string
          format: uuid
          nullable: true
          description: >
            Legacy single-binding field: the sole interface this floating IP is

            bound to, or null when unattached OR when it has more than one
            member

            (an anycast floating IP). `members` is authoritative.
          example: 7a1c9d3e-2f5b-4c8a-9e6d-3b2a1c4f5e8d
        instance_pool_id:
          type: string
          format: uuid
          nullable: true
          readOnly: true
          description: >
            The instance pool this address belongs to, or null for an ordinary

            floating IP.


            A pool's address is the only one that can have more than one member.

            Its members are the pool's live replicas — one per hypervisor,

            maintained by the pool as it scales — so `attach` and `detach` on
            this

            floating IP are refused: use

            `POST /v1/instance-pools/{pool_id}/floating-ips` and

            `DELETE /v1/instance-pools/{pool_id}/floating-ips/{floating_ip_id}`.
          example: 0b2a4c6e-8d1f-4a3b-9c5e-7f2d1a4b6c8e
        members:
          type: array
          description: >
            The floating IP's bindings. A floating IP fronts 0 members
            (allocated,

            unattached), 1 member (the everyday case), or N members — an anycast

            floating IP, where one public IP is delivered to N VM NICs across

            hosts (each advertised as a /32 from the host holding it).


            MORE THAN ONE MEMBER IS ONLY POSSIBLE FOR AN INSTANCE POOL'S
            ADDRESS.

            Each member's NAT rule is matched per hypervisor, so two members on
            the

            SAME hypervisor both match there, one of them answers and the other

            receives nothing — with no signal anywhere that half the capacity is

            dark. A pool is what spreads its replicas across hypervisors, so a

            shared address is attached to a pool and its members are derived
            from

            the pool's live replicas: a scale-out joins, a scale-in leaves, and
            a

            replica sharing a hypervisor with an existing member is left out of
            the

            set rather than added to it and silently starved (so a pool can have

            more replicas than the address has members).


            With more than one member the region's edge router picks ONE member

            per connection, by hashing the flow's addresses and ports, and every

            packet of that connection goes to the same one. The members are

            separate instances that share nothing, so this spreads connections
            and

            survives the loss of a host — it is not a load balancer: there is no

            health checking of what runs inside the instance, and connections in

            progress to a member that goes away are not moved, they end.
          items:
            $ref: '#/components/schemas/FloatingIpMember'
        tags:
          type: object
          additionalProperties:
            type: string
        created_at:
          type: string
          format: date-time
          readOnly: true
        updated_at:
          type: string
          format: date-time
          readOnly: true
    FloatingIpMember:
      type: object
      description: One binding of a floating IP.
      required:
        - health
        - created_at
      properties:
        interface_id:
          type: string
          format: uuid
          nullable: true
          description: The bound interface (instance_nic floating IPs).
        resource_id:
          type: string
          format: uuid
          nullable: true
          description: The bound resource id (lb / email_sender floating IPs).
        health:
          type: string
          description: >
            Control-plane-reflected liveness of this member. Instance-NIC
            members

            always read `unknown`: what decides whether this member is
            advertised

            is where its NIC is bound in the network fabric, which is not a

            property the control plane stores on the member row.
          example: unknown
        created_at:
          type: string
          format: date-time
          readOnly: true
    Error:
      type: object
      required:
        - error
      properties:
        error:
          type: object
          required:
            - code
            - message
            - request_id
          properties:
            code:
              type: string
              description: Error code identifying the type of error
              example: INVALID_INPUT
            message:
              type: string
              description: Human-readable error message
              example: Invalid request parameters
            request_id:
              type: string
              format: uuid
              description: Request ID for debugging
              example: 550e8400-e29b-41d4-a716-446655440000
  responses:
    Unauthorized:
      description: Authentication required or token invalid
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error:
              code: UNAUTHORIZED
              message: Authentication required
              request_id: 550e8400-e29b-41d4-a716-446655440000
    Forbidden:
      description: Insufficient permissions
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error:
              code: ACCESS_DENIED
              message: You don't have permission to perform this action
              request_id: 550e8400-e29b-41d4-a716-446655440000
    NotFound:
      description: Resource not found
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error:
              code: NOT_FOUND
              message: Resource not found
              request_id: 550e8400-e29b-41d4-a716-446655440000
    Conflict:
      description: Resource conflict (e.g., already exists, invalid state)
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error:
              code: CONFLICT
              message: Resource with this name already exists
              request_id: 550e8400-e29b-41d4-a716-446655440000
    UnprocessableEntity:
      description: |
        The request is well-formed but cannot be processed as sent. On the
        operations that accept `Idempotency-Key` this is the key-reuse case: the
        key was first seen with a different request payload, so replaying the
        stored outcome would answer a question the caller did not ask.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error:
              code: IDEMPOTENCY_KEY_REUSED
              message: >-
                This Idempotency-Key was already used with a different request
                payload
              request_id: 550e8400-e29b-41d4-a716-446655440000
  securitySchemes:
    SignatureAuth:
      type: apiKey
      in: header
      name: Authorization
      description: >
        Request signing with an access key issued to a service account. An

        HMAC-SHA256 over a canonical form of the request, close to AWS SigV4.

        The `basaltic` CLI signs for you.


        Send `Authorization`, `X-Date` (UTC, `YYYYMMDDTHHMMSSZ`) and `X-Nonce`

        (random per request); add `X-Content-Sha256` to bind a body, and

        `X-Amz-Security-Token` when using temporary credentials.


        ```

        Authorization: BASALTIC-HMAC-SHA256
        Credential=<access_key_id>/<date>/<region>/basaltic/basaltic_request,
        SignedHeaders=host;x-date;x-nonce, Signature=<hex>

        ```


        `<region>` is the region code you are calling, or `global` for the
        global

        services. A signature is valid for 5 minutes from `X-Date`, and mutating

        requests are replay-guarded on the nonce.


        **Full signing procedure, including a working implementation:**

        https://docs.basaltic.sh/authentication


        ## Rate limits

        There is no global request budget. A limit applies only where an

        operation documents a `429`, and that operation says what it counts.

        Those responses carry `X-RateLimit-Limit`, `X-RateLimit-Remaining`,

        `X-RateLimit-Reset` and, on a `429`, `Retry-After` — read them rather

        than hard-coding a number. Retrying before `Retry-After` is refused and

        extends the window. Everything else is bounded by quota, not by request

        rate.

````