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:

          deletedReferredObjects: []
disabledReferredObjects: []
metadata:
  annotations: {}
  labels: {}
  name: advertise-on-public
  namespace: documentation
referringObjects: []
resourceVersion: "12"
spec:
  port: 443
  protocol: TCP
  publicIp: []
  tlsParameters:
    commonParams:
      cipherSuites: []
      tlsCertificates:
      - certificateUrl: string:///<Base64>
        privateKey: {}
    crl: []
    xfccHeaderElements: []
  where:
    virtualNetwork:
      ref:
      - kind: virtual_network
        name: public
        namespace: shared
        tenant: ves-io
status: []
systemMetadata:
  creationTimestamp: "2024-03-21T14:04:18.306679Z"
  creatorClass: examplesvc
  creatorId: examplesvc
  finalizers: []
  labels: {}
  tenant: acmecorp
  uid: 08bd2eae-9ad0-46b2-ab6d-3dc59c8e5be2

        

Request using curl:

          curl -X 'GET' -H 'X-Volterra-Useragent: v1/pgm=_var_folders_2__8qnt6fwd5dvglr1xqq6l8b7w0000gp_T_go-build3109416560_b001_apidocs.test/host=C02FN35BMD6R/svc=S:examplesvc/site=mytestce01' '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: Thu, 21 Mar 2024 14:04:18 GMT
Vary: Accept-Encoding

{
  "create_form": null,
  "replace_form": null,
  "resource_version": "12",
  "metadata": {
    "name": "advertise-on-public",
    "namespace": "documentation",
    "labels": {
    },
    "annotations": {
    },
    "description": "",
    "disable": false
  },
  "system_metadata": {
    "uid": "08bd2eae-9ad0-46b2-ab6d-3dc59c8e5be2",
    "creation_timestamp": "2024-03-21T14:04:18.306679Z",
    "deletion_timestamp": null,
    "modification_timestamp": null,
    "initializers": null,
    "finalizers": [
    ],
    "tenant": "acmecorp",
    "creator_class": "examplesvc",
    "creator_id": "examplesvc",
    "object_index": 0,
    "owner_view": null,
    "labels": {
    }
  },
  "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_internal": null,
              "secret_encoding_type": "EncodingNone"
            },
            "description": ""
          }
        ],
        "trusted_ca_url": "",
        "validation_params": null
      },
      "require_client_certificate": false,
      "crl": [
      ],
      "xfcc_header_elements": [
      ]
    },
    "skip_xff_append": false
  },
  "status": [
  ],
  "referring_objects": [
  ],
  "deleted_referred_objects": [
  ],
  "disabled_referred_objects": [
  ]
}