ves-io-schema-contact-API-Get

Examples of getting contact

Usecase:

Get contact-1

Request using vesctl:

vesctl configuration get contact contact-1 --namespace documentation

vesctl yaml response:

object:
  metadata:
    annotations: {}
    labels: {}
    name: contact-1
    namespace: documentation
    uid: d3e970f1-3116-4084-ac33-4dc3cb62201b
  spec:
    gcSpec: {}
  systemMetadata:
    creationTimestamp: "2020-05-15T10:52:34.662918119Z"
    creatorClass: examplesvc.ves.io
    finalizers: []
    namespace:
    - kind: namespace
      name: documentation
      tenant: acmecorp
    tenant: acmecorp
    traceInfo: 28e3107756f3ca5c:28e3107756f3ca5c:0:1
    uid: d3e970f1-3116-4084-ac33-4dc3cb62201b
resourceVersion: "120"
status: []

Request using curl:

curl -X 'GET' -H 'X-Volterra-Useragent: v1/pgm=_tmp_go-build144460626_b001_apidocs.test/host=docker-desktop' 'https://acmecorp.console.ves.volterra.io/api/web/namespaces/documentation/contacts/contact-1?response_format=0'

curl response:

HTTP/1.1 200 OK
Content-Type: application/json
Date: Fri, 15 May 2020 10:52:34 GMT
Vary: Accept-Encoding

{
  "object": {
    "metadata": {
      "name": "contact-1",
      "namespace": "documentation",
      "uid": "d3e970f1-3116-4084-ac33-4dc3cb62201b",
      "labels": {
      },
      "annotations": {
      },
      "description": "",
      "disable": false
    },
    "system_metadata": {
      "uid": "d3e970f1-3116-4084-ac33-4dc3cb62201b",
      "creation_timestamp": "2020-05-15T10:52:34.662918119Z",
      "deletion_timestamp": null,
      "modification_timestamp": null,
      "initializers": null,
      "finalizers": [
      ],
      "tenant": "acmecorp",
      "creator_class": "examplesvc.ves.io",
      "creator_id": "",
      "creator_cookie": "",
      "trace_info": "28e3107756f3ca5c:28e3107756f3ca5c:0:1",
      "object_index": 0,
      "namespace": [
        {
          "kind": "namespace",
          "uid": "",
          "tenant": "acmecorp",
          "namespace": "",
          "name": "documentation"
        }
      ],
      "owner_view": null
    },
    "spec": {
      "gc_spec": {
        "contact_type": "MAILING",
        "phone_number": "",
        "address1": "",
        "address2": "",
        "city": "",
        "county": "",
        "state": "",
        "country": "",
        "zip_code": ""
      }
    }
  },
  "create_form": null,
  "replace_form": null,
  "resource_version": "120",
  "metadata": null,
  "system_metadata": null,
  "spec": null,
  "status": [
  ]
}