// This file is autogenerated, DO NOT EDIT
// rest-api/security/invalidate-api-keys.asciidoc:185

[source, python]
----
resp = client.security.invalidate_api_key(
    username="myuser",
    realm_name="native1",
)
print(resp)
----
