Skip to content

Latest commit

 

History

History
104 lines (67 loc) · 3.66 KB

Authentication_v1Api.md

File metadata and controls

104 lines (67 loc) · 3.66 KB

UniversityOfAdelaide\OpenShift\Authentication_v1Api

All URIs are relative to https://localhost

Method HTTP request Description
createAuthenticationV1TokenReview POST /apis/authentication.k8s.io/v1/tokenreviews
getAuthenticationV1APIResources GET /apis/authentication.k8s.io/v1/

createAuthenticationV1TokenReview

\UniversityOfAdelaide\OpenShift\Model\V1TokenReview createAuthenticationV1TokenReview($body, $pretty)

create a TokenReview

Example

<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure OAuth2 access token for authorization: openshift_auth
UniversityOfAdelaide\OpenShift\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new UniversityOfAdelaide\OpenShift\Api\Authentication_v1Api(new \Http\Adapter\Guzzle6\Client());
$body = new \UniversityOfAdelaide\OpenShift\Model\V1TokenReview(); // \UniversityOfAdelaide\OpenShift\Model\V1TokenReview | 
$pretty = "pretty_example"; // string | If 'true', then the output is pretty printed.

try {
    $result = $api_instance->createAuthenticationV1TokenReview($body, $pretty);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling Authentication_v1Api->createAuthenticationV1TokenReview: ', $e->getMessage(), PHP_EOL;
}
?>

Parameters

Name Type Description Notes
body \UniversityOfAdelaide\OpenShift\Model\V1TokenReview
pretty string If 'true', then the output is pretty printed. [optional]

Return type

\UniversityOfAdelaide\OpenShift\Model\V1TokenReview

Authorization

openshift_auth

HTTP request headers

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

[Back to top] [Back to API list] [Back to Model list] [Back to README]

getAuthenticationV1APIResources

\UniversityOfAdelaide\OpenShift\Model\V1APIResourceList getAuthenticationV1APIResources()

get available resources

Example

<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure OAuth2 access token for authorization: openshift_auth
UniversityOfAdelaide\OpenShift\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new UniversityOfAdelaide\OpenShift\Api\Authentication_v1Api(new \Http\Adapter\Guzzle6\Client());

try {
    $result = $api_instance->getAuthenticationV1APIResources();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling Authentication_v1Api->getAuthenticationV1APIResources: ', $e->getMessage(), PHP_EOL;
}
?>

Parameters

This endpoint does not need any parameter.

Return type

\UniversityOfAdelaide\OpenShift\Model\V1APIResourceList

Authorization

openshift_auth

HTTP request headers

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

[Back to top] [Back to API list] [Back to Model list] [Back to README]