Class TokenManagementAPI
- java.lang.Object
-
- com.databricks.sdk.service.settings.TokenManagementAPI
-
@Generated public class TokenManagementAPI extends Object
Enables administrators to get all tokens and delete tokens for other users. Admins can either get every token, get a specific token by ID, or get all tokens for a particular user.
-
-
Constructor Summary
Constructors Constructor Description TokenManagementAPI(ApiClient apiClient)
Regular-use constructorTokenManagementAPI(TokenManagementService mock)
Constructor for mocks
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CreateOboTokenResponse
createOboToken(CreateOboTokenRequest request)
Create on-behalf token.CreateOboTokenResponse
createOboToken(String applicationId, long lifetimeSeconds)
void
delete(DeleteTokenManagementRequest request)
Delete a token.void
delete(String tokenId)
TokenInfo
get(GetTokenManagementRequest request)
Get token info.TokenInfo
get(String tokenId)
TokenManagementService
impl()
Iterable<TokenInfo>
list(ListTokenManagementRequest request)
List all tokens.
-
-
-
Constructor Detail
-
TokenManagementAPI
public TokenManagementAPI(ApiClient apiClient)
Regular-use constructor
-
TokenManagementAPI
public TokenManagementAPI(TokenManagementService mock)
Constructor for mocks
-
-
Method Detail
-
createOboToken
public CreateOboTokenResponse createOboToken(String applicationId, long lifetimeSeconds)
-
createOboToken
public CreateOboTokenResponse createOboToken(CreateOboTokenRequest request)
Create on-behalf token.Creates a token on behalf of a service principal.
-
delete
public void delete(String tokenId)
-
delete
public void delete(DeleteTokenManagementRequest request)
Delete a token.Deletes a token, specified by its ID.
-
get
public TokenInfo get(GetTokenManagementRequest request)
Get token info.Gets information about a token, specified by its ID.
-
list
public Iterable<TokenInfo> list(ListTokenManagementRequest request)
List all tokens.Lists all tokens associated with the specified workspace or user.
-
impl
public TokenManagementService impl()
-
-