云容器实例 CCI-创建RoleBinding:响应示例

时间:2024-11-06 15:35:42

响应示例

状态码: 200

OK

{
  "apiVersion" : "rbac.authorization.k8s.io/v1",
  "kind" : "RoleBinding",
  "metadata" : {
    "creationTimestamp" : "2020-04-07T08:25:46Z",
    "name" : "clusterrole_view_User_07b82a44a680d5661f01c00b448f8f50",
    "namespace" : "rbac-test",
    "resourceVersion" : "230511279",
    "selfLink" : "/apis/rbac.authorization.k8s.io/v1/namespaces/rbac-test/rolebindings/clusterrole_view_User_07b82a44a680d5661f01c00b448f8f50",
    "uid" : "6163c216-78a9-11ea-bcc5-340a9837e2a7"
  },
  "roleRef" : {
    "apiGroup" : "rbac.authorization.k8s.io",
    "kind" : "ClusterRole",
    "name" : "view"
  },
  "subjects" : [ {
    "apiGroup" : "rbac.authorization.k8s.io",
    "kind" : "User",
    "name" : "07b82a44a680d5661f01c00b448f8f50"
  } ]
}
support.huaweicloud.com/api-cci/createRbacAuthorizationV1NamespacedRoleBinding.html