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: d271efeb-a0d5-4e19-8769-fb2da7b8d5ea
- annotations: {}
  labels: {}
  name: k8s-cluster-role-2
  namespace: system
  statusSet: []
  tenant: acmecorp
  uid: cdcfed68-2837-4175-8147-81334c05f43c
- annotations: {}
  labels: {}
  name: k8s-cluster-role-3
  namespace: system
  statusSet: []
  tenant: acmecorp
  uid: d98627c8-03fa-4bb3-9b40-2593862c95a4
- annotations: {}
  labels: {}
  name: k8s-cluster-role-4
  namespace: system
  statusSet: []
  tenant: acmecorp
  uid: 65a84796-4030-43d4-9152-c8744993fba2

Request using curl:

curl -X 'GET' -H 'X-Volterra-Useragent: v1/pgm=_tmp_go-build381173587_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, 14 Jul 2021 08:07:17 GMT
Vary: Accept-Encoding

{
  "items": [
    {
      "tenant": "acmecorp",
      "namespace": "system",
      "name": "k8s-cluster-role-1",
      "uid": "d271efeb-a0d5-4e19-8769-fb2da7b8d5ea",
      "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": "cdcfed68-2837-4175-8147-81334c05f43c",
      "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": "d98627c8-03fa-4bb3-9b40-2593862c95a4",
      "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": "65a84796-4030-43d4-9152-c8744993fba2",
      "description": "",
      "disabled": false,
      "labels": {
      },
      "annotations": {
      },
      "owner_view": null,
      "metadata": null,
      "system_metadata": null,
      "object": null,
      "get_spec": null,
      "status_set": [
      ]
    }
  ],
  "errors": [
  ]
}