def define_body_for_add_ip_command(list_target, mask, ip_address, duration, note, tags):
    """
    API docs: https://portal.f5silverline.com/docs/api/v1/ip_objects.md (POST section)
    prepares the body of a POST request in order to add an IP
    """
    return \
        {
            "list_target": list_target,
            "data":
                {
                    "id": "",
                    "type": "ip_objects",
                    "attributes": {
                        "mask": mask,
                        "ip": ip_address,
                        "duration": duration
                    },
                    "meta": {
                        "note": note,
                        "tags": tags
                    }
                }
        }