|
| 1 | +--- |
| 2 | +api_metadata: |
| 3 | + apiVersion: "authentication.k8s.io/v1alpha1" |
| 4 | + import: "k8s.io/api/authentication/v1alpha1" |
| 5 | + kind: "SelfSubjectReview" |
| 6 | +content_type: "api_reference" |
| 7 | +description: "SelfSubjectReview 包含 kube-apiserver 所拥有的与发出此请求的用户有关的用户信息。" |
| 8 | +title: "SelfSubjectReview v1alpha1" |
| 9 | +weight: 5 |
| 10 | +--- |
| 11 | +<!-- |
| 12 | +api_metadata: |
| 13 | + apiVersion: "authentication.k8s.io/v1alpha1" |
| 14 | + import: "k8s.io/api/authentication/v1alpha1" |
| 15 | + kind: "SelfSubjectReview" |
| 16 | +content_type: "api_reference" |
| 17 | +description: "SelfSubjectReview contains the user information that the kube-apiserver has about the user making this request." |
| 18 | +title: "SelfSubjectReview v1alpha1" |
| 19 | +weight: 5 |
| 20 | +auto_generated: true |
| 21 | +--> |
| 22 | + |
| 23 | +`apiVersion: authentication.k8s.io/v1alpha1` |
| 24 | + |
| 25 | +`import "k8s.io/api/authentication/v1alpha1"` |
| 26 | + |
| 27 | +## SelfSubjectReview {#SelfSubjectReview} |
| 28 | + |
| 29 | +<!-- |
| 30 | +SelfSubjectReview contains the user information that the kube-apiserver has about the user making this request. When using impersonation, users will receive the user info of the user being impersonated. |
| 31 | +--> |
| 32 | +SelfSubjectReview 包含 kube-apiserver 所拥有的与发出此请求的用户有关的用户信息。 |
| 33 | +使用伪装时,用户将收到被伪装用户的用户信息。 |
| 34 | + |
| 35 | +<hr> |
| 36 | + |
| 37 | +- **apiVersion**: authentication.k8s.io/v1alpha1 |
| 38 | + |
| 39 | +- **kind**: SelfSubjectReview |
| 40 | + |
| 41 | +- **metadata** (<a href="{{< ref "../common-definitions/object-meta#ObjectMeta" >}}">ObjectMeta</a>) |
| 42 | + |
| 43 | + <!-- |
| 44 | + Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata |
| 45 | + --> |
| 46 | + 标准的对象元数据。更多信息: |
| 47 | + https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata |
| 48 | + |
| 49 | +- **status** (<a href="{{< ref "../authorization-resources/self-subject-review-v1alpha1#SelfSubjectReviewStatus" >}}">SelfSubjectReviewStatus</a>) |
| 50 | + |
| 51 | + <!-- |
| 52 | + Status is filled in by the server with the user attributes. |
| 53 | + --> |
| 54 | + status 由服务器以用户属性进行填充。 |
| 55 | + |
| 56 | +## SelfSubjectReviewStatus {#SelfSubjectReviewStatus} |
| 57 | + |
| 58 | +<!-- |
| 59 | +SelfSubjectReviewStatus is filled by the kube-apiserver and sent back to a user. |
| 60 | +--> |
| 61 | +SelfSubjectReviewStatus 由 kube-apiserver 进行填充并发送回用户。 |
| 62 | + |
| 63 | +<hr> |
| 64 | + |
| 65 | +- **userInfo** (UserInfo) |
| 66 | + |
| 67 | + <!-- |
| 68 | + User attributes of the user making this request. |
| 69 | + --> |
| 70 | + 发出此请求的用户的用户属性。 |
| 71 | + |
| 72 | + <a name="UserInfo"></a> |
| 73 | + <!-- |
| 74 | + *UserInfo holds the information about the user needed to implement the user.Info interface.* |
| 75 | + --> |
| 76 | + userInfo 包含实现 user.Info 接口所需的用户相关信息。 |
| 77 | + |
| 78 | + - **userInfo.extra** (map[string][]string) |
| 79 | + |
| 80 | + <!-- |
| 81 | + Any additional information provided by the authenticator. |
| 82 | + --> |
| 83 | + |
| 84 | + 由身份认证组件提供的所有附加信息。 |
| 85 | + |
| 86 | + - **userInfo.groups** ([]string) |
| 87 | + |
| 88 | + <!-- |
| 89 | + The names of groups this user is a part of. |
| 90 | + --> |
| 91 | + |
| 92 | + 此用户所属的用户组的名称。 |
| 93 | + |
| 94 | + - **userInfo.uid** (string) |
| 95 | + |
| 96 | + <!-- |
| 97 | + A unique value that identifies this user across time. If this user is deleted and another user by the same name is added, they will have different UIDs. |
| 98 | + --> |
| 99 | + |
| 100 | + 跨时间标识此用户的唯一值。如果此用户被删除且另一个同名用户被添加,他们将具有不同的 UID。 |
| 101 | + |
| 102 | + - **userInfo.username** (string) |
| 103 | + |
| 104 | + <!-- |
| 105 | + The name that uniquely identifies this user among all active users. |
| 106 | + --> |
| 107 | + |
| 108 | + 在所有活跃用户中标识此用户的名称。 |
| 109 | + |
| 110 | +<!-- |
| 111 | +## Operations {#Operations} |
| 112 | +--> |
| 113 | +## 操作 {#Operations} |
| 114 | + |
| 115 | +<hr> |
| 116 | + |
| 117 | +<!-- |
| 118 | +### `create` create a SelfSubjectReview |
| 119 | +
|
| 120 | +#### HTTP Request |
| 121 | +--> |
| 122 | +### `create` 创建 SelfSubjectReview |
| 123 | + |
| 124 | +#### HTTP 请求 |
| 125 | + |
| 126 | +POST /apis/authentication.k8s.io/v1alpha1/selfsubjectreviews |
| 127 | + |
| 128 | +<!-- |
| 129 | +#### Parameters |
| 130 | +
|
| 131 | +- **body**: <a href="{{< ref "../authorization-resources/self-subject-review-v1alpha1#SelfSubjectReview" >}}">SelfSubjectReview</a>, required |
| 132 | +
|
| 133 | +- **dryRun** (*in query*): string |
| 134 | +- **fieldManager** (*in query*): string |
| 135 | +- **fieldValidation** (*in query*): string |
| 136 | +- **pretty** (*in query*): string |
| 137 | +--> |
| 138 | +#### 参数 |
| 139 | + |
| 140 | +- **body**: <a href="{{< ref "../authorization-resources/self-subject-review-v1alpha1#SelfSubjectReview" >}}">SelfSubjectReview</a>,必需 |
| 141 | + |
| 142 | +- **dryRun** (**查询参数**): string |
| 143 | + |
| 144 | + <a href="{{< ref "../common-parameters/common-parameters#dryRun" >}}">dryRun</a> |
| 145 | + |
| 146 | +- **fieldManager** (**查询参数**): string |
| 147 | + |
| 148 | + <a href="{{< ref "../common-parameters/common-parameters#fieldManager" >}}">fieldManager</a> |
| 149 | + |
| 150 | +- **fieldValidation** (**查询参数**): string |
| 151 | + |
| 152 | + <a href="{{< ref "../common-parameters/common-parameters#fieldValidation" >}}">fieldValidation</a> |
| 153 | + |
| 154 | +- **pretty** (**查询参数**): string |
| 155 | + |
| 156 | + <a href="{{< ref "../common-parameters/common-parameters#pretty" >}}">pretty</a> |
| 157 | + |
| 158 | +<!-- |
| 159 | +#### Response |
| 160 | +--> |
| 161 | +#### 响应 |
| 162 | + |
| 163 | +200 (<a href="{{< ref "../authorization-resources/self-subject-review-v1alpha1#SelfSubjectReview" >}}">SelfSubjectReview</a>): OK |
| 164 | + |
| 165 | +201 (<a href="{{< ref "../authorization-resources/self-subject-review-v1alpha1#SelfSubjectReview" >}}">SelfSubjectReview</a>): Created |
| 166 | + |
| 167 | +202 (<a href="{{< ref "../authorization-resources/self-subject-review-v1alpha1#SelfSubjectReview" >}}">SelfSubjectReview</a>): Accepted |
| 168 | + |
| 169 | +401: Unauthorized |
0 commit comments