ves-io-schema-advertise_policy-API-Get
On This Page:
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
referringObjects: []
resourceVersion: "12"
spec:
port: 443
protocol: TCP
publicIp: []
tlsParameters:
commonParams:
cipherSuites: []
tlsCertificates:
- certificateUrl: string:///<Base64>
privateKey:
blindfoldSecretInfo:
location: string:///<Base64>
crl: []
where:
virtualNetwork:
ref:
- kind: virtual_network
name: public
namespace: shared
tenant: ves-io
status: []
systemMetadata:
creationTimestamp: "2022-07-28T12:09:12.114785554Z"
creatorClass: examplesvc
creatorId: examplesvc
finalizers: []
labels: {}
tenant: acmecorp
uid: b6750051-a7ec-4f9a-acf1-b2a96c592f60
Request using curl:
curl -X 'GET' -H 'X-Volterra-Useragent: v1/pgm=_tmp_go-build1372770011_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: Thu, 28 Jul 2022 12:09:12 GMT
Vary: Accept-Encoding
X-Volterra-Response-Fields-Deprecated: object
{
"object": null,
"create_form": null,
"replace_form": null,
"resource_version": "12",
"metadata": {
"name": "advertise-on-public",
"namespace": "documentation",
"labels": {
},
"annotations": {
},
"description": "",
"disable": false
},
"system_metadata": {
"uid": "b6750051-a7ec-4f9a-acf1-b2a96c592f60",
"creation_timestamp": "2022-07-28T12:09:12.114785554Z",
"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": {
"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,
"crl": [
]
},
"skip_xff_append": false
},
"status": [
],
"referring_objects": [
]
}