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 documentation

vesctl yaml response:

object:
  metadata:
    annotations: {}
    labels: {}
    name: network-interface-1
    namespace: documentation
    uid: 08ed5a38-9cd6-44fe-8a2a-0264461a23a0
  spec:
    gcSpec:
      addressAllocator: []
      parentNetworkInterface: []
      staticAddresses: []
      virtualNetwork: []
  systemMetadata:
    creationTimestamp: "2020-07-02T15:53:17.336941400Z"
    creatorClass: examplesvc.ves.io
    finalizers: []
    namespace:
    - kind: namespace
      name: documentation
      tenant: acmecorp
    tenant: acmecorp
    traceInfo: 404aa1a1d86deff0:404aa1a1d86deff0:0:1
    uid: 08ed5a38-9cd6-44fe-8a2a-0264461a23a0
resourceVersion: "363"
status: []

Request using curl:

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

curl response:

HTTP/1.1 200 OK
Content-Type: application/json
Date: Thu, 02 Jul 2020 15:53:17 GMT
Vary: Accept-Encoding

{
  "object": {
    "metadata": {
      "name": "network-interface-1",
      "namespace": "documentation",
      "uid": "08ed5a38-9cd6-44fe-8a2a-0264461a23a0",
      "labels": {
      },
      "annotations": {
      },
      "description": "",
      "disable": false
    },
    "system_metadata": {
      "uid": "08ed5a38-9cd6-44fe-8a2a-0264461a23a0",
      "creation_timestamp": "2020-07-02T15:53:17.336941400Z",
      "deletion_timestamp": null,
      "modification_timestamp": null,
      "initializers": null,
      "finalizers": [
      ],
      "tenant": "acmecorp",
      "creator_class": "examplesvc.ves.io",
      "creator_id": "",
      "creator_cookie": "",
      "trace_info": "404aa1a1d86deff0:404aa1a1d86deff0:0:1",
      "object_index": 0,
      "namespace": [
        {
          "kind": "namespace",
          "uid": "",
          "tenant": "acmecorp",
          "namespace": "",
          "name": "documentation"
        }
      ],
      "owner_view": null
    },
    "spec": {
      "gc_spec": {
        "type": "NETWORK_INTERFACE_ETHERNET",
        "mtu": 0,
        "virtual_network": [
        ],
        "dhcp_address": "NETWORK_INTERFACE_DHCP_DISABLE",
        "static_addresses": [
        ],
        "default_gateway": null,
        "DNS_server": null,
        "DHCP_server": "NETWORK_INTERFACE_DHCP_SERVER_DISABLE",
        "vlan_tagging": "NETWORK_INTERFACE_VLAN_TAGGING_DISABLE",
        "device_name": "",
        "parent_network_interface": [
        ],
        "vlan_tag": 0,
        "tunnel": null,
        "priority": 0,
        "address_allocator": [
        ]
      }
    }
  },
  "create_form": null,
  "replace_form": null,
  "resource_version": "363",
  "metadata": null,
  "system_metadata": null,
  "spec": null,
  "status": [
  ]
}