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: c88690f0-f1eb-4207-94b4-11aaf7e35502
- annotations: {}
  labels: {}
  name: k8s-cluster-role-binding-2
  namespace: system
  statusSet: []
  tenant: acmecorp
  uid: d165eee5-beba-4e20-ae08-323fb32dfe18
- annotations: {}
  labels: {}
  name: k8s-cluster-role-binding-3
  namespace: system
  statusSet: []
  tenant: acmecorp
  uid: f8ce570b-a998-45eb-9253-68d31806a9f0
- annotations: {}
  labels: {}
  name: k8s-cluster-role-binding-4
  namespace: system
  statusSet: []
  tenant: acmecorp
  uid: ac0fa55b-6a76-471f-98d2-9e8643c2b215

Request using curl:

curl -X 'GET' -H 'X-Volterra-Useragent: v1/pgm=_tmp_go-build970361017_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, 25 Aug 2021 09:03:14 GMT
Vary: Accept-Encoding

{
  "items": [
    {
      "tenant": "acmecorp",
      "namespace": "system",
      "name": "k8s-cluster-role-binding-1",
      "uid": "c88690f0-f1eb-4207-94b4-11aaf7e35502",
      "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": "d165eee5-beba-4e20-ae08-323fb32dfe18",
      "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": "f8ce570b-a998-45eb-9253-68d31806a9f0",
      "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": "ac0fa55b-6a76-471f-98d2-9e8643c2b215",
      "description": "",
      "disabled": false,
      "labels": {
      },
      "annotations": {
      },
      "owner_view": null,
      "metadata": null,
      "system_metadata": null,
      "object": null,
      "get_spec": null,
      "status_set": [
      ]
    }
  ],
  "errors": [
  ]
}