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
object:
  metadata:
    annotations: {}
    labels: {}
    name: example.com
    namespace: system
    uid: a2624a44-a6eb-4c21-bf56-af0ce6ff8a90
  spec:
    gcSpec: {}
  systemMetadata:
    creationTimestamp: "2020-07-31T12:54:08.732523200Z"
    creatorClass: examplesvc.ves.io
    finalizers: []
    namespace:
    - kind: namespace
      name: system
      tenant: acmecorp
    tenant: acmecorp
    traceInfo: 46043a122cf2dab1:46043a122cf2dab1:0:1
    uid: a2624a44-a6eb-4c21-bf56-af0ce6ff8a90
resourceVersion: "159"
spec: {}
status: []
systemMetadata:
  creationTimestamp: "2020-07-31T12:54:08.732523200Z"
  creatorClass: examplesvc.ves.io
  finalizers: []
  tenant: acmecorp
  uid: a2624a44-a6eb-4c21-bf56-af0ce6ff8a90

Request using curl:

curl -X 'GET' -H 'X-Volterra-Useragent: v1/pgm=_tmp_go-build896999001_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-Type: application/json
Date: Fri, 31 Jul 2020 12:54:08 GMT
Vary: Accept-Encoding

{
  "object": {
    "metadata": {
      "name": "example.com",
      "namespace": "system",
      "uid": "a2624a44-a6eb-4c21-bf56-af0ce6ff8a90",
      "labels": {
      },
      "annotations": {
      },
      "description": "",
      "disable": false
    },
    "system_metadata": {
      "uid": "a2624a44-a6eb-4c21-bf56-af0ce6ff8a90",
      "creation_timestamp": "2020-07-31T12:54:08.732523200Z",
      "deletion_timestamp": null,
      "modification_timestamp": null,
      "initializers": null,
      "finalizers": [
      ],
      "tenant": "acmecorp",
      "creator_class": "examplesvc.ves.io",
      "creator_id": "",
      "creator_cookie": "",
      "trace_info": "46043a122cf2dab1:46043a122cf2dab1:0:1",
      "object_index": 0,
      "namespace": [
        {
          "kind": "namespace",
          "uid": "",
          "tenant": "acmecorp",
          "namespace": "",
          "name": "system"
        }
      ],
      "owner_view": null
    },
    "spec": {
      "gc_spec": {
        "txt_record": "",
        "dnssec_mode": "DNSSEC_DISABLE"
      }
    }
  },
  "create_form": null,
  "replace_form": null,
  "resource_version": "159",
  "metadata": {
    "name": "example.com",
    "namespace": "system",
    "labels": {
    },
    "annotations": {
    },
    "description": "",
    "disable": false
  },
  "system_metadata": {
    "uid": "a2624a44-a6eb-4c21-bf56-af0ce6ff8a90",
    "creation_timestamp": "2020-07-31T12:54:08.732523200Z",
    "deletion_timestamp": null,
    "modification_timestamp": null,
    "initializers": null,
    "finalizers": [
    ],
    "tenant": "acmecorp",
    "creator_class": "examplesvc.ves.io",
    "creator_id": "",
    "object_index": 0,
    "owner_view": null
  },
  "spec": {
    "domain": "",
    "txt_record": "",
    "dnssec_mode": "DNSSEC_DISABLE"
  },
  "status": [
  ]
}