Skip to content

Latest commit

 

History

History
365 lines (243 loc) · 16.6 KB

SecurityOpenshiftIo_v1Api.md

File metadata and controls

365 lines (243 loc) · 16.6 KB

UniversityOfAdelaide\OpenShift\SecurityOpenshiftIo_v1Api

All URIs are relative to https://localhost

Method HTTP request Description
createSecurityOpenshiftIoV1NamespacedPodSecurityPolicyReview POST /apis/security.openshift.io/v1/namespaces/{namespace}/podsecuritypolicyreviews
createSecurityOpenshiftIoV1NamespacedPodSecurityPolicySelfSubjectReview POST /apis/security.openshift.io/v1/namespaces/{namespace}/podsecuritypolicyselfsubjectreviews
createSecurityOpenshiftIoV1NamespacedPodSecurityPolicySubjectReview POST /apis/security.openshift.io/v1/namespaces/{namespace}/podsecuritypolicysubjectreviews
createSecurityOpenshiftIoV1PodSecurityPolicyReviewForAllNamespaces POST /apis/security.openshift.io/v1/podsecuritypolicyreviews
createSecurityOpenshiftIoV1PodSecurityPolicySelfSubjectReviewForAllNamespaces POST /apis/security.openshift.io/v1/podsecuritypolicyselfsubjectreviews
createSecurityOpenshiftIoV1PodSecurityPolicySubjectReviewForAllNamespaces POST /apis/security.openshift.io/v1/podsecuritypolicysubjectreviews
getSecurityOpenshiftIoV1APIResources GET /apis/security.openshift.io/v1/

createSecurityOpenshiftIoV1NamespacedPodSecurityPolicyReview

\UniversityOfAdelaide\OpenShift\Model\V1PodSecurityPolicyReview createSecurityOpenshiftIoV1NamespacedPodSecurityPolicyReview($namespace, $body, $pretty)

create a PodSecurityPolicyReview

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\SecurityOpenshiftIo_v1Api(new \Http\Adapter\Guzzle6\Client());
$namespace = "namespace_example"; // string | object name and auth scope, such as for teams and projects
$body = new \UniversityOfAdelaide\OpenShift\Model\V1PodSecurityPolicyReview(); // \UniversityOfAdelaide\OpenShift\Model\V1PodSecurityPolicyReview | 
$pretty = "pretty_example"; // string | If 'true', then the output is pretty printed.

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

Parameters

Name Type Description Notes
namespace string object name and auth scope, such as for teams and projects
body \UniversityOfAdelaide\OpenShift\Model\V1PodSecurityPolicyReview
pretty string If 'true', then the output is pretty printed. [optional]

Return type

\UniversityOfAdelaide\OpenShift\Model\V1PodSecurityPolicyReview

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]

createSecurityOpenshiftIoV1NamespacedPodSecurityPolicySelfSubjectReview

\UniversityOfAdelaide\OpenShift\Model\V1PodSecurityPolicySelfSubjectReview createSecurityOpenshiftIoV1NamespacedPodSecurityPolicySelfSubjectReview($namespace, $body, $pretty)

create a PodSecurityPolicySelfSubjectReview

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\SecurityOpenshiftIo_v1Api(new \Http\Adapter\Guzzle6\Client());
$namespace = "namespace_example"; // string | object name and auth scope, such as for teams and projects
$body = new \UniversityOfAdelaide\OpenShift\Model\V1PodSecurityPolicySelfSubjectReview(); // \UniversityOfAdelaide\OpenShift\Model\V1PodSecurityPolicySelfSubjectReview | 
$pretty = "pretty_example"; // string | If 'true', then the output is pretty printed.

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

Parameters

Name Type Description Notes
namespace string object name and auth scope, such as for teams and projects
body \UniversityOfAdelaide\OpenShift\Model\V1PodSecurityPolicySelfSubjectReview
pretty string If 'true', then the output is pretty printed. [optional]

Return type

\UniversityOfAdelaide\OpenShift\Model\V1PodSecurityPolicySelfSubjectReview

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]

createSecurityOpenshiftIoV1NamespacedPodSecurityPolicySubjectReview

