​
Select Service
ves-io-schema-site-CustomDataK8SAPI-ServiceList
Published April 5, 2023 | Last modified May 30, 2025
Examples of performing site CustomDataK8SAPI ServiceList
Usecase:
Get all services in site-1
Request:
Request using vesctl:
vesctl request rpc site.CustomDataK8SAPI.ServiceList -i request.yaml --uri /public/namespaces/system/site/site-1/api/v1/services --http-method GET
where file request.yaml has following contents:
site: site-1
Copied!
vesctl yaml response:
items: []
metadata: {}
Copied!
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-build1497866850_b001_apidocs.test/host=MTY6VVHQPH/svc=S:examplesvc/site=mytestce01' 'https://acmecorp.console.ves.volterra.io/api/data/namespaces/system/site/site-1/api/v1/services?namespace=&site=site-1'
Copied!
curl response:
HTTP/1.1 200 OK
Content-Length: 139
Content-Type: application/json
Date: Fri, 30 May 2025 01:22:05 GMT
Vary: Accept-Encoding
{
"metadata": {
"selfLink": "",
"resourceVersion": "",
"continue": "",
"remainingItemCount": null
},
"items": [
]
}
Copied!