​
Select Service
ves-io-schema-registration-CustomAPI-ListRegistrationsByState
Published April 5, 2023 | Last modified September 15, 2026
Examples of performing registration CustomAPI ListRegistrationsByState
Usecase:
List registrations by state
Request:
Request using vesctl:
vesctl request rpc registration.CustomAPI.ListRegistrationsByState -i request.yaml --uri /public/namespaces/system/listregistrationsbystate --http-method POST
where file request.yaml has following contents:
namespace: systemstate: APPROVEDvesctl yaml response:
errors: []items:- annotations: {} labels: abc: def name: reg-1d6d57b3-5af6-43b7-b191-027ae0bc2307 namespace: system tenant: customer1 uid: 1d6d57b3-5af6-43b7-b191-027ae0bc2307Request using curl:
curl -X 'POST' -d '{"namespace":"system","state":"APPROVED"}' -H 'Content-Type: application/json' -H 'X-Volterra-Useragent: v1/pgm=_var_folders_q2_3kp8z3zs0x5_m7pk1bgb0_ph0000gp_T_go-build1655461974_b001_apidocs.test/host=MTY6VVHQPH/svc=S:examplesvc/site=mytestce01' 'https://acmecorp.console.ves.volterra.io/api/register/namespaces/system/listregistrationsbystate'curl response:
HTTP/1.1 200 OKContent-Length: 476Content-Type: application/jsonDate: Fri, 19 Jun 2026 22:03:58 GMTVary: Accept-Encoding
{ "items": [ { "tenant": "customer1", "namespace": "system", "name": "reg-1d6d57b3-5af6-43b7-b191-027ae0bc2307", "uid": "1d6d57b3-5af6-43b7-b191-027ae0bc2307", "description": "", "disabled": false, "labels": { "abc": "def" }, "annotations": { }, "owner_view": null, "metadata": null, "system_metadata": null, "object": null, "get_spec": null } ], "errors": [ ]}