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
resourceVersion: "564"
spec: {}
status: []
systemMetadata:
  creationTimestamp: "2021-03-31T08:29:27.494472100Z"
  creatorClass: examplesvc
  creatorId: examplesvc
  finalizers: []
  tenant: acmecorp
  uid: f48998a1-9cd6-4449-9fc3-e8bcc73a2547

Request using curl:

curl -X 'GET' -H 'X-Volterra-Useragent: v1/pgm=_tmp_go-build318584715_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: 710
Content-Type: application/json
Date: Wed, 31 Mar 2021 08:29:27 GMT
Vary: Accept-Encoding

{
  "object": null,
  "create_form": null,
  "replace_form": null,
  "resource_version": "564",
  "metadata": {
    "name": "network-interface-1",
    "namespace": "system",
    "labels": {
    },
    "annotations": {
    },
    "description": "",
    "disable": false
  },
  "system_metadata": {
    "uid": "f48998a1-9cd6-4449-9fc3-e8bcc73a2547",
    "creation_timestamp": "2021-03-31T08:29:27.494472100Z",
    "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": [
  ]
}