ves-io-schema-app_type-API-Get

Examples of getting app_type

Usecase:

Get object app_type bookinfo

Request using vesctl:

vesctl configuration get app_type bookinfo --namespace shared

vesctl yaml response:

metadata:
  annotations: {}
  labels: {}
  name: bookinfo
  namespace: shared
referringObjects: []
resourceVersion: "94"
spec:
  features:
  - {}
  - type: TIMESERIES_ANOMALY_DETECTION
  - type: PER_REQ_ANOMALY_DETECTION
status: []
systemMetadata:
  creationTimestamp: "2021-05-12T11:17:30.774480920Z"
  creatorClass: examplesvc
  creatorId: examplesvc
  finalizers: []
  tenant: acmecorp
  uid: ee6093ab-bb74-435d-9dd7-937d1be1c07e

Request using curl:

curl -X 'GET' -H 'X-Volterra-Useragent: v1/pgm=_tmp_go-build672621555_b001_apidocs.test/host=docker-desktop' 'https://acmecorp.console.ves.volterra.io/api/config/namespaces/shared/app_types/bookinfo?response_format=0'

curl response:

HTTP/1.1 200 OK
Content-Length: 975
Content-Type: application/json
Date: Wed, 12 May 2021 11:17:30 GMT
Vary: Accept-Encoding

{
  "object": null,
  "create_form": null,
  "replace_form": null,
  "resource_version": "94",
  "metadata": {
    "name": "bookinfo",
    "namespace": "shared",
    "labels": {
    },
    "annotations": {
    },
    "description": "",
    "disable": false
  },
  "system_metadata": {
    "uid": "ee6093ab-bb74-435d-9dd7-937d1be1c07e",
    "creation_timestamp": "2021-05-12T11:17:30.774480920Z",
    "deletion_timestamp": null,
    "modification_timestamp": null,
    "initializers": null,
    "finalizers": [
    ],
    "tenant": "acmecorp",
    "creator_class": "examplesvc",
    "creator_id": "examplesvc",
    "object_index": 0,
    "owner_view": null
  },
  "spec": {
    "features": [
      {
        "type": "BUSINESS_LOGIC_MARKUP"
      },
      {
        "type": "TIMESERIES_ANOMALY_DETECTION"
      },
      {
        "type": "PER_REQ_ANOMALY_DETECTION"
      }
    ],
    "business_logic_markup_setting": null
  },
  "status": [
  ],
  "referring_objects": [
  ]
}