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
referringObjects: []
resourceVersion: "342"
spec:
  dscpBasedQueue: {}
  interfaceGroup: INTERFACE_GROUP1
  noMarking: {}
  policer:
    name: policer-1
    namespace: documentation
    tenant: acmecorp
status: []
systemMetadata:
  creationTimestamp: "2021-08-25T09:03:03.670281979Z"
  creatorClass: examplesvc
  creatorId: examplesvc
  finalizers: []
  tenant: acmecorp
  uid: 31709416-46bc-446f-ab10-0df4bbb0200d

Request using curl:

curl -X 'GET' -H 'X-Volterra-Useragent: v1/pgm=_tmp_go-build970361017_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-Length: 963
Content-Type: application/json
Date: Wed, 25 Aug 2021 09:03:03 GMT
Vary: Accept-Encoding

{
  "object": null,
  "create_form": null,
  "replace_form": null,
  "resource_version": "342",
  "metadata": {
    "name": "forwarding-class-1",
    "namespace": "documentation",
    "labels": {
    },
    "annotations": {
    },
    "description": "",
    "disable": false
  },
  "system_metadata": {
    "uid": "31709416-46bc-446f-ab10-0df4bbb0200d",
    "creation_timestamp": "2021-08-25T09:03:03.670281979Z",
    "deletion_timestamp": null,
    "modification_timestamp": null,
    "initializers": null,
    "finalizers": [
    ],
    "tenant": "acmecorp",
    "creator_class": "examplesvc",
    "creator_id": "examplesvc",
    "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": [
  ],
  "referring_objects": [
  ]
}