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
referringObjects: []
resourceVersion: "1899"
spec:
  healthcheck: []
  noTls: {}
  originServers:
  - labels: {}
    publicName:
      dnsName: volterra.io
  port: 80
systemMetadata:
  creationTimestamp: "2022-01-12T14:51:47.650362800Z"
  creatorClass: examplesvc
  creatorId: examplesvc
  finalizers: []
  tenant: acmecorp
  uid: 205c5ee7-6b4e-4cb5-97d1-7736278ac712

Request using curl:

curl -X 'GET' -H 'X-Volterra-Useragent: v1/pgm=_tmp_go-build038462651_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-Length: 1088
Content-Type: application/json
Date: Wed, 12 Jan 2022 14:51:47 GMT
Vary: Accept-Encoding

{
  "object": null,
  "create_form": null,
  "replace_form": null,
  "resource_version": "1899",
  "metadata": {
    "name": "productpage",
    "namespace": "documentation",
    "labels": {
      "ves.io/app_type": "bookinfo"
    },
    "annotations": {
    },
    "description": "",
    "disable": false
  },
  "system_metadata": {
    "uid": "205c5ee7-6b4e-4cb5-97d1-7736278ac712",
    "creation_timestamp": "2022-01-12T14:51:47.650362800Z",
    "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"
        },
        "labels": {
        }
      }
    ],
    "no_tls": {

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