ves-io-schema-views-policy_based_routing-API-Get

Examples of getting policybasedrouting

Usecase:

Get policy-based-routing-1

Request using vesctl:

vesctl configuration get policy_based_routing policy-based-routing-1 --namespace documentation

vesctl yaml response:

metadata:
  annotations: {}
  labels: {}
  name: policy-based-routing-1
  namespace: documentation
object:
  metadata:
    annotations: {}
    labels: {}
    name: policy-based-routing-1
    namespace: documentation
    uid: 98c5b871-1a54-41e3-8c89-d20e64866591
  spec:
    gcSpec:
      forwardingClassList:
      - name: forward-class-1
        namespace: documentation
        tenant: acmecorp
      networkPbr:
        any: {}
        networkPbrRules:
        - allTraffic: {}
          dnsName: www.abc.com
          forwardingClassList:
          - name: forward-class-2
            namespace: documentation
            tenant: acmecorp
          ruleName: rule-1
  systemMetadata:
    creationTimestamp: "2020-09-16T10:51:05.108188800Z"
    creatorClass: examplesvc
    creatorId: examplesvc
    finalizers: []
    namespace:
    - kind: namespace
      name: documentation
      tenant: acmecorp
    tenant: acmecorp
    traceInfo: 561059a2d0a00ef:561059a2d0a00ef:0:1
    uid: 98c5b871-1a54-41e3-8c89-d20e64866591
resourceVersion: "756"
spec:
  forwardingClassList:
  - name: forward-class-1
    namespace: documentation
    tenant: acmecorp
  networkPbr:
    any: {}
    networkPbrRules:
    - allTraffic: {}
      dnsName: www.abc.com
      forwardingClassList:
      - name: forward-class-2
        namespace: documentation
        tenant: acmecorp
      ruleName: rule-1
status: []
systemMetadata:
  creationTimestamp: "2020-09-16T10:51:05.108188800Z"
  creatorClass: examplesvc
  creatorId: examplesvc
  finalizers: []
  tenant: acmecorp
  uid: 98c5b871-1a54-41e3-8c89-d20e64866591

Request using curl:

curl -X 'GET' -H 'X-Volterra-Useragent: v1/pgm=_tmp_go-build013258245_b001_apidocs.test/host=docker-desktop' 'https://acmecorp.console.ves.volterra.io/api/config/namespaces/documentation/policy_based_routings/policy-based-routing-1?response_format=0'

curl response:

HTTP/1.1 200 OK
Content-Type: application/json
Date: Wed, 16 Sep 2020 10:51:05 GMT
Vary: Accept-Encoding

{
  "object": {
    "metadata": {
      "name": "policy-based-routing-1",
      "namespace": "documentation",
      "uid": "98c5b871-1a54-41e3-8c89-d20e64866591",
      "labels": {
      },
      "annotations": {
      },
      "description": "",
      "disable": false
    },
    "system_metadata": {
      "uid": "98c5b871-1a54-41e3-8c89-d20e64866591",
      "creation_timestamp": "2020-09-16T10:51:05.108188800Z",
      "deletion_timestamp": null,
      "modification_timestamp": null,
      "initializers": null,
      "finalizers": [
      ],
      "tenant": "acmecorp",
      "creator_class": "examplesvc",
      "creator_id": "examplesvc",
      "creator_cookie": "",
      "trace_info": "561059a2d0a00ef:561059a2d0a00ef:0:1",
      "object_index": 0,
      "namespace": [
        {
          "kind": "namespace",
          "uid": "",
          "tenant": "acmecorp",
          "namespace": "",
          "name": "documentation"
        }
      ],
      "owner_view": null
    },
    "spec": {
      "gc_spec": {
        "network_pbr": {
          "any": {

          },
          "network_pbr_rules": [
            {
              "rule_name": "rule-1",
              "forwarding_class_list": [
                {
                  "tenant": "acmecorp",
                  "namespace": "documentation",
                  "name": "forward-class-2"
                }
              ],
              "dns_name": "www.abc.com",
              "all_traffic": {

              }
            }
          ]
        },
        "forwarding_class_list": [
          {
            "tenant": "acmecorp",
            "namespace": "documentation",
            "name": "forward-class-1"
          }
        ],
        "view_internal": null
      }
    }
  },
  "create_form": null,
  "replace_form": null,
  "resource_version": "756",
  "metadata": {
    "name": "policy-based-routing-1",
    "namespace": "documentation",
    "labels": {
    },
    "annotations": {
    },
    "description": "",
    "disable": false
  },
  "system_metadata": {
    "uid": "98c5b871-1a54-41e3-8c89-d20e64866591",
    "creation_timestamp": "2020-09-16T10:51:05.108188800Z",
    "deletion_timestamp": null,
    "modification_timestamp": null,
    "initializers": null,
    "finalizers": [
    ],
    "tenant": "acmecorp",
    "creator_class": "examplesvc",
    "creator_id": "examplesvc",
    "object_index": 0,
    "owner_view": null
  },
  "spec": {
    "network_pbr": {
      "any": {

      },
      "network_pbr_rules": [
        {
          "rule_name": "rule-1",
          "forwarding_class_list": [
            {
              "tenant": "acmecorp",
              "namespace": "documentation",
              "name": "forward-class-2"
            }
          ],
          "dns_name": "www.abc.com",
          "all_traffic": {

          }
        }
      ]
    },
    "forwarding_class_list": [
      {
        "tenant": "acmecorp",
        "namespace": "documentation",
        "name": "forward-class-1"
      }
    ]
  },
  "status": [
  ]
}