ves-io-schema-k8s_cluster_role_binding-API-List

Examples of listing k8sclusterrole_binding

Usecase:

List all k8sclusterrole_bindings in current namespace

Request using vesctl:

vesctl configuration list k8s_cluster_role_binding --namespace system

vesctl yaml response:

items:
- annotations: {}
  labels: {}
  name: k8s-cluster-role-binding-1
  namespace: system
  statusSet: []
  tenant: acmecorp
  uid: 9a743e4a-d655-40a4-8e01-b8d0517481b2
- annotations: {}
  labels: {}
  name: k8s-cluster-role-binding-2
  namespace: system
  statusSet: []
  tenant: acmecorp
  uid: d666d062-ff29-4fe6-bfb5-5a79dc883b6c
- annotations: {}
  labels: {}
  name: k8s-cluster-role-binding-3
  namespace: system
  statusSet: []
  tenant: acmecorp
  uid: 39045d84-8e7b-477e-969a-309bc10816c5
- annotations: {}
  labels: {}
  name: k8s-cluster-role-binding-4
  namespace: system
  statusSet: []
  tenant: acmecorp
  uid: 31224cc1-075e-4cb5-965e-b66b7b8047ac

Request using curl:

curl -X 'GET' -H 'X-Volterra-Useragent: v1/pgm=_tmp_go-build817539475_b001_apidocs.test/host=docker-desktop' 'https://acmecorp.console.ves.volterra.io/api/config/namespaces/system/k8s_cluster_role_bindings'

curl response

HTTP/1.1 200 OK
Content-Type: application/json
Date: Mon, 22 Feb 2021 15:44:05 GMT
Vary: Accept-Encoding

{
  "items": [
    {
      "tenant": "acmecorp",
      "namespace": "system",
      "name": "k8s-cluster-role-binding-1",
      "uid": "9a743e4a-d655-40a4-8e01-b8d0517481b2",
      "description": "",
      "disabled": false,
      "labels": {
      },
      "annotations": {
      },
      "owner_view": null,
      "metadata": null,
      "system_metadata": null,
      "object": null,
      "get_spec": null,
      "status_set": [
      ]
    },
    {
      "tenant": "acmecorp",
      "namespace": "system",
      "name": "k8s-cluster-role-binding-2",
      "uid": "d666d062-ff29-4fe6-bfb5-5a79dc883b6c",
      "description": "",
      "disabled": false,
      "labels": {
      },
      "annotations": {
      },
      "owner_view": null,
      "metadata": null,
      "system_metadata": null,
      "object": null,
      "get_spec": null,
      "status_set": [
      ]
    },
    {
      "tenant": "acmecorp",
      "namespace": "system",
      "name": "k8s-cluster-role-binding-3",
      "uid": "39045d84-8e7b-477e-969a-309bc10816c5",
      "description": "",
      "disabled": false,
      "labels": {
      },
      "annotations": {
      },
      "owner_view": null,
      "metadata": null,
      "system_metadata": null,
      "object": null,
      "get_spec": null,
      "status_set": [
      ]
    },
    {
      "tenant": "acmecorp",
      "namespace": "system",
      "name": "k8s-cluster-role-binding-4",
      "uid": "31224cc1-075e-4cb5-965e-b66b7b8047ac",
      "description": "",
      "disabled": false,
      "labels": {
      },
      "annotations": {
      },
      "owner_view": null,
      "metadata": null,
      "system_metadata": null,
      "object": null,
      "get_spec": null,
      "status_set": [
      ]
    }
  ]
}