ves-io-schema-k8s_cluster_role-API-List

Examples of listing k8sclusterrole

Usecase:

List all k8sclusterroles in current namespace

Request using vesctl:

vesctl configuration list k8s_cluster_role --namespace system

vesctl yaml response:

errors: []
items:
- annotations: {}
  labels: {}
  name: k8s-cluster-role-1
  namespace: system
  statusSet: []
  tenant: acmecorp
  uid: 8fa00e2a-7fcf-4e15-bb48-5bf6a7593046
- annotations: {}
  labels: {}
  name: k8s-cluster-role-2
  namespace: system
  statusSet: []
  tenant: acmecorp
  uid: edb68b58-32d7-4052-ad5a-f5bad0736b8b
- annotations: {}
  labels: {}
  name: k8s-cluster-role-3
  namespace: system
  statusSet: []
  tenant: acmecorp
  uid: 00844440-ee9b-4c46-9996-a81d69ad9576
- annotations: {}
  labels: {}
  name: k8s-cluster-role-4
  namespace: system
  statusSet: []
  tenant: acmecorp
  uid: c2868311-c15e-4b4c-9b9b-f60948463d06

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_roles'

curl response

HTTP/1.1 200 OK
Content-Type: application/json
Date: Wed, 12 May 2021 11:18:01 GMT
Vary: Accept-Encoding

{
  "items": [
    {
      "tenant": "acmecorp",
      "namespace": "system",
      "name": "k8s-cluster-role-1",
      "uid": "8fa00e2a-7fcf-4e15-bb48-5bf6a7593046",
      "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-2",
      "uid": "edb68b58-32d7-4052-ad5a-f5bad0736b8b",
      "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-3",
      "uid": "00844440-ee9b-4c46-9996-a81d69ad9576",
      "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-4",
      "uid": "c2868311-c15e-4b4c-9b9b-f60948463d06",
      "description": "",
      "disabled": false,
      "labels": {
      },
      "annotations": {
      },
      "owner_view": null,
      "metadata": null,
      "system_metadata": null,
      "object": null,
      "get_spec": null,
      "status_set": [
      ]
    }
  ],
  "errors": [
  ]
}