Skip to content

Latest commit

 

History

History
46 lines (28 loc) · 1.99 KB

File metadata and controls

46 lines (28 loc) · 1.99 KB

Indexing.Authentication

Overview

Available Operations

rotate_token

Rotates the secret value inside the Indexing API token and returns the new raw secret. All other properties of the token are unchanged. In order to rotate the secret value, include the token as the bearer token in the /rotatetoken request. Please refer to Token rotation documentation for more information.

Example Usage

from glean.api_client import Glean
import os


with Glean(
    api_token=os.getenv("GLEAN_API_TOKEN", ""),
) as glean:

    res = glean.indexing.authentication.rotate_token()

    # Handle response
    print(res)

Parameters

Parameter Type Required Description
retries Optional[utils.RetryConfig] Configuration to override the default retry behavior of the client.

Response

models.RotateTokenResponse

Errors

Error Type Status Code Content Type
errors.GleanError 4XX, 5XX */*