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: 4c821759-01ba-4557-8563-c4a2bfcd3d33
- annotations: {}
labels: {}
name: k8s-cluster-role-2
namespace: system
statusSet: []
tenant: acmecorp
uid: 5ec2b361-fb34-40dc-93dc-1e84fd608682
- annotations: {}
labels: {}
name: k8s-cluster-role-3
namespace: system
statusSet: []
tenant: acmecorp
uid: 2e594e7b-bf5b-4321-88d2-10496181985d
- annotations: {}
labels: {}
name: k8s-cluster-role-4
namespace: system
statusSet: []
tenant: acmecorp
uid: cb0ec4ef-97f6-4f82-8965-c1994fbc8dae
Request using curl:
curl -X 'GET' -H 'X-Volterra-Useragent: v1/pgm=_var_folders_2__8qnt6fwd5dvglr1xqq6l8b7w0000gp_T_go-build3109416560_b001_apidocs.test/host=C02FN35BMD6R/svc=S:examplesvc/site=mytestce01' '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, 21 Mar 2024 14:05:51 GMT
Vary: Accept-Encoding
{
"items": [
{
"tenant": "acmecorp",
"namespace": "system",
"name": "k8s-cluster-role-1",
"uid": "4c821759-01ba-4557-8563-c4a2bfcd3d33",
"description": "",
"disabled": false,
"labels": {
},
"annotations": {
},
"owner_view": null,
"metadata": null,
"system_metadata": null,
"get_spec": null,
"status_set": [
]
},
{
"tenant": "acmecorp",
"namespace": "system",
"name": "k8s-cluster-role-2",
"uid": "5ec2b361-fb34-40dc-93dc-1e84fd608682",
"description": "",
"disabled": false,
"labels": {
},
"annotations": {
},
"owner_view": null,
"metadata": null,
"system_metadata": null,
"get_spec": null,
"status_set": [
]
},
{
"tenant": "acmecorp",
"namespace": "system",
"name": "k8s-cluster-role-3",
"uid": "2e594e7b-bf5b-4321-88d2-10496181985d",
"description": "",
"disabled": false,
"labels": {
},
"annotations": {
},
"owner_view": null,
"metadata": null,
"system_metadata": null,
"get_spec": null,
"status_set": [
]
},
{
"tenant": "acmecorp",
"namespace": "system",
"name": "k8s-cluster-role-4",
"uid": "cb0ec4ef-97f6-4f82-8965-c1994fbc8dae",
"description": "",
"disabled": false,
"labels": {
},
"annotations": {
},
"owner_view": null,
"metadata": null,
"system_metadata": null,
"get_spec": null,
"status_set": [
]
}
],
"errors": [
]
}