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

[source, python]
----
resp = client.security.get_token(
    grant_type="password",
    username="test_admin",
    password="x-pack-test-password",
)
print(resp)
----
