8.6 KiB
\AuthorizationV1Api
All URIs are relative to http://localhost
| Method | HTTP request | Description |
|---|---|---|
| CreateNamespacedLocalSubjectAccessReview | Post /apis/authorization.k8s.io/v1/namespaces/{namespace}/localsubjectaccessreviews | |
| CreateSelfSubjectAccessReview | Post /apis/authorization.k8s.io/v1/selfsubjectaccessreviews | |
| CreateSelfSubjectRulesReview | Post /apis/authorization.k8s.io/v1/selfsubjectrulesreviews | |
| CreateSubjectAccessReview | Post /apis/authorization.k8s.io/v1/subjectaccessreviews | |
| GetAPIResources | Get /apis/authorization.k8s.io/v1/ |
CreateNamespacedLocalSubjectAccessReview
V1LocalSubjectAccessReview CreateNamespacedLocalSubjectAccessReview(ctx, namespace, body, optional)
create a LocalSubjectAccessReview
Required Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| namespace | string | object name and auth scope, such as for teams and projects | |
| body | V1LocalSubjectAccessReview | ||
| optional | *CreateNamespacedLocalSubjectAccessReviewOpts | optional parameters | nil if no parameters |
Optional Parameters
Optional parameters are passed through a pointer to a CreateNamespacedLocalSubjectAccessReviewOpts struct
| Name | Type | Description | Notes |
|---|
dryRun | optional.String| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | includeUninitialized | optional.Bool| If IncludeUninitialized is specified, the object may be returned without completing initialization. | pretty | optional.String| If 'true', then the output is pretty printed. |
Return type
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: application/json, application/yaml, application/vnd.kubernetes.protobuf
[Back to top] [Back to API list] [Back to Model list] [Back to README]
CreateSelfSubjectAccessReview
V1SelfSubjectAccessReview CreateSelfSubjectAccessReview(ctx, body, optional)
create a SelfSubjectAccessReview
Required Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| body | V1SelfSubjectAccessReview | ||
| optional | *CreateSelfSubjectAccessReviewOpts | optional parameters | nil if no parameters |
Optional Parameters
Optional parameters are passed through a pointer to a CreateSelfSubjectAccessReviewOpts struct
| Name | Type | Description | Notes |
|---|
dryRun | optional.String| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | includeUninitialized | optional.Bool| If IncludeUninitialized is specified, the object may be returned without completing initialization. | pretty | optional.String| If 'true', then the output is pretty printed. |
Return type
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: application/json, application/yaml, application/vnd.kubernetes.protobuf
[Back to top] [Back to API list] [Back to Model list] [Back to README]
CreateSelfSubjectRulesReview
V1SelfSubjectRulesReview CreateSelfSubjectRulesReview(ctx, body, optional)
create a SelfSubjectRulesReview
Required Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| body | V1SelfSubjectRulesReview | ||
| optional | *CreateSelfSubjectRulesReviewOpts | optional parameters | nil if no parameters |
Optional Parameters
Optional parameters are passed through a pointer to a CreateSelfSubjectRulesReviewOpts struct
| Name | Type | Description | Notes |
|---|
dryRun | optional.String| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | includeUninitialized | optional.Bool| If IncludeUninitialized is specified, the object may be returned without completing initialization. | pretty | optional.String| If 'true', then the output is pretty printed. |
Return type
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: application/json, application/yaml, application/vnd.kubernetes.protobuf
[Back to top] [Back to API list] [Back to Model list] [Back to README]
CreateSubjectAccessReview
V1SubjectAccessReview CreateSubjectAccessReview(ctx, body, optional)
create a SubjectAccessReview
Required Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| body | V1SubjectAccessReview | ||
| optional | *CreateSubjectAccessReviewOpts | optional parameters | nil if no parameters |
Optional Parameters
Optional parameters are passed through a pointer to a CreateSubjectAccessReviewOpts struct
| Name | Type | Description | Notes |
|---|
dryRun | optional.String| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | includeUninitialized | optional.Bool| If IncludeUninitialized is specified, the object may be returned without completing initialization. | pretty | optional.String| If 'true', then the output is pretty printed. |
Return type
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: application/json, application/yaml, application/vnd.kubernetes.protobuf
[Back to top] [Back to API list] [Back to Model list] [Back to README]
GetAPIResources
V1ApiResourceList GetAPIResources(ctx, )
get available resources
Required Parameters
This endpoint does not need any parameter.
Return type
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: application/json, application/yaml, application/vnd.kubernetes.protobuf
[Back to top] [Back to API list] [Back to Model list] [Back to README]