ves-io-schema-dns_domain-API-Get

Examples of getting dns_domain

Usecase:

Get "example.com" dns_domain that was created in previous example

Request using vesctl:

vesctl configuration get dns_domain example.com --namespace system

vesctl yaml response:

metadata:
  annotations: {}
  labels: {}
  name: example.com
  namespace: system
referringObjects: []
resourceVersion: "246"
spec: {}
status: []
systemMetadata:
  creationTimestamp: "2021-07-14T08:06:58.797611199Z"
  creatorClass: examplesvc
  creatorId: examplesvc
  finalizers: []
  tenant: acmecorp
  uid: fc64b8cd-baed-4152-9605-1d933a183cca

Request using curl:

curl -X 'GET' -H 'X-Volterra-Useragent: v1/pgm=_tmp_go-build381173587_b001_apidocs.test/host=docker-desktop' 'https://acmecorp.console.ves.volterra.io/api/config/namespaces/system/dns_domains/example.com?response_format=0'

curl response:

HTTP/1.1 200 OK
Content-Length: 807
Content-Type: application/json
Date: Wed, 14 Jul 2021 08:06:58 GMT
Vary: Accept-Encoding

{
  "object": null,
  "create_form": null,
  "replace_form": null,
  "resource_version": "246",
  "metadata": {
    "name": "example.com",
    "namespace": "system",
    "labels": {
    },
    "annotations": {
    },
    "description": "",
    "disable": false
  },
  "system_metadata": {
    "uid": "fc64b8cd-baed-4152-9605-1d933a183cca",
    "creation_timestamp": "2021-07-14T08:06:58.797611199Z",
    "deletion_timestamp": null,
    "modification_timestamp": null,
    "initializers": null,
    "finalizers": [
    ],
    "tenant": "acmecorp",
    "creator_class": "examplesvc",
    "creator_id": "examplesvc",
    "object_index": 0,
    "owner_view": null
  },
  "spec": {
    "domain": "",
    "txt_record": "",
    "dnssec_mode": "DNSSEC_DISABLE"
  },
  "status": [
  ],
  "referring_objects": [
  ]
}