ves-io-schema-views-origin_pool-API-Get

Examples of getting origin_pool

Usecase:

Get "productpage" origin_pool that was created in previous example

Request using vesctl:

vesctl configuration get origin_pool productpage --namespace documentation

vesctl yaml response:

metadata:
  annotations: {}
  labels:
    ves.io/app_type: bookinfo
  name: productpage
  namespace: documentation
object:
  metadata:
    annotations: {}
    labels:
      ves.io/app_type: bookinfo
    name: productpage
    namespace: documentation
    uid: de0c4ed5-41a3-4b29-8a10-713e2aeea1df
  spec:
    gcSpec:
      healthcheck: []
      noTls: {}
      originServers:
      - publicName:
          dnsName: volterra.io
      port: 80
  systemMetadata:
    creationTimestamp: "2020-10-19T09:49:29.285230100Z"
    creatorClass: examplesvc
    creatorId: examplesvc
    finalizers: []
    namespace:
    - kind: namespace
      name: documentation
      tenant: acmecorp
    tenant: acmecorp
    traceInfo: 7bb063f0f96f0787:7bb063f0f96f0787:0:1
    uid: de0c4ed5-41a3-4b29-8a10-713e2aeea1df
resourceVersion: "816"
spec:
  healthcheck: []
  noTls: {}
  originServers:
  - publicName:
      dnsName: volterra.io
  port: 80
systemMetadata:
  creationTimestamp: "2020-10-19T09:49:29.285230100Z"
  creatorClass: examplesvc
  creatorId: examplesvc
  finalizers: []
  tenant: acmecorp
  uid: de0c4ed5-41a3-4b29-8a10-713e2aeea1df

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/origin_pools/productpage?response_format=0'

curl response:

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

{
  "object": {
    "metadata": {
      "name": "productpage",
      "namespace": "documentation",
      "uid": "de0c4ed5-41a3-4b29-8a10-713e2aeea1df",
      "labels": {
        "ves.io/app_type": "bookinfo"
      },
      "annotations": {
      },
      "description": "",
      "disable": false
    },
    "system_metadata": {
      "uid": "de0c4ed5-41a3-4b29-8a10-713e2aeea1df",
      "creation_timestamp": "2020-10-19T09:49:29.285230100Z",
      "deletion_timestamp": null,
      "modification_timestamp": null,
      "initializers": null,
      "finalizers": [
      ],
      "tenant": "acmecorp",
      "creator_class": "examplesvc",
      "creator_id": "examplesvc",
      "creator_cookie": "",
      "trace_info": "7bb063f0f96f0787:7bb063f0f96f0787:0:1",
      "object_index": 0,
      "namespace": [
        {
          "kind": "namespace",
          "uid": "",
          "tenant": "acmecorp",
          "namespace": "",
          "name": "documentation"
        }
      ],
      "owner_view": null
    },
    "spec": {
      "gc_spec": {
        "origin_servers": [
          {
            "public_name": {
              "dns_name": "volterra.io"
            }
          }
        ],
        "no_tls": {

        },
        "port": 80,
        "healthcheck": [
        ],
        "loadbalancer_algorithm": "ROUND_ROBIN",
        "endpoint_selection": "DISTRIBUTED",
        "view_internal": null
      }
    }
  },
  "create_form": null,
  "replace_form": null,
  "resource_version": "816",
  "metadata": {
    "name": "productpage",
    "namespace": "documentation",
    "labels": {
      "ves.io/app_type": "bookinfo"
    },
    "annotations": {
    },
    "description": "",
    "disable": false
  },
  "system_metadata": {
    "uid": "de0c4ed5-41a3-4b29-8a10-713e2aeea1df",
    "creation_timestamp": "2020-10-19T09:49:29.285230100Z",
    "deletion_timestamp": null,
    "modification_timestamp": null,
    "initializers": null,
    "finalizers": [
    ],
    "tenant": "acmecorp",
    "creator_class": "examplesvc",
    "creator_id": "examplesvc",
    "object_index": 0,
    "owner_view": null
  },
  "spec": {
    "origin_servers": [
      {
        "public_name": {
          "dns_name": "volterra.io"
        }
      }
    ],
    "no_tls": {

    },
    "port": 80,
    "healthcheck": [
    ],
    "loadbalancer_algorithm": "ROUND_ROBIN",
    "endpoint_selection": "DISTRIBUTED"
  }
}