HEX
Server: LiteSpeed
System: Linux s3604.bom1.stableserver.net 4.18.0-513.11.1.lve.el8.x86_64 #1 SMP Thu Jan 18 16:21:02 UTC 2024 x86_64
User: dmstechonline (1480)
PHP: 7.4.33
Disabled: NONE
Upload Files
File: //lib/python3.6/site-packages/awscli/examples/lightsail/detach-static-ip.rst
**To detach a static IP from an instance**

The following ``detach-static-ip`` example detaches static IP ``StaticIp-1`` from any attached instance. ::

    aws lightsail detach-static-ip \
        --static-ip-name StaticIp-1

Output::

    {
        "operations": [
            {
                "id": "2a43d8a3-9f2d-4fe7-bdd0-eEXAMPLE3cf3",
                "resourceName": "StaticIp-1",
                "resourceType": "StaticIp",
                "createdAt": 1571088261.999,
                "location": {
                    "availabilityZone": "all",
                    "regionName": "us-west-2"
                },
                "isTerminal": true,
                "operationDetails": "MEAN-1",
                "operationType": "DetachStaticIp",
                "status": "Succeeded",
                "statusChangedAt": 1571088261.999
            },
            {
                "id": "41a7d40c-74e8-4d2e-a837-cEXAMPLEf747",
                "resourceName": "MEAN-1",
                "resourceType": "Instance",
                "createdAt": 1571088262.022,
                "location": {
                    "availabilityZone": "us-west-2a",
                    "regionName": "us-west-2"
                },
                "isTerminal": true,
                "operationDetails": "StaticIp-1",
                "operationType": "DetachStaticIp",
                "status": "Succeeded",
                "statusChangedAt": 1571088262.022
            }
        ]
    }