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:

metadata:
  annotations: {}
  labels: {}
  name: advertise-on-public
  namespace: documentation
resourceVersion: "9"
spec:
  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
status: []
systemMetadata:
  creationTimestamp: "2021-02-22T15:43:22.398073400Z"
  creatorClass: examplesvc
  creatorId: examplesvc
  finalizers: []
  tenant: acmecorp
  uid: 4b371812-650f-4a51-8244-0ecf36670e24

Request using curl:

curl -X 'GET' -H 'X-Volterra-Useragent: v1/pgm=_tmp_go-build817539475_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: Mon, 22 Feb 2021 15:43:22 GMT
Vary: Accept-Encoding

{
  "object": null,
  "create_form": null,
  "replace_form": null,
  "resource_version": "9",
  "metadata": {
    "name": "advertise-on-public",
    "namespace": "documentation",
    "labels": {
    },
    "annotations": {
    },
    "description": "",
    "disable": false
  },
  "system_metadata": {
    "uid": "4b371812-650f-4a51-8244-0ecf36670e24",
    "creation_timestamp": "2021-02-22T15:43:22.398073400Z",
    "deletion_timestamp": null,
    "modification_timestamp": null,
    "initializers": null,
    "finalizers": [
    ],
    "tenant": "acmecorp",
    "creator_class": "examplesvc",
    "creator_id": "examplesvc",
    "object_index": 0,
    "owner_view": null
  },
  "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"
              },
              "blindfold_secret_info_internal": null,
              "secret_encoding_type": "EncodingNone"
            },
            "description": ""
          }
        ],
        "trusted_ca_url": "",
        "validation_params": null
      },
      "require_client_certificate": false
    },
    "skip_xff_append": false
  },
  "status": [
  ]
}