ves-io-schema-tunnel-API-Get

Examples of getting tunnel

Usecase:

Get tunnel-1

Request using vesctl:

vesctl configuration get tunnel tunnel-1 --namespace documentation

vesctl yaml response:

metadata:
  annotations: {}
  labels: {}
  name: tunnel-1
  namespace: documentation
resourceVersion: "782"
spec:
  localIp:
    ipAddress:
      ipAddress:
        ipv4:
          addr: 192.168.0.10
      virtualNetworkType:
        public: {}
  params:
    ipsec:
      ipsecPsk:
        clearSecretInfo:
          url: string://<base64>
  remoteIp:
    ip:
      ipv4:
        addr: 192.168.0.10
status: []
systemMetadata:
  creationTimestamp: "2020-11-24T10:47:23.311942700Z"
  creatorClass: examplesvc
  creatorId: examplesvc
  finalizers: []
  tenant: acmecorp
  uid: 99ea54fd-3428-47b2-9ada-e39c953b0bb5

Request using curl:

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

curl response:

HTTP/1.1 200 OK
Content-Length: 1384
Content-Type: application/json
Date: Tue, 24 Nov 2020 10:47:23 GMT
Vary: Accept-Encoding

{
  "object": null,
  "create_form": null,
  "replace_form": null,
  "resource_version": "782",
  "metadata": {
    "name": "tunnel-1",
    "namespace": "documentation",
    "labels": {
    },
    "annotations": {
    },
    "description": "",
    "disable": false
  },
  "system_metadata": {
    "uid": "99ea54fd-3428-47b2-9ada-e39c953b0bb5",
    "creation_timestamp": "2020-11-24T10:47:23.311942700Z",
    "deletion_timestamp": null,
    "modification_timestamp": null,
    "initializers": null,
    "finalizers": [
    ],
    "tenant": "acmecorp",
    "creator_class": "examplesvc",
    "creator_id": "examplesvc",
    "object_index": 0,
    "owner_view": null
  },
  "spec": {
    "tunnel_type": "IPSEC_PSK",
    "local_ip": {
      "ip_address": {
        "ip_address": {
          "ipv4": {
            "addr": "192.168.0.10"
          }
        },
        "virtual_network_type": {
          "public": {

          }
        }
      }
    },
    "remote_ip": {
      "ip": {
        "ipv4": {
          "addr": "192.168.0.10"
        }
      }
    },
    "params": {
      "ipsec": {
        "ipsec_psk": {
          "clear_secret_info": {
            "provider": "",
            "url": "string://\u003cbase64\u003e"
          },
          "blindfold_secret_info_internal": null,
          "secret_encoding_type": "EncodingNone"
        }
      }
    }
  },
  "status": [
  ]
}