{ "opencollection": "1.0.0", "info": { "name": "Weave Net HTTP DNS IPAM API", "version": "2.0.0" }, "items": [ { "info": { "name": "IPAM", "type": "folder" }, "items": [ { "info": { "name": "Weave Net Look Up IP Address", "type": "http" }, "http": { "method": "GET", "url": "http://127.0.0.1:6784/ip/:containerId", "params": [ { "name": "containerId", "value": "abc123def456", "type": "path", "description": "Container identifier" } ] }, "docs": "Returns the IP address allocated to the container with the given ID, or an empty response if none has been allocated." }, { "info": { "name": "Weave Net Allocate IP Address", "type": "http" }, "http": { "method": "POST", "url": "http://127.0.0.1:6784/ip/:containerId", "params": [ { "name": "containerId", "value": "abc123def456", "type": "path", "description": "Container identifier" }, { "name": "check-alive", "value": "false", "type": "query", "description": "Check if container is alive before allocating" } ] }, "docs": "Allocates an IP address for the given container ID. If an IP is already allocated for this container, the existing IP is returned. Optionally checks if the container is alive before allocating." }, { "info": { "name": "Weave Net Release IP Addresses", "type": "http" }, "http": { "method": "DELETE", "url": "http://127.0.0.1:6784/ip/:containerId", "params": [ { "name": "containerId", "value": "abc123def456", "type": "path", "description": "Container identifier" } ] }, "docs": "Releases all IP addresses allocated to the given container ID." }, { "info": { "name": "Weave Net Allocate IP Address in Subnet", "type": "http" }, "http": { "method": "POST", "url": "http://127.0.0.1:6784/ip/:containerId/:subnet", "params": [ { "name": "containerId", "value": "abc123def456", "type": "path", "description": "Container identifier" }, { "name": "subnet", "value": "10.32.0.0/12", "type": "path", "description": "Target subnet in CIDR notation" }, { "name": "check-alive", "value": "false", "type": "query", "description": "Check if container is alive" } ] }, "docs": "Allocates an IP address for the given container ID within the specified subnet. Useful when multiple subnets are in use." }, { "info": { "name": "Weave Net Claim Specific IP Address", "type": "http" }, "http": { "method": "PUT", "url": "http://127.0.0.1:6784/ip/:containerId/:subnet", "params": [ { "name": "containerId", "value": "abc123def456", "type": "path", "description": "Container identifier" }, { "name": "subnet", "value": "10.32.0.5/12", "type": "path", "description": "IP address and subnet in CIDR notation" }, { "name": "check-alive", "value": "false", "type": "query", "description": "Check if container is alive" } ] }, "docs": "Claims a specific IP address for the given container ID within the specified subnet." }, { "info": { "name": "Weave Net Get Default Subnet", "type": "http" }, "http": { "method": "GET", "url": "http://127.0.0.1:6784/ipinfo/defaultsubnet" }, "docs": "Returns the default IP subnet configured for Weave Net IP address allocation." } ] } ], "bundled": true }