ves-io-schema-forwarding_class-API-Get

Examples of getting forwarding_class

Usecase:

Get forwarding-class-1

Request using vesctl:

vesctl configuration get forwarding_class forwarding-class-1 --namespace documentation

vesctl yaml response:

metadata:
  annotations: {}
  labels: {}
  name: forwarding-class-1
  namespace: documentation
object:
  metadata:
    annotations: {}
    labels: {}
    name: forwarding-class-1
    namespace: documentation
    uid: 447e3722-68a5-4c8d-b79e-6f4ca80627f5
  spec:
    gcSpec:
      dscpBasedQueue: {}
      interfaceGroup: INTERFACE_GROUP1
      noMarking: {}
      policer:
        name: policer-1
        namespace: documentation
        tenant: acmecorp
  systemMetadata:
    creationTimestamp: "2020-07-31T12:54:13.281871700Z"
    creatorClass: examplesvc.ves.io
    finalizers: []
    namespace:
    - kind: namespace
      name: documentation
      tenant: acmecorp
    tenant: acmecorp
    traceInfo: 446e1139d32dcc1e:446e1139d32dcc1e:0:1
    uid: 447e3722-68a5-4c8d-b79e-6f4ca80627f5
resourceVersion: "230"
spec:
  dscpBasedQueue: {}
  interfaceGroup: INTERFACE_GROUP1
  noMarking: {}
  policer:
    name: policer-1
    namespace: documentation
    tenant: acmecorp
status: []
systemMetadata:
  creationTimestamp: "2020-07-31T12:54:13.281871700Z"
  creatorClass: examplesvc.ves.io
  finalizers: []
  tenant: acmecorp
  uid: 447e3722-68a5-4c8d-b79e-6f4ca80627f5

Request using curl:

curl -X 'GET' -H 'X-Volterra-Useragent: v1/pgm=_tmp_go-build896999001_b001_apidocs.test/host=docker-desktop' 'https://acmecorp.console.ves.volterra.io/api/config/namespaces/documentation/forwarding_classs/forwarding-class-1?response_format=0'

curl response:

HTTP/1.1 200 OK
Content-Type: application/json
Date: Fri, 31 Jul 2020 12:54:13 GMT
Vary: Accept-Encoding

{
  "object": {
    "metadata": {
      "name": "forwarding-class-1",
      "namespace": "documentation",
      "uid": "447e3722-68a5-4c8d-b79e-6f4ca80627f5",
      "labels": {
      },
      "annotations": {
      },
      "description": "",
      "disable": false
    },
    "system_metadata": {
      "uid": "447e3722-68a5-4c8d-b79e-6f4ca80627f5",
      "creation_timestamp": "2020-07-31T12:54:13.281871700Z",
      "deletion_timestamp": null,
      "modification_timestamp": null,
      "initializers": null,
      "finalizers": [
      ],
      "tenant": "acmecorp",
      "creator_class": "examplesvc.ves.io",
      "creator_id": "",
      "creator_cookie": "",
      "trace_info": "446e1139d32dcc1e:446e1139d32dcc1e:0:1",
      "object_index": 0,
      "namespace": [
        {
          "kind": "namespace",
          "uid": "",
          "tenant": "acmecorp",
          "namespace": "",
          "name": "documentation"
        }
      ],
      "owner_view": null
    },
    "spec": {
      "gc_spec": {
        "interface_group": "INTERFACE_GROUP1",
        "no_marking": {

        },
        "dscp_based_queue": {

        },
        "policer": {
          "tenant": "acmecorp",
          "namespace": "documentation",
          "name": "policer-1"
        }
      }
    }
  },
  "create_form": null,
  "replace_form": null,
  "resource_version": "230",
  "metadata": {
    "name": "forwarding-class-1",
    "namespace": "documentation",
    "labels": {
    },
    "annotations": {
    },
    "description": "",
    "disable": false
  },
  "system_metadata": {
    "uid": "447e3722-68a5-4c8d-b79e-6f4ca80627f5",
    "creation_timestamp": "2020-07-31T12:54:13.281871700Z",
    "deletion_timestamp": null,
    "modification_timestamp": null,
    "initializers": null,
    "finalizers": [
    ],
    "tenant": "acmecorp",
    "creator_class": "examplesvc.ves.io",
    "creator_id": "",
    "object_index": 0,
    "owner_view": null
  },
  "spec": {
    "interface_group": "INTERFACE_GROUP1",
    "no_marking": {

    },
    "dscp_based_queue": {

    },
    "policer": {
      "tenant": "acmecorp",
      "namespace": "documentation",
      "name": "policer-1"
    }
  },
  "status": [
  ]
}