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: 9301bbb1-6725-498b-b900-a02edaa678d1
- annotations: {}
  labels: {}
  name: k8s-cluster-role-binding-2
  namespace: system
  statusSet: []
  tenant: acmecorp
  uid: b4b271c1-123a-4e83-b456-bee220ea3880
- annotations: {}
  labels: {}
  name: k8s-cluster-role-binding-3
  namespace: system
  statusSet: []
  tenant: acmecorp
  uid: f9612a45-028f-4952-8030-2190480a6c94
- annotations: {}
  labels: {}
  name: k8s-cluster-role-binding-4
  namespace: system
  statusSet: []
  tenant: acmecorp
  uid: df9c30ef-8afc-4bbd-b844-70a6fffb530c

Request using curl:

curl -X 'GET' -H 'X-Volterra-Useragent: v1/pgm=_tmp_go-build672621555_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 May 2021 11:18:02 GMT
Vary: Accept-Encoding

{
  "items": [
    {
      "tenant": "acmecorp",
      "namespace": "system",
      "name": "k8s-cluster-role-binding-1",
      "uid": "9301bbb1-6725-498b-b900-a02edaa678d1",
      "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": "b4b271c1-123a-4e83-b456-bee220ea3880",
      "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": "f9612a45-028f-4952-8030-2190480a6c94",
      "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": "df9c30ef-8afc-4bbd-b844-70a6fffb530c",
      "description": "",
      "disabled": false,
      "labels": {
      },
      "annotations": {
      },
      "owner_view": null,
      "metadata": null,
      "system_metadata": null,
      "object": null,
      "get_spec": null,
      "status_set": [
      ]
    }
  ],
  "errors": [
  ]
}