diff --git a/content/zh-cn/docs/reference/kubernetes-api/authorization-resources/role-v1.md b/content/zh-cn/docs/reference/kubernetes-api/authorization-resources/role-v1.md index 8b6f1362993..cb1f1f183ce 100644 --- a/content/zh-cn/docs/reference/kubernetes-api/authorization-resources/role-v1.md +++ b/content/zh-cn/docs/reference/kubernetes-api/authorization-resources/role-v1.md @@ -7,10 +7,8 @@ content_type: "api_reference" description: "Role 是一个按命名空间划分的 PolicyRule 逻辑分组,可以被 RoleBinding 作为一个单元引用。" title: "Role" weight: 7 -auto_generated: false --- `apiVersion: rbac.authorization.k8s.io/v1` @@ -28,6 +25,7 @@ auto_generated: true `import "k8s.io/api/rbac/v1"` ## Role {#Role} + @@ -40,6 +38,7 @@ Role 是一个按命名空间划分的 PolicyRule 逻辑分组,可以被 RoleB - **kind**: Role - **metadata** (}}">ObjectMeta) + @@ -114,19 +116,23 @@ RoleList 是 Role 的集合。 - **kind**: RoleList -- **metadata** (}}">ListMeta) +--> +- **metadata** (}}">ListMeta) + 标准的对象元数据。 - **items** ([]}}">Role),必需 items 是 Role 的列表。 + #### 参数 -- **name** (**路径参数**): string,必需 +- **name**(**路径参数**):string,必需 Role 的名称 -- **namespace** (**路径参数**): string,必需 +- **namespace**(**路径参数**):string,必需 }}">namespace -- **pretty** (**查询参数**): string +- **pretty**(**查询参数**):string }}">pretty + @@ -174,6 +182,7 @@ GET /apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/roles/{name} 200 (}}">Role): OK 401: Unauthorized + #### 参数 -- **namespace** (**路径参数**): string,必需 +- **namespace**(**路径参数**):string,必需 }}">namespace -- **allowWatchBookmarks** (**查询参数**): boolean +- **allowWatchBookmarks**(**查询参数**):boolean }}">allowWatchBookmarks -- **continue** (**查询参数**): string +- **continue**(**查询参数**):string }}">continue -- **fieldSelector** (**查询参数**): string +- **fieldSelector**(**查询参数**):string }}">fieldSelector -- **labelSelector** (**查询参数**): string +- **labelSelector**(**查询参数**):string }}">labelSelector -- **limit** (**查询参数**): integer +- **limit**(**查询参数**):integer }}">limit -- **pretty** (**查询参数**): string +- **pretty**(**查询参数**):string }}">pretty -- **resourceVersion** (**查询参数**): string +- **resourceVersion**(**查询参数**):string }}">resourceVersion -- **resourceVersionMatch** (**查询参数**): string +- **resourceVersionMatch**(**查询参数**):string }}">resourceVersionMatch -- **timeoutSeconds** (**查询参数**): integer +- **timeoutSeconds**(**查询参数**):integer }}">timeoutSeconds -- **watch** (**查询参数**): boolean +- **watch**(**查询参数**):boolean }}">watch + @@ -261,6 +272,7 @@ GET /apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/roles 200 (}}">RoleList): OK 401: Unauthorized + #### 参数 -- **allowWatchBookmarks** (**查询参数**): boolean +- **allowWatchBookmarks**(**查询参数**):boolean }}">allowWatchBookmarks -- **continue** (**查询参数**): string +- **continue**(**查询参数**):string }}">continue -- **fieldSelector** (**查询参数**): string +- **fieldSelector**(**查询参数**):string }}">fieldSelector -- **labelSelector** (**查询参数**): string +- **labelSelector**(**查询参数**):string }}">labelSelector -- **limit** (**查询参数**): integer +- **limit**(**查询参数**):integer }}">limit -- **pretty** (**查询参数**): string +- **pretty**(**查询参数**):string }}">pretty -- **resourceVersion** (**查询参数**): string +- **resourceVersion**(**查询参数**):string }}">resourceVersion -- **resourceVersionMatch** (**查询参数**): string +- **resourceVersionMatch**(**查询参数**):string }}">resourceVersionMatch -- **timeoutSeconds** (**查询参数**): integer +- **timeoutSeconds**(**查询参数**):integer }}">timeoutSeconds -- **watch** (**查询参数**): boolean +- **watch**(**查询参数**):boolean }}">watch + @@ -342,6 +356,7 @@ GET /apis/rbac.authorization.k8s.io/v1/roles 200 (}}">RoleList): OK 401: Unauthorized + #### 参数 -- **namespace** (**路径参数**): string,必需 +- **namespace**(**路径参数**):string,必需 }}">namespace - **body**: }}">Role,必需 -- **dryRun** (**查询参数**): string +- **dryRun**(**查询参数**):string }}">dryRun -- **fieldManager** (**查询参数**): string +- **fieldManager**(**查询参数**):string }}">fieldManager -- **fieldValidation** (**查询参数**): string +- **fieldValidation**(**查询参数**):string }}">fieldValidation -- **pretty** (**查询参数**): string +- **pretty**(**查询参数**):string }}">pretty + @@ -400,6 +417,7 @@ POST /apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/roles 202 (}}">Role): Accepted 401: Unauthorized + #### 参数 -- **name** (**路径参数**): string,必需 +- **name**(**路径参数**):string,必需 Role 的名称 -- **namespace** (**路径参数**): string,必需 +- **namespace**(**路径参数**):string,必需 }}">namespace - **body**: }}">Role,必需 -- **dryRun** (**查询参数**): string +- **dryRun**(**查询参数**):string }}">dryRun -- **fieldManager** (**查询参数**): string +- **fieldManager**(**查询参数**):string }}">fieldManager -- **fieldValidation** (**查询参数**): string +- **fieldValidation**(**查询参数**):string }}">fieldValidation -- **pretty** (**查询参数**): string +- **pretty**(**查询参数**):string }}">pretty + @@ -462,6 +482,7 @@ PUT /apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/roles/{name} 201 (}}">Role): Created 401: Unauthorized + #### 参数 -- **name** (**路径参数**): string,必需 +- **name**(**路径参数**):string,必需 Role 的名称 -- **namespace** (**路径参数**): string,必需 +- **namespace**(**路径参数**):string,必需 }}">namespace - **body**: }}">Patch,必需 -- **dryRun** (**查询参数**): string +- **dryRun**(**查询参数**):string }}">dryRun -- **fieldManager** (**查询参数**): string +- **fieldManager**(**查询参数**):string }}">fieldManager -- **fieldValidation** (**查询参数**): string +- **fieldValidation**(**查询参数**):string }}">fieldValidation -- **force** (**查询参数**): boolean +- **force**(**查询参数**):boolean }}">force -- **pretty** (**查询参数**): string +- **pretty**(**查询参数**):string }}">pretty + @@ -530,6 +553,7 @@ PATCH /apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/roles/{name} 201 (}}">Role): Created 401: Unauthorized + #### 参数 -- **name** (**路径参数**): string,必需 +- **name**(**路径参数**):string,必需 Role 的名称 -- **namespace** (**路径参数**): string,必需 +- **namespace**(**路径参数**):string,必需 }}">namespace - **body**: }}">DeleteOptions -- **dryRun** (**查询参数**): string +- **dryRun**(**查询参数**):string }}">dryRun -- **gracePeriodSeconds** (**查询参数**): integer +- **gracePeriodSeconds**(**查询参数**):integer }}">gracePeriodSeconds -- **pretty** (**查询参数**): string +- **pretty**(**查询参数**):string }}">pretty -- **propagationPolicy** (**查询参数**): string +- **propagationPolicy**(**查询参数**):string }}">propagationPolicy + @@ -592,6 +618,7 @@ DELETE /apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/roles/{name} 202 (}}">Status): Accepted 401: Unauthorized + #### 参数 -- **namespace** (**路径参数**): string,必需 +- **namespace**(**路径参数**):string,必需 }}">namespace - **body**: }}">DeleteOptions -- **continue** (**查询参数**): string +- **continue**(**查询参数**):string }}">continue -- **dryRun** (**查询参数**): string +- **dryRun**(**查询参数**):string }}">dryRun -- **fieldSelector** (**查询参数**): string +- **fieldSelector**(**查询参数**):string }}">fieldSelector -- **gracePeriodSeconds** (**查询参数**): integer +- **gracePeriodSeconds**(**查询参数**):integer }}">gracePeriodSeconds -- **labelSelector** (**查询参数**): string +- **labelSelector**(**查询参数**):string }}">labelSelector -- **limit** (**查询参数**): integer +- **limit**(**查询参数**):integer }}">limit -- **pretty** (**查询参数**): string +- **pretty**(**查询参数**):string }}">pretty -- **propagationPolicy** (**查询参数**): string +- **propagationPolicy**(**查询参数**):string }}">propagationPolicy -- **resourceVersion** (**查询参数**): string +- **resourceVersion**(**查询参数**):string }}">resourceVersion -- **resourceVersionMatch** (**查询参数**): string +- **resourceVersionMatch**(**查询参数**):string }}">resourceVersionMatch -- **timeoutSeconds** (**查询参数**): integer +- **timeoutSeconds**(**查询参数**):integer }}">timeoutSeconds +