ves-io-schema-implicit_label-CustomAPI-Get

Examples of performing implicit_label CustomAPI Get

Usecase:

Get implicit_label

Request:

Request using vesctl:

vesctl request rpc implicit_label.CustomAPI.Get -i request.yaml --uri /public/namespaces/system/implicit_labels --http-method GET

where file request.yaml has following contents:

key: geoip.ves.io/country
query: QUERY_EXACT_LABEL
value: US

vesctl yaml response:

label: []

Request using curl:

curl -X 'GET' -H 'Content-Type: application/json' -H 'X-Volterra-Useragent: v1/pgm=_tmp_go-build144460626_b001_apidocs.test/host=docker-desktop' 'https://acmecorp.console.ves.volterra.io/api/config/namespaces/system/implicit_labels?key=geoip.ves.io0.000000country&query=QUERY_EXACT_LABEL&value=US'

curl response:

HTTP/1.1 200 OK
Content-Length: 20
Content-Type: application/json
Date: Fri, 15 May 2020 10:52:40 GMT
Vary: Accept-Encoding

{
  "label": [
  ]
}