ves-io-schema-fast_acl_rule-API-Get
On This Page:
Examples of getting fastaclrule
Usecase:
Get fast-acl-rule-white-list from current white list
Request using vesctl:
vesctl configuration get fast_acl_rule fast-acl-rule-white-list --namespace system
vesctl yaml response:
metadata:
annotations: {}
labels: {}
name: fast-acl-rule-white-list
namespace: system
resourceVersion: "261"
spec:
action:
simpleAction: ALLOW
ipPrefixSet:
ref:
- kind: ip_prefix_set
name: acmecorp-white-list
namespace: system
tenant: acmecorp
port: []
status: []
systemMetadata:
creationTimestamp: "2021-02-22T15:43:51.890729800Z"
creatorClass: examplesvc
creatorId: examplesvc
finalizers: []
tenant: acmecorp
uid: 5861a9e7-37cd-4ad4-b346-f51a8d532f26
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/fast_acl_rules/fast-acl-rule-white-list?response_format=0'
curl response:
HTTP/1.1 200 OK
Content-Length: 1022
Content-Type: application/json
Date: Mon, 22 Feb 2021 15:43:51 GMT
Vary: Accept-Encoding
{
"object": null,
"create_form": null,
"replace_form": null,
"resource_version": "261",
"metadata": {
"name": "fast-acl-rule-white-list",
"namespace": "system",
"labels": {
},
"annotations": {
},
"description": "",
"disable": false
},
"system_metadata": {
"uid": "5861a9e7-37cd-4ad4-b346-f51a8d532f26",
"creation_timestamp": "2021-02-22T15:43:51.890729800Z",
"deletion_timestamp": null,
"modification_timestamp": null,
"initializers": null,
"finalizers": [
],
"tenant": "acmecorp",
"creator_class": "examplesvc",
"creator_id": "examplesvc",
"object_index": 0,
"owner_view": null
},
"spec": {
"action": {
"simple_action": "ALLOW"
},
"port": [
],
"ip_prefix_set": {
"ref": [
{
"kind": "ip_prefix_set",
"uid": "",
"tenant": "acmecorp",
"namespace": "system",
"name": "acmecorp-white-list"
}
]
}
},
"status": [
]
}