ves-io-schema-virtual_network-API-Get

Examples of getting virtual_network

Usecase:

Get virtual-network-1

Request using vesctl:

vesctl configuration get virtual_network virtual-network-1 --namespace system

vesctl yaml response:

metadata:
  annotations: {}
  labels: {}
  name: virtual-network-1
  namespace: system
referringObjects: []
resourceVersion: "1161"
spec:
  siteLocalNetwork: {}
  staticRoutes: []
status: []
systemMetadata:
  creationTimestamp: "2021-06-02T10:22:57.205026194Z"
  creatorClass: examplesvc
  creatorId: examplesvc
  finalizers: []
  tenant: acmecorp
  uid: c67bb29c-814c-4f17-93e9-10bc44c19b9f

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/virtual_networks/virtual-network-1?response_format=0'

curl response:

HTTP/1.1 200 OK
Content-Length: 803
Content-Type: application/json
Date: Wed, 02 Jun 2021 10:22:57 GMT
Vary: Accept-Encoding

{
  "object": null,
  "create_form": null,
  "replace_form": null,
  "resource_version": "1161",
  "metadata": {
    "name": "virtual-network-1",
    "namespace": "system",
    "labels": {
    },
    "annotations": {
    },
    "description": "",
    "disable": false
  },
  "system_metadata": {
    "uid": "c67bb29c-814c-4f17-93e9-10bc44c19b9f",
    "creation_timestamp": "2021-06-02T10:22:57.205026194Z",
    "deletion_timestamp": null,
    "modification_timestamp": null,
    "initializers": null,
    "finalizers": [
    ],
    "tenant": "acmecorp",
    "creator_class": "examplesvc",
    "creator_id": "examplesvc",
    "object_index": 0,
    "owner_view": null
  },
  "spec": {
    "site_local_network": {

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