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/ |
\UniversityOfAdelaide\OpenShift\Model\V1TokenReview createAuthenticationV1TokenReview($body, $pretty)
create a TokenReview
<?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;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
body | \UniversityOfAdelaide\OpenShift\Model\V1TokenReview | ||
pretty | string | If 'true', then the output is pretty printed. | [optional] |
\UniversityOfAdelaide\OpenShift\Model\V1TokenReview
- 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]
\UniversityOfAdelaide\OpenShift\Model\V1APIResourceList getAuthenticationV1APIResources()
get available resources
<?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;
}
?>
This endpoint does not need any parameter.
\UniversityOfAdelaide\OpenShift\Model\V1APIResourceList
- 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]