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:

items:
- annotations: {}
  labels: {}
  name: k8s-cluster-role-1
  namespace: system
  statusSet: []
  tenant: acmecorp
  uid: 882d0d2f-bb52-49e7-8db0-e1f6c28a774a
- annotations: {}
  labels: {}
  name: k8s-cluster-role-2
  namespace: system
  statusSet: []
  tenant: acmecorp
  uid: 264964aa-c647-451f-8213-e9196b5f6b6a
- annotations: {}
  labels: {}
  name: k8s-cluster-role-3
  namespace: system
  statusSet: []
  tenant: acmecorp
  uid: 66b849af-3d70-4bd4-8095-735e9135576c
- annotations: {}
  labels: {}
  name: k8s-cluster-role-4
  namespace: system
  statusSet: []
  tenant: acmecorp
  uid: 19234bd1-74cd-4d3e-b146-cbd0e3993712

Request using curl:

curl -X 'GET' -H 'X-Volterra-Useragent: v1/pgm=_tmp_go-build817539475_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: Mon, 22 Feb 2021 15:44:04 GMT
Vary: Accept-Encoding

{
  "items": [
    {
      "tenant": "acmecorp",
      "namespace": "system",
      "name": "k8s-cluster-role-1",
      "uid": "882d0d2f-bb52-49e7-8db0-e1f6c28a774a",
      "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": "264964aa-c647-451f-8213-e9196b5f6b6a",
      "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": "66b849af-3d70-4bd4-8095-735e9135576c",
      "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": "19234bd1-74cd-4d3e-b146-cbd0e3993712",
      "description": "",
      "disabled": false,
      "labels": {
      },
      "annotations": {
      },
      "owner_view": null,
      "metadata": null,
      "system_metadata": null,
      "object": null,
      "get_spec": null,
      "status_set": [
      ]
    }
  ]
}