DeleteHostAuthenticationToken
runners.configurations.host_authentication_tokens.delete(HostAuthenticationTokenDeleteParams**kwargs) -> object
POST/gitpod.v1.RunnerConfigurationService/DeleteHostAuthenticationToken
Deletes a host authentication token.
Use this method to:
- Remove unused tokens
- Revoke access
- Clean up expired tokens
Examples
-
Delete token:
Permanently removes a token.
id: "d2c94c27-3b76-4a42-b88c-95a85e392c68"
DeleteHostAuthenticationToken
import os
from gitpod import Gitpod
client = Gitpod(
bearer_token=os.environ.get("GITPOD_API_KEY"), # This is the default and can be omitted
)
host_authentication_token = client.runners.configurations.host_authentication_tokens.delete(
id="d2c94c27-3b76-4a42-b88c-95a85e392c68",
)
print(host_authentication_token){}Returns Examples
{}