\UniversityOfAdelaide\OpenShift\Model\V1PodSecurityPolicySubjectReview createSecurityOpenshiftIoV1NamespacedPodSecurityPolicySubjectReview($namespace, $body, $pretty)

create a PodSecurityPolicySubjectReview

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\SecurityOpenshiftIo_v1Api(new \Http\Adapter\Guzzle6\Client());
$namespace = "namespace_example"; // string | object name and auth scope, such as for teams and projects
$body = new \UniversityOfAdelaide\OpenShift\Model\V1PodSecurityPolicySubjectReview(); // \UniversityOfAdelaide\OpenShift\Model\V1PodSecurityPolicySubjectReview | 
$pretty = "pretty_example"; // string | If 'true', then the output is pretty printed.

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

Parameters

Name Type Description Notes
namespace string object name and auth scope, such as for teams and projects
body \UniversityOfAdelaide\OpenShift\Model\V1PodSecurityPolicySubjectReview
pretty string If 'true', then the output is pretty printed. [optional]

Return type

\UniversityOfAdelaide\OpenShift\Model\V1PodSecurityPolicySubjectReview

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]

createSecurityOpenshiftIoV1PodSecurityPolicyReviewForAllNamespaces

\UniversityOfAdelaide\OpenShift\Model\V1PodSecurityPolicyReview createSecurityOpenshiftIoV1PodSecurityPolicyReviewForAllNamespaces($body, $pretty)

create a PodSecurityPolicyReview

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\SecurityOpenshiftIo_v1Api(new \Http\Adapter\Guzzle6\Client());
$body = new \UniversityOfAdelaide\OpenShift\Model\V1PodSecurityPolicyReview(); // \UniversityOfAdelaide\OpenShift\Model\V1PodSecurityPolicyReview | 
$pretty = "pretty_example"; // string | If 'true', then the output is pretty printed.

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

Parameters

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

Return type

\UniversityOfAdelaide\OpenShift\Model\V1PodSecurityPolicyReview

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]

createSecurityOpenshiftIoV1PodSecurityPolicySelfSubjectReviewForAllNamespaces

\UniversityOfAdelaide\OpenShift\Model\V1PodSecurityPolicySelfSubjectReview createSecurityOpenshiftIoV1PodSecurityPolicySelfSubjectReviewForAllNamespaces($body, $pretty)

create a PodSecurityPolicySelfSubjectReview

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\SecurityOpenshiftIo_v1Api(new \Http\Adapter\Guzzle6\Client());
$body = new \UniversityOfAdelaide\OpenShift\Model\V1PodSecurityPolicySelfSubjectReview(); // \UniversityOfAdelaide\OpenShift\Model\V1PodSecurityPolicySelfSubjectReview | 
$pretty = "pretty_example"; // string | If 'true', then the output is pretty printed.

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

Parameters

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

Return type

\UniversityOfAdelaide\OpenShift\Model\V1PodSecurityPolicySelfSubjectReview

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]

createSecurityOpenshiftIoV1PodSecurityPolicySubjectReviewForAllNamespaces

\UniversityOfAdelaide\OpenShift\Model\V1PodSecurityPolicySubjectReview createSecurityOpenshiftIoV1PodSecurityPolicySubjectReviewForAllNamespaces($body, $pretty)

create a PodSecurityPolicySubjectReview

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\SecurityOpenshiftIo_v1Api(new \Http\Adapter\Guzzle6\Client());
$body = new \UniversityOfAdelaide\OpenShift\Model\V1PodSecurityPolicySubjectReview(); // \UniversityOfAdelaide\OpenShift\Model\V1PodSecurityPolicySubjectReview | 
$pretty = "pretty_example"; // string | If 'true', then the output is pretty printed.

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

Parameters

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

Return type

\UniversityOfAdelaide\OpenShift\Model\V1PodSecurityPolicySubjectReview

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]

getSecurityOpenshiftIoV1APIResources

\UniversityOfAdelaide\OpenShift\Model\V1APIResourceList getSecurityOpenshiftIoV1APIResources()

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\SecurityOpenshiftIo_v1Api(new \Http\Adapter\Guzzle6\Client());

try {
    $result = $api_instance->getSecurityOpenshiftIoV1APIResources();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling SecurityOpenshiftIo_v1Api->getSecurityOpenshiftIoV1APIResources: ', $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]