ves-io-schema-advertise_policy-API-Get

Examples of getting advertise_policy

Usecase:

Get public advertise policy created in previous create example.

Request using vesctl:

vesctl configuration get advertise_policy advertise-on-public --namespace documentation

vesctl yaml response:

object:
  metadata:
    annotations: {}
    labels: {}
    name: advertise-on-public
    namespace: documentation
    uid: e0412cc8-ea08-4839-ba46-3eafca92d27d
  spec:
    gcSpec:
      port: 443
      protocol: TCP
      publicIp: []
      tlsParameters:
        commonParams:
          cipherSuites: []
          tlsCertificates:
          - certificateUrl: string:///<Base64>
            privateKey:
              blindfoldSecretInfo:
                location: string:///<Base64>
      where:
        virtualNetwork:
          ref:
          - kind: virtual_network
            name: public
            namespace: shared
            tenant: ves-io
  systemMetadata:
    creationTimestamp: "2020-05-15T10:52:27.419036425Z"
    creatorClass: examplesvc.ves.io
    finalizers: []
    namespace:
    - kind: namespace
      name: documentation
      tenant: acmecorp
    tenant: acmecorp
    traceInfo: 4b0e1f95bd7d6a10:4b0e1f95bd7d6a10:0:1
    uid: e0412cc8-ea08-4839-ba46-3eafca92d27d
resourceVersion: "9"
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/advertise_policys/advertise-on-public?response_format=0'

curl response:

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

{
  "object": {
    "metadata": {
      "name": "advertise-on-public",
      "namespace": "documentation",
      "uid": "e0412cc8-ea08-4839-ba46-3eafca92d27d",
      "labels": {
      },
      "annotations": {
      },
      "description": "",
      "disable": false
    },
    "system_metadata": {
      "uid": "e0412cc8-ea08-4839-ba46-3eafca92d27d",
      "creation_timestamp": "2020-05-15T10:52:27.419036425Z",
      "deletion_timestamp": null,
      "modification_timestamp": null,
      "initializers": null,
      "finalizers": [
      ],
      "tenant": "acmecorp",
      "creator_class": "examplesvc.ves.io",
      "creator_id": "",
      "creator_cookie": "",
      "trace_info": "4b0e1f95bd7d6a10:4b0e1f95bd7d6a10:0:1",
      "object_index": 0,
      "namespace": [
        {
          "kind": "namespace",
          "uid": "",
          "tenant": "acmecorp",
          "namespace": "",
          "name": "documentation"
        }
      ],
      "owner_view": null
    },
    "spec": {
      "gc_spec": {
        "where": {
          "virtual_network": {
            "ref": [
              {
                "kind": "virtual_network",
                "uid": "",
                "tenant": "ves-io",
                "namespace": "shared",
                "name": "public"
              }
            ]
          }
        },
        "address": "",
        "public_ip": [
        ],
        "protocol": "TCP",
        "port": 443,
        "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
          },
          "require_client_certificate": false
        },
        "skip_xff_append": false
      }
    }
  },
  "create_form": null,
  "replace_form": null,
  "resource_version": "9",
  "metadata": null,
  "system_metadata": null,
  "spec": null,
  "status": [
  ]
}