ves-io-schema-operate-lte-CustomPublicAPI-ShowInfo

Examples of performing operate_lte CustomPublicAPI ShowInfo

Usecase:

Get LTE runtime info from the node

Request:

Request using vesctl:

vesctl request rpc operate_lte.CustomPublicAPI.ShowInfo -i request.yaml --uri /public/namespaces/system/sites/site1/vpm/lte/master-0/info --http-method GET

where file request.yaml has following contents:

namespace: system
node: master-0
site: site1

vesctl yaml response:

lteInfo:
  connected: true
  operator: T-Mobile
  serviceType: 4G
  signal:
    rsrp: -108
    rsrq: -10
    rssi: -80
  signalStrength: EXCELLENT
  sim:
    imei: "867698041438378"
    number:
    - 1781492576x
  uptime: 10

Request using curl:

curl -X 'GET' -H 'Content-Type: application/json' -H 'X-Volterra-Useragent: v1/pgm=_tmp_go-build013258245_b001_apidocs.test/host=docker-desktop' 'https://acmecorp.console.ves.volterra.io/api/operate/namespaces/system/sites/site1/vpm/lte/master-0/info?namespace=system&node=master-0&site=site1'

curl response:

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

{
  "lte_info": {
    "connected": true,
    "service_type": "4G",
    "operator": "T-Mobile",
    "uptime": 10,
    "signal_strength": "EXCELLENT",
    "sim": {
      "number": [
        "1781492576x"
      ],
      "imei": "867698041438378",
      "imsi": "",
      "iccid": ""
    },
    "signal": {
      "rssi": -80,
      "sinr": 0,
      "rsrq": -10,
      "rsrp": -108
    }
  }
}