Skip to content

Latest commit

 

History

History
60 lines (41 loc) · 1.6 KB

AuthorizationApi.md

File metadata and controls

60 lines (41 loc) · 1.6 KB

AuthorizationApi

All URIs are relative to https://localhost

Method HTTP request Description
getAPIGroup GET /apis/authorization.k8s.io/

getAPIGroup

V1APIGroup getAPIGroup()

get information of a group

Example

// 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.AuthorizationApi;

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");

AuthorizationApi apiInstance = new AuthorizationApi();
try {
    V1APIGroup result = apiInstance.getAPIGroup();
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling AuthorizationApi#getAPIGroup");
    e.printStackTrace();
}

Parameters

This endpoint does not need any parameter.

Return type

V1APIGroup

Authorization

BearerToken

HTTP request headers

  • Content-Type: application/json, application/yaml, application/vnd.kubernetes.protobuf
  • Accept: application/json, application/yaml, application/vnd.kubernetes.protobuf