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: "316"
spec:
  dscpBasedQueue: {}
  interfaceGroup: INTERFACE_GROUP1
  noMarking: {}
  policer:
    name: policer-1
    namespace: documentation
    tenant: acmecorp
status: []
systemMetadata:
  creationTimestamp: "2021-05-12T11:17:51.408179013Z"
  creatorClass: examplesvc
  creatorId: examplesvc
  finalizers: []
  tenant: acmecorp
  uid: 52ca6dc0-8eb5-430b-b139-334d64961a42

Request using curl:

curl -X 'GET' -H 'X-Volterra-Useragent: v1/pgm=_tmp_go-build672621555_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, 12 May 2021 11:17:51 GMT
Vary: Accept-Encoding

{
  "object": null,
  "create_form": null,
  "replace_form": null,
  "resource_version": "316",
  "metadata": {
    "name": "forwarding-class-1",
    "namespace": "documentation",
    "labels": {
    },
    "annotations": {
    },
    "description": "",
    "disable": false
  },
  "system_metadata": {
    "uid": "52ca6dc0-8eb5-430b-b139-334d64961a42",
    "creation_timestamp": "2021-05-12T11:17:51.408179013Z",
    "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": [
  ]
}