ves-io-schema-views-proxy-API-Get

Examples of getting proxy

Usecase:

Get "dynamic-http-proxy" Proxy

Request using vesctl:

vesctl configuration get proxy dynamic-http-proxy --namespace documentation

vesctl yaml response:

metadata:
  annotations: {}
  labels: {}
  name: dynamic-http-proxy
  namespace: documentation
object:
  metadata:
    annotations: {}
    labels: {}
    name: dynamic-http-proxy
    namespace: documentation
    uid: 73226276-deb7-4705-bed7-1ad57811bff5
  spec:
    gcSpec:
      dynamicProxy:
        disableDnsMasquerade: {}
        domains:
        - '*.abc.com'
        - '*.xyz.com'
        httpProxy: {}
      noForwardProxyPolicy: {}
      siteLocalNetwork: {}
      siteVirtualSites:
        advertiseWhere:
        - port: 8080
          virtualSite:
            virtualSite:
              name: acmecorp-vsite
              namespace: documentation
              tenant: acmecorp
  systemMetadata:
    creationTimestamp: "2020-10-19T09:49:31.886809200Z"
    creatorClass: examplesvc
    creatorId: examplesvc
    finalizers: []
    namespace:
    - kind: namespace
      name: documentation
      tenant: acmecorp
    tenant: acmecorp
    traceInfo: 21f31c2ce39f0b29:21f31c2ce39f0b29:0:1
    uid: 73226276-deb7-4705-bed7-1ad57811bff5
resourceVersion: "840"
spec:
  dynamicProxy:
    disableDnsMasquerade: {}
    domains:
    - '*.abc.com'
    - '*.xyz.com'
    httpProxy: {}
  noForwardProxyPolicy: {}
  siteLocalNetwork: {}
  siteVirtualSites:
    advertiseWhere:
    - port: 8080
      virtualSite:
        virtualSite:
          name: acmecorp-vsite
          namespace: documentation
          tenant: acmecorp
status: []
systemMetadata:
  creationTimestamp: "2020-10-19T09:49:31.886809200Z"
  creatorClass: examplesvc
  creatorId: examplesvc
  finalizers: []
  tenant: acmecorp
  uid: 73226276-deb7-4705-bed7-1ad57811bff5

Request using curl:

curl -X 'GET' -H 'X-Volterra-Useragent: v1/pgm=_tmp_go-build185306297_b001_apidocs.test/host=docker-desktop' 'https://acmecorp.console.ves.volterra.io/api/config/namespaces/documentation/proxys/dynamic-http-proxy?response_format=0'

curl response:

HTTP/1.1 200 OK
Content-Type: application/json
Date: Mon, 19 Oct 2020 09:49:31 GMT
Vary: Accept-Encoding

{
  "object": {
    "metadata": {
      "name": "dynamic-http-proxy",
      "namespace": "documentation",
      "uid": "73226276-deb7-4705-bed7-1ad57811bff5",
      "labels": {
      },
      "annotations": {
      },
      "description": "",
      "disable": false
    },
    "system_metadata": {
      "uid": "73226276-deb7-4705-bed7-1ad57811bff5",
      "creation_timestamp": "2020-10-19T09:49:31.886809200Z",
      "deletion_timestamp": null,
      "modification_timestamp": null,
      "initializers": null,
      "finalizers": [
      ],
      "tenant": "acmecorp",
      "creator_class": "examplesvc",
      "creator_id": "examplesvc",
      "creator_cookie": "",
      "trace_info": "21f31c2ce39f0b29:21f31c2ce39f0b29:0:1",
      "object_index": 0,
      "namespace": [
        {
          "kind": "namespace",
          "uid": "",
          "tenant": "acmecorp",
          "namespace": "",
          "name": "documentation"
        }
      ],
      "owner_view": null
    },
    "spec": {
      "gc_spec": {
        "dynamic_proxy": {
          "domains": [
            "*.abc.com",
            "*.xyz.com"
          ],
          "http_proxy": {
            "more_option": null
          },
          "disable_dns_masquerade": {

          }
        },
        "site_virtual_sites": {
          "advertise_where": [
            {
              "virtual_site": {
                "network": "SITE_NETWORK_INSIDE_AND_OUTSIDE",
                "virtual_site": {
                  "tenant": "acmecorp",
                  "namespace": "documentation",
                  "name": "acmecorp-vsite"
                }
              },
              "port": 8080
            }
          ]
        },
        "site_local_network": {

        },
        "no_forward_proxy_policy": {

        },
        "view_internal": null
      }
    }
  },
  "create_form": null,
  "replace_form": null,
  "resource_version": "840",
  "metadata": {
    "name": "dynamic-http-proxy",
    "namespace": "documentation",
    "labels": {
    },
    "annotations": {
    },
    "description": "",
    "disable": false
  },
  "system_metadata": {
    "uid": "73226276-deb7-4705-bed7-1ad57811bff5",
    "creation_timestamp": "2020-10-19T09:49:31.886809200Z",
    "deletion_timestamp": null,
    "modification_timestamp": null,
    "initializers": null,
    "finalizers": [
    ],
    "tenant": "acmecorp",
    "creator_class": "examplesvc",
    "creator_id": "examplesvc",
    "object_index": 0,
    "owner_view": null
  },
  "spec": {
    "dynamic_proxy": {
      "domains": [
        "*.abc.com",
        "*.xyz.com"
      ],
      "http_proxy": {
        "more_option": null
      },
      "disable_dns_masquerade": {

      }
    },
    "site_virtual_sites": {
      "advertise_where": [
        {
          "virtual_site": {
            "network": "SITE_NETWORK_INSIDE_AND_OUTSIDE",
            "virtual_site": {
              "tenant": "acmecorp",
              "namespace": "documentation",
              "name": "acmecorp-vsite"
            }
          },
          "port": 8080
        }
      ]
    },
    "site_local_network": {

    },
    "no_forward_proxy_policy": {

    }
  },
  "status": [
  ]
}