云容器实例 CCI-获取RoleBinding列表:响应示例

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

响应示例

状态码: 200

OK

{
  "apiVersion" : "rbac.authorization.k8s.io/v1",
  "items" : [ {
    "metadata" : {
      "creationTimestamp" : "2020-04-07T08:24:24Z",
      "name" : "clusterrole_cluster-admin_User_456b80acfdf1471e8a7fbc0019825124",
      "namespace" : "rbac-test",
      "resourceVersion" : "230509842",
      "selfLink" : "/apis/rbac.authorization.k8s.io/v1/namespaces/rbac-test/rolebindings/clusterrole_cluster-admin_User_456b80acfdf1471e8a7fbc0019825124",
      "uid" : "303fcfde-78a9-11ea-83a1-340a9837e413"
    },
    "roleRef" : {
      "apiGroup" : "rbac.authorization.k8s.io",
      "kind" : "ClusterRole",
      "name" : "cluster-admin"
    },
    "subjects" : [ {
      "apiGroup" : "rbac.authorization.k8s.io",
      "kind" : "User",
      "name" : "456b80acfdf1471e8a7fbc0019825124"
    } ]
  }, {
    "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"
    } ]
  } ],
  "kind" : "RoleBindingList",
  "metadata" : {
    "resourceVersion" : "230535192",
    "selfLink" : "/apis/rbac.authorization.k8s.io/v1/namespaces/rbac-test/rolebindings"
  }
}
support.huaweicloud.com/api-cci/listRbacAuthorizationV1RoleBindingForAllNamespaces.html