ves-io-schema-k8s_cluster_role-API-List
On This Page:
Examples of listing k8s_cluster_role
Usecase:
List all k8s_cluster_roles 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: 6135b97c-ff0e-4537-bd00-39705a182674
- annotations: {}
labels: {}
name: k8s-cluster-role-2
namespace: system
statusSet: []
tenant: acmecorp
uid: 189b381f-23f2-4a75-947a-d4d1124148c8
- annotations: {}
labels: {}
name: k8s-cluster-role-3
namespace: system
statusSet: []
tenant: acmecorp
uid: 7c4fd970-c417-41dd-89e0-1c87c7ba6b84
- annotations: {}
labels: {}
name: k8s-cluster-role-4
namespace: system
statusSet: []
tenant: acmecorp
uid: b82e041b-d189-4400-ac1e-13e6e545a6f3
Request using curl:
curl -X 'GET' -H 'X-Volterra-Useragent: v1/pgm=_tmp_go-build1372770011_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: Thu, 28 Jul 2022 12:10:34 GMT
Vary: Accept-Encoding
{
"items": [
{
"tenant": "acmecorp",
"namespace": "system",
"name": "k8s-cluster-role-1",
"uid": "6135b97c-ff0e-4537-bd00-39705a182674",
"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": "189b381f-23f2-4a75-947a-d4d1124148c8",
"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": "7c4fd970-c417-41dd-89e0-1c87c7ba6b84",
"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": "b82e041b-d189-4400-ac1e-13e6e545a6f3",
"description": "",
"disabled": false,
"labels": {
},
"annotations": {
},
"owner_view": null,
"metadata": null,
"system_metadata": null,
"object": null,
"get_spec": null,
"status_set": [
]
}
],
"errors": [
]
}