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: de32ac33-233b-414d-a426-8093cb0543ff
- annotations: {}
  labels: {}
  name: k8s-cluster-role-2
  namespace: system
  statusSet: []
  tenant: acmecorp
  uid: 5e2bd798-fa16-4063-9984-098dd0ed1565
- annotations: {}
  labels: {}
  name: k8s-cluster-role-3
  namespace: system
  statusSet: []
  tenant: acmecorp
  uid: 41c1917f-500b-4267-92ea-35f3b29b67d1
- annotations: {}
  labels: {}
  name: k8s-cluster-role-4
  namespace: system
  statusSet: []
  tenant: acmecorp
  uid: 02c957a6-6e08-402b-acc3-fee4bcc894f4

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

curl response

HTTP/1.1 200 OK
Content-Type: application/json
Date: Wed, 25 Aug 2021 09:03:13 GMT
Vary: Accept-Encoding

{
  "items": [
    {
      "tenant": "acmecorp",
      "namespace": "system",
      "name": "k8s-cluster-role-1",
      "uid": "de32ac33-233b-414d-a426-8093cb0543ff",
      "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": "5e2bd798-fa16-4063-9984-098dd0ed1565",
      "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": "41c1917f-500b-4267-92ea-35f3b29b67d1",
      "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": "02c957a6-6e08-402b-acc3-fee4bcc894f4",
      "description": "",
      "disabled": false,
      "labels": {
      },
      "annotations": {
      },
      "owner_view": null,
      "metadata": null,
      "system_metadata": null,
      "object": null,
      "get_spec": null,
      "status_set": [
      ]
    }
  ],
  "errors": [
  ]
}