ves-io-schema-cluster-API-Get

Examples of getting cluster

Usecase:

Get productpage-cluster from current namespace

Request using vesctl:

vesctl configuration get cluster productpage-cluster --namespace documentation

vesctl yaml response:

object:
  metadata:
    annotations: {}
    labels: {}
    name: productpage-cluster
    namespace: documentation
    uid: 90eb6572-6725-4f9d-8135-d7bef7a73f85
  spec:
    gcSpec:
      defaultSubset: {}
      endpointSubsets: []
      endpoints:
      - kind: endpoint
        name: productpage-endpoint
        namespace: documentation
        tenant: acmecorp
      healthChecks:
      - kind: healthcheck
        name: productpage-healthcheck
        namespace: documentation
        tenant: acmecorp
      loadbalancerAlgorithm: RANDOM
      tlsParameters:
        commonParams:
          cipherSuites: []
          tlsCertificates:
          - certificateUrl: string:///<Base64>
            privateKey:
              blindfoldSecretInfo:
                location: string:///<Base64>
        sni: productpage.internal.bookinfo.com
  systemMetadata:
    creationTimestamp: "2020-05-15T10:52:33.713590219Z"
    creatorClass: examplesvc.ves.io
    finalizers: []
    namespace:
    - kind: namespace
      name: documentation
      tenant: acmecorp
    tenant: acmecorp
    traceInfo: 7a6510d1b3ab016e:7a6510d1b3ab016e:0:1
    uid: 90eb6572-6725-4f9d-8135-d7bef7a73f85
resourceVersion: "105"
status: []

Request using curl:

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

curl response:

HTTP/1.1 200 OK
Content-Type: application/json
Date: Fri, 15 May 2020 10:52:33 GMT
Vary: Accept-Encoding

{
  "object": {
    "metadata": {
      "name": "productpage-cluster",
      "namespace": "documentation",
      "uid": "90eb6572-6725-4f9d-8135-d7bef7a73f85",
      "labels": {
      },
      "annotations": {
      },
      "description": "",
      "disable": false
    },
    "system_metadata": {
      "uid": "90eb6572-6725-4f9d-8135-d7bef7a73f85",
      "creation_timestamp": "2020-05-15T10:52:33.713590219Z",
      "deletion_timestamp": null,
      "modification_timestamp": null,
      "initializers": null,
      "finalizers": [
      ],
      "tenant": "acmecorp",
      "creator_class": "examplesvc.ves.io",
      "creator_id": "",
      "creator_cookie": "",
      "trace_info": "7a6510d1b3ab016e:7a6510d1b3ab016e:0:1",
      "object_index": 0,
      "namespace": [
        {
          "kind": "namespace",
          "uid": "",
          "tenant": "acmecorp",
          "namespace": "",
          "name": "documentation"
        }
      ],
      "owner_view": null
    },
    "spec": {
      "gc_spec": {
        "endpoints": [
          {
            "kind": "endpoint",
            "uid": "",
            "tenant": "acmecorp",
            "namespace": "documentation",
            "name": "productpage-endpoint"
          }
        ],
        "health_checks": [
          {
            "kind": "healthcheck",
            "uid": "",
            "tenant": "acmecorp",
            "namespace": "documentation",
            "name": "productpage-healthcheck"
          }
        ],
        "loadbalancer_algorithm": "RANDOM",
        "circuit_breaker": null,
        "endpoint_subsets": [
        ],
        "default_subset": {
        },
        "fallback_policy": "NO_FALLBACK",
        "tls_parameters": {
          "common_params": {
            "minimum_protocol_version": "TLS_AUTO",
            "maximum_protocol_version": "TLS_AUTO",
            "cipher_suites": [
            ],
            "tls_certificates": [
              {
                "certificate_url": "string:///\u003cBase64\u003e",
                "private_key": {
                  "blindfold_secret_info": {
                    "decryption_provider": "",
                    "store_provider": "",
                    "location": "string:///\u003cBase64\u003e"
                  },
                  "secret_encoding_type": "EncodingNone"
                },
                "description": ""
              }
            ],
            "trusted_ca_url": "",
            "validation_params": null
          },
          "sni": "productpage.internal.bookinfo.com"
        },
        "connection_timeout": 0,
        "http_idle_timeout": 0,
        "outlier_detection": null,
        "endpoint_selection": "DISTRIBUTED",
        "dns_lookup_family": "AUTO",
        "dns_discovery_type": "STRICT_DNS",
        "http2_options": null
      }
    }
  },
  "create_form": null,
  "replace_form": null,
  "resource_version": "105",
  "metadata": null,
  "system_metadata": null,
  "spec": null,
  "status": [
  ]
}