ves-io-schema-network_interface-API-Get

Examples of getting network_interface

Usecase:

Get network-interface-1

Request using vesctl:

vesctl configuration get network_interface network-interface-1 --namespace system

vesctl yaml response:

metadata:
  annotations: {}
  labels: {}
  name: network-interface-1
  namespace: system
referringObjects: []
resourceVersion: "587"
spec: {}
status: []
systemMetadata:
  creationTimestamp: "2021-06-02T10:21:45.817788835Z"
  creatorClass: examplesvc
  creatorId: examplesvc
  finalizers: []
  tenant: acmecorp
  uid: 04137326-f398-47a9-9ba0-64b117b864c7

Request using curl:

curl -X 'GET' -H 'X-Volterra-Useragent: v1/pgm=_tmp_go-build186462253_b001_apidocs.test/host=docker-desktop' 'https://acmecorp.console.ves.volterra.io/api/config/namespaces/system/network_interfaces/network-interface-1?response_format=0'

curl response:

HTTP/1.1 200 OK
Content-Length: 740
Content-Type: application/json
Date: Wed, 02 Jun 2021 10:21:45 GMT
Vary: Accept-Encoding

{
  "object": null,
  "create_form": null,
  "replace_form": null,
  "resource_version": "587",
  "metadata": {
    "name": "network-interface-1",
    "namespace": "system",
    "labels": {
    },
    "annotations": {
    },
    "description": "",
    "disable": false
  },
  "system_metadata": {
    "uid": "04137326-f398-47a9-9ba0-64b117b864c7",
    "creation_timestamp": "2021-06-02T10:21:45.817788835Z",
    "deletion_timestamp": null,
    "modification_timestamp": null,
    "initializers": null,
    "finalizers": [
    ],
    "tenant": "acmecorp",
    "creator_class": "examplesvc",
    "creator_id": "examplesvc",
    "object_index": 0,
    "owner_view": null
  },
  "spec": {

  },
  "status": [
  ],
  "referring_objects": [
  ]
}