All URIs are relative to https://localhost
| Method | HTTP request | Description |
|---|---|---|
| createTokenReview | POST /apis/authentication.k8s.io/v1beta1/tokenreviews | |
| getAPIResources | GET /apis/authentication.k8s.io/v1beta1/ |
V1beta1TokenReview createTokenReview(body, dryRun, includeUninitialized, pretty)
create a TokenReview
// Import classes:
//import io.kubernetes.client.ApiClient;
//import io.kubernetes.client.ApiException;
//import io.kubernetes.client.Configuration;
//import io.kubernetes.client.auth.*;
//import io.kubernetes.client.apis.AuthenticationV1beta1Api;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: BearerToken
ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken");
BearerToken.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//BearerToken.setApiKeyPrefix("Token");
AuthenticationV1beta1Api apiInstance = new AuthenticationV1beta1Api();
V1beta1TokenReview body = new V1beta1TokenReview(); // V1beta1TokenReview |
String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
Boolean includeUninitialized = true; // Boolean | If IncludeUninitialized is specified, the object may be returned without completing initialization.
String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed.
try {
V1beta1TokenReview result = apiInstance.createTokenReview(body, dryRun, includeUninitialized, pretty);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AuthenticationV1beta1Api#createTokenReview");
e.printStackTrace();
}| Name | Type | Description | Notes |
|---|---|---|---|
| body | V1beta1TokenReview | ||
| dryRun | String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] |
| includeUninitialized | Boolean | If IncludeUninitialized is specified, the object may be returned without completing initialization. | [optional] |
| pretty | String | If 'true', then the output is pretty printed. | [optional] |
- Content-Type: /
- Accept: application/json, application/yaml, application/vnd.kubernetes.protobuf
V1APIResourceList getAPIResources()
get available resources
// Import classes:
//import io.kubernetes.client.ApiClient;
//import io.kubernetes.client.ApiException;
//import io.kubernetes.client.Configuration;
//import io.kubernetes.client.auth.*;
//import io.kubernetes.client.apis.AuthenticationV1beta1Api;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: BearerToken
ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken");
BearerToken.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//BearerToken.setApiKeyPrefix("Token");
AuthenticationV1beta1Api apiInstance = new AuthenticationV1beta1Api();
try {
V1APIResourceList result = apiInstance.getAPIResources();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AuthenticationV1beta1Api#getAPIResources");
e.printStackTrace();
}This endpoint does not need any parameter.
- Content-Type: application/json, application/yaml, application/vnd.kubernetes.protobuf
- Accept: application/json, application/yaml, application/vnd.kubernetes.protobuf