ves-io-schema-network_connector-API-Get

Examples of getting network_connector

Usecase:

Get network-connector connect-in-out from system namespace

Request using vesctl:

vesctl configuration get network_connector connect-in-out --namespace system

vesctl yaml response:

metadata:
  annotations: {}
  labels: {}
  name: connect-in-out
  namespace: system
object:
  metadata:
    annotations: {}
    labels: {}
    name: connect-in-out
    namespace: system
    uid: 0f44da0f-83e1-4563-a8e1-2a3ab95f414e
  spec:
    gcSpec:
      dynamicReverseProxy: []
      insideNetwork: []
      natPool: []
      outsideNetwork: []
  systemMetadata:
    creationTimestamp: "2020-09-16T10:50:29.194324300Z"
    creatorClass: examplesvc
    creatorId: examplesvc
    finalizers: []
    namespace:
    - kind: namespace
      name: system
      tenant: acmecorp
    tenant: acmecorp
    traceInfo: 3b7280daff5184f6:3b7280daff5184f6:0:1
    uid: 0f44da0f-83e1-4563-a8e1-2a3ab95f414e
resourceVersion: "377"
spec: {}
status: []
systemMetadata:
  creationTimestamp: "2020-09-16T10:50:29.194324300Z"
  creatorClass: examplesvc
  creatorId: examplesvc
  finalizers: []
  tenant: acmecorp
  uid: 0f44da0f-83e1-4563-a8e1-2a3ab95f414e

Request using curl:

curl -X 'GET' -H 'X-Volterra-Useragent: v1/pgm=_tmp_go-build013258245_b001_apidocs.test/host=docker-desktop' 'https://acmecorp.console.ves.volterra.io/api/config/namespaces/system/network_connectors/connect-in-out?response_format=0'

curl response:

HTTP/1.1 200 OK
Content-Type: application/json
Date: Wed, 16 Sep 2020 10:50:29 GMT
Vary: Accept-Encoding

{
  "object": {
    "metadata": {
      "name": "connect-in-out",
      "namespace": "system",
      "uid": "0f44da0f-83e1-4563-a8e1-2a3ab95f414e",
      "labels": {
      },
      "annotations": {
      },
      "description": "",
      "disable": false
    },
    "system_metadata": {
      "uid": "0f44da0f-83e1-4563-a8e1-2a3ab95f414e",
      "creation_timestamp": "2020-09-16T10:50:29.194324300Z",
      "deletion_timestamp": null,
      "modification_timestamp": null,
      "initializers": null,
      "finalizers": [
      ],
      "tenant": "acmecorp",
      "creator_class": "examplesvc",
      "creator_id": "examplesvc",
      "creator_cookie": "",
      "trace_info": "3b7280daff5184f6:3b7280daff5184f6:0:1",
      "object_index": 0,
      "namespace": [
        {
          "kind": "namespace",
          "uid": "",
          "tenant": "acmecorp",
          "namespace": "",
          "name": "system"
        }
      ],
      "owner_view": null
    },
    "spec": {
      "gc_spec": {
        "connector_type": "NETWORK_CONNECTOR_TYPE_DEFAULT_GATEWAY_SNAT",
        "outside_network_type": "VIRTUAL_NETWORK_SITE_LOCAL",
        "outside_network": [
        ],
        "inside_network_type": "VIRTUAL_NETWORK_SITE_LOCAL",
        "inside_network": [
        ],
        "snat_pool_type": "NETWORK_CONNECTOR_SNAT_SIP_USE_INTERFACE",
        "nat_pool": [
        ],
        "proxy_type": "NETWORK_CONNECTOR_NO_PROXY",
        "dynamic_reverse_proxy": [
        ],
        "forward_proxy": null
      }
    }
  },
  "create_form": null,
  "replace_form": null,
  "resource_version": "377",
  "metadata": {
    "name": "connect-in-out",
    "namespace": "system",
    "labels": {
    },
    "annotations": {
    },
    "description": "",
    "disable": false
  },
  "system_metadata": {
    "uid": "0f44da0f-83e1-4563-a8e1-2a3ab95f414e",
    "creation_timestamp": "2020-09-16T10:50:29.194324300Z",
    "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": [
  ]
}