ves-io-schema-infraprotect_information-API-Get

Examples of getting infraprotect_information

Usecase:

Get infraprotect information

Request using vesctl:

vesctl configuration get infraprotect_information acmecorp --namespace system

vesctl yaml response:

metadata:
  annotations: {}
  labels: {}
  name: acmecorp
  namespace: system
object:
  metadata:
    annotations: {}
    labels: {}
    name: acmecorp
    namespace: system
    uid: e4220864-7f15-44c1-9b5e-874bc0a0e81b
  spec:
    gcSpec:
      asn: 61205
      prefixes: []
      uuid: a4835e7e-b19e-409f-87d8-f4b3e2d4c1bd
  systemMetadata:
    creationTimestamp: "2020-07-31T12:54:17.602108200Z"
    creatorClass: examplesvc.ves.io
    finalizers: []
    namespace:
    - kind: namespace
      name: system
      tenant: acmecorp
    tenant: acmecorp
    traceInfo: 2170d0a8e56f8ba9:4b91f76783f06923:2170d0a8e56f8ba9:1
    uid: e4220864-7f15-44c1-9b5e-874bc0a0e81b
resourceVersion: "269"
spec:
  asn: 61205
  prefixes: []
  uuid: a4835e7e-b19e-409f-87d8-f4b3e2d4c1bd
status: []
systemMetadata:
  creationTimestamp: "2020-07-31T12:54:17.602108200Z"
  creatorClass: examplesvc.ves.io
  finalizers: []
  tenant: acmecorp
  uid: e4220864-7f15-44c1-9b5e-874bc0a0e81b

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/infraprotect/namespaces/system/infraprotect_informations/acmecorp?response_format=0'

curl response:

HTTP/1.1 200 OK
Content-Type: application/json
Date: Fri, 31 Jul 2020 12:54:17 GMT
Vary: Accept-Encoding

{
  "object": {
    "metadata": {
      "name": "acmecorp",
      "namespace": "system",
      "uid": "e4220864-7f15-44c1-9b5e-874bc0a0e81b",
      "labels": {
      },
      "annotations": {
      },
      "description": "",
      "disable": false
    },
    "system_metadata": {
      "uid": "e4220864-7f15-44c1-9b5e-874bc0a0e81b",
      "creation_timestamp": "2020-07-31T12:54:17.602108200Z",
      "deletion_timestamp": null,
      "modification_timestamp": null,
      "initializers": null,
      "finalizers": [
      ],
      "tenant": "acmecorp",
      "creator_class": "examplesvc.ves.io",
      "creator_id": "",
      "creator_cookie": "",
      "trace_info": "2170d0a8e56f8ba9:4b91f76783f06923:2170d0a8e56f8ba9:1",
      "object_index": 0,
      "namespace": [
        {
          "kind": "namespace",
          "uid": "",
          "tenant": "acmecorp",
          "namespace": "",
          "name": "system"
        }
      ],
      "owner_view": null
    },
    "spec": {
      "gc_spec": {
        "asn": 61205,
        "uuid": "a4835e7e-b19e-409f-87d8-f4b3e2d4c1bd",
        "prefixes": [
        ]
      }
    }
  },
  "resource_version": "269",
  "metadata": {
    "name": "acmecorp",
    "namespace": "system",
    "labels": {
    },
    "annotations": {
    },
    "description": "",
    "disable": false
  },
  "system_metadata": {
    "uid": "e4220864-7f15-44c1-9b5e-874bc0a0e81b",
    "creation_timestamp": "2020-07-31T12:54:17.602108200Z",
    "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": {
    "asn": 61205,
    "uuid": "a4835e7e-b19e-409f-87d8-f4b3e2d4c1bd",
    "prefixes": [
    ]
  },
  "status": [
  ]
}