​
Select Service
ves-io-schema-operate-usb-CustomPublicAPI-ListRules
Published April 5, 2023 | Last modified June 4, 2026
Examples of performing usb CustomPublicAPI ListRules
Usecase:
List USB enablement rules
Request:
Request using vesctl:
vesctl request rpc usb.CustomPublicAPI.ListRules -i request.yaml --uri /public/namespaces/system/sites/site1/vpm/usb/master-0/rules --http-method GET
where file request.yaml has following contents:
namespace: systemnode: master-0site: site1vesctl yaml response:
rules:- idVendor: "05e3"- idProduct: 1d6b idVendor: "0003"Request using curl:
curl -X 'GET' -H 'Content-Type: application/json' -H 'X-Volterra-Useragent: v1/pgm=_var_folders_q2_3kp8z3zs0x5_m7pk1bgb0_ph0000gp_T_go-build1414723615_b001_apidocs.test/host=MTY6VVHQPH/svc=S:examplesvc/site=mytestce01' 'https://acmecorp.console.ves.volterra.io/api/operate/namespaces/system/sites/site1/vpm/usb/master-0/rules?namespace=system&node=master-0&site=site1'curl response:
HTTP/1.1 200 OKContent-Length: 375Content-Type: application/jsonDate: Mon, 13 Apr 2026 02:00:09 GMTVary: Accept-Encoding
{ "rules": [ { "i_serial": "", "id_vendor": "05e3", "id_product": "", "b_device_class": "", "b_device_sub_class": "", "b_device_protocol": "" }, { "i_serial": "", "id_vendor": "0003", "id_product": "1d6b", "b_device_class": "", "b_device_sub_class": "", "b_device_protocol": "" } ]}