ves-io-schema-certified_hardware-API-Get

Examples of getting certified_hardware

Usecase:

Get of certified_hardware, show example of generic multi nic certified hardware

Request using vesctl:

vesctl configuration get certified_hardware ves-io-generic-multi-nic --namespace ves-io-shared

vesctl yaml response:

object:
  metadata:
    annotations: {}
    labels: {}
    name: ves-io-generic-multi-nic
    namespace: shared
    uid: faf00d94-6f5b-4482-b35a-66f9724a387a
  spec:
    gcSpec:
      devices:
      - deviceList: []
        maxUnit: 2
        minUnit: 1
        name: eth
        type: HARDWARE_DEVICE_ETHERNET
        use: HARDWARE_NETWORK_DEVICE_USE_OUTSIDE
      imageList:
      - name: Ubuntu
        provider: Azure
      memPageNumber: 2
      memPageSize: HARDWARE_MEM_PAGE_SIZE_1GB
      numaMem:
      - memory: 1024
        node: 1
      - memory: 1024
        node: 2
      numaNodes: 2
      vendorModelList:
      - model: ProLiant DL380p
        vendor: HP
      - model: Standard F8s
        vendor: Azure
  systemMetadata:
    creationTimestamp: "2020-07-02T15:52:57.197444500Z"
    creatorClass: examplesvc.ves.io
    finalizers: []
    namespace:
    - kind: namespace
      name: shared
      tenant: ves-io
    tenant: ves-io
    traceInfo: 61062b0ad4d3ebf7:5cbdbcfed3d43af7:61062b0ad4d3ebf7:1
    uid: faf00d94-6f5b-4482-b35a-66f9724a387a
resourceVersion: "86"
status: []

Request using curl:

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

curl response:

HTTP/1.1 200 OK
Content-Type: application/json
Date: Thu, 02 Jul 2020 15:52:57 GMT
Vary: Accept-Encoding

{
  "object": {
    "metadata": {
      "name": "ves-io-generic-multi-nic",
      "namespace": "shared",
      "uid": "faf00d94-6f5b-4482-b35a-66f9724a387a",
      "labels": {
      },
      "annotations": {
      },
      "description": "",
      "disable": false
    },
    "system_metadata": {
      "uid": "faf00d94-6f5b-4482-b35a-66f9724a387a",
      "creation_timestamp": "2020-07-02T15:52:57.197444500Z",
      "deletion_timestamp": null,
      "modification_timestamp": null,
      "initializers": null,
      "finalizers": [
      ],
      "tenant": "ves-io",
      "creator_class": "examplesvc.ves.io",
      "creator_id": "",
      "creator_cookie": "",
      "trace_info": "61062b0ad4d3ebf7:5cbdbcfed3d43af7:61062b0ad4d3ebf7:1",
      "object_index": 0,
      "namespace": [
        {
          "kind": "namespace",
          "uid": "",
          "tenant": "ves-io",
          "namespace": "",
          "name": "shared"
        }
      ],
      "owner_view": null
    },
    "spec": {
      "gc_spec": {
        "vendor_model_list": [
          {
            "vendor": "HP",
            "model": "ProLiant DL380p"
          },
          {
            "vendor": "Azure",
            "model": "Standard F8s"
          }
        ],
        "devices": [
          {
            "type": "HARDWARE_DEVICE_ETHERNET",
            "use": "HARDWARE_NETWORK_DEVICE_USE_OUTSIDE",
            "name": "eth",
            "min_unit": 1,
            "max_unit": 2,
            "device_list": [
            ]
          }
        ],
        "image_list": [
          {
            "name": "Ubuntu",
            "provider": "Azure"
          }
        ],
        "numa_nodes": 2,
        "mem_page_size": "HARDWARE_MEM_PAGE_SIZE_1GB",
        "mem_page_number": 2,
        "numa_mem": [
          {
            "memory": 1024,
            "node": 1
          },
          {
            "memory": 1024,
            "node": 2
          }
        ],
        "certified_hardware_type": "VOLTMESH"
      }
    }
  },
  "resource_version": "86",
  "metadata": null,
  "system_metadata": null,
  "spec": null,
  "status": [
  ]
}