ves-io-schema-user-API-Get

Examples of getting user

Usecase:

Get user-1

Request using vesctl:

vesctl configuration get user user-1 --namespace documentation

vesctl yaml response:

metadata:
  annotations: {}
  labels: {}
  name: user-1
  namespace: documentation
object:
  metadata:
    annotations: {}
    labels: {}
    name: user-1
    namespace: documentation
    uid: dd5f5574-650a-4d02-b087-0ef074663468
  spec:
    gcSpec:
      contacts: []
  systemMetadata:
    creationTimestamp: "2020-09-16T10:50:58.550035600Z"
    creatorClass: examplesvc
    creatorId: examplesvc
    finalizers: []
    namespace:
    - kind: namespace
      name: documentation
      tenant: acmecorp
    tenant: acmecorp
    traceInfo: 36d79e9b235ea476:36d79e9b235ea476:0:1
    uid: dd5f5574-650a-4d02-b087-0ef074663468
resourceVersion: "691"
spec:
  contacts: []
status: []
systemMetadata:
  creationTimestamp: "2020-09-16T10:50:58.550035600Z"
  creatorClass: examplesvc
  creatorId: examplesvc
  finalizers: []
  tenant: acmecorp
  uid: dd5f5574-650a-4d02-b087-0ef074663468

Request using curl:

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

curl response:

HTTP/1.1 200 OK
Content-Type: application/json
Date: Wed, 16 Sep 2020 10:50:58 GMT
Vary: Accept-Encoding

{
  "object": {
    "metadata": {
      "name": "user-1",
      "namespace": "documentation",
      "uid": "dd5f5574-650a-4d02-b087-0ef074663468",
      "labels": {
      },
      "annotations": {
      },
      "description": "",
      "disable": false
    },
    "system_metadata": {
      "uid": "dd5f5574-650a-4d02-b087-0ef074663468",
      "creation_timestamp": "2020-09-16T10:50:58.550035600Z",
      "deletion_timestamp": null,
      "modification_timestamp": null,
      "initializers": null,
      "finalizers": [
      ],
      "tenant": "acmecorp",
      "creator_class": "examplesvc",
      "creator_id": "examplesvc",
      "creator_cookie": "",
      "trace_info": "36d79e9b235ea476:36d79e9b235ea476:0:1",
      "object_index": 0,
      "namespace": [
        {
          "kind": "namespace",
          "uid": "",
          "tenant": "acmecorp",
          "namespace": "",
          "name": "documentation"
        }
      ],
      "owner_view": null
    },
    "spec": {
      "gc_spec": {
        "type": "USER",
        "locale": "",
        "first_name": "",
        "last_name": "",
        "email": "",
        "contacts": [
        ],
        "tos_accepted": "",
        "domain_owner": false,
        "idm_type": "SSO"
      }
    }
  },
  "create_form": null,
  "replace_form": null,
  "resource_version": "691",
  "metadata": {
    "name": "user-1",
    "namespace": "documentation",
    "labels": {
    },
    "annotations": {
    },
    "description": "",
    "disable": false
  },
  "system_metadata": {
    "uid": "dd5f5574-650a-4d02-b087-0ef074663468",
    "creation_timestamp": "2020-09-16T10:50:58.550035600Z",
    "deletion_timestamp": null,
    "modification_timestamp": null,
    "initializers": null,
    "finalizers": [
    ],
    "tenant": "acmecorp",
    "creator_class": "examplesvc",
    "creator_id": "examplesvc",
    "object_index": 0,
    "owner_view": null
  },
  "spec": {
    "type": "USER",
    "locale": "",
    "first_name": "",
    "last_name": "",
    "email": "",
    "contacts": [
    ]
  },
  "status": [
  ]
}