All URIs are relative to https://localhost
Method | HTTP request | Description |
---|---|---|
getAPIVersions | GET /api/ |
V1APIVersions getAPIVersions()
get available API versions
// 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.CoreApi;
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");
CoreApi apiInstance = new CoreApi();
try {
V1APIVersions result = apiInstance.getAPIVersions();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling CoreApi#getAPIVersions");
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