// This file is autogenerated, DO NOT EDIT
// indices/ignore-missing-component-templates.asciidoc:72

[source, python]
----
resp = client.cluster.put_component_template(
    name="logs-foo_component2",
    template={
        "mappings": {
            "properties": {
                "host.ip": {
                    "type": "ip"
                }
            }
        }
    },
)
print(resp)
----
