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:

errors: []
items:
- annotations: {}
  labels: {}
  name: k8s-cluster-role-binding-1
  namespace: system
  statusSet: []
  tenant: acmecorp
  uid: aa3b2213-8435-430c-a846-9f0c52ef665a
- annotations: {}
  labels: {}
  name: k8s-cluster-role-binding-2
  namespace: system
  statusSet: []
  tenant: acmecorp
  uid: e529f084-f5a4-4155-a4ca-f0d2273f099c
- annotations: {}
  labels: {}
  name: k8s-cluster-role-binding-3
  namespace: system
  statusSet: []
  tenant: acmecorp
  uid: f57e9b0b-2ccd-4e29-9872-a57a8441fc6a
- annotations: {}
  labels: {}
  name: k8s-cluster-role-binding-4
  namespace: system
  statusSet: []
  tenant: acmecorp
  uid: 05077a6b-dc25-45ed-a191-4606db806f1e

Request using curl:

curl -X 'GET' -H 'X-Volterra-Useragent: v1/pgm=_tmp_go-build038462651_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: Wed, 12 Jan 2022 14:49:03 GMT
Vary: Accept-Encoding

{
  "items": [
    {
      "tenant": "acmecorp",
      "namespace": "system",
      "name": "k8s-cluster-role-binding-1",
      "uid": "aa3b2213-8435-430c-a846-9f0c52ef665a",
      "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": "e529f084-f5a4-4155-a4ca-f0d2273f099c",
      "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": "f57e9b0b-2ccd-4e29-9872-a57a8441fc6a",
      "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": "05077a6b-dc25-45ed-a191-4606db806f1e",
      "description": "",
      "disabled": false,
      "labels": {
      },
      "annotations": {
      },
      "owner_view": null,
      "metadata": null,
      "system_metadata": null,
      "object": null,
      "get_spec": null,
      "status_set": [
      ]
    }
  ],
  "errors": [
  ]
}