ves-io-schema-views-azure_vnet_site-CustomAPI-SetVIPInfo

Examples of performing viewsazurevnet_site CustomAPI SetVIPInfo

Usecase:

Configure Azure Vnet Site VIP Information

Request:

Request using vesctl:

vesctl request rpc views_azure_vnet_site.CustomAPI.SetVIPInfo -i request.yaml --uri /public/namespaces/default/azure_vnet_site/my-site/set_vip_info --http-method POST

where file request.yaml has following contents:

name: my-site
namespace: system
vipParamsPerAz:
- azName: "1"
  insideVip:
  - 1.1.1.1
  outsideVip:
  - 2.2.2.2

vesctl yaml response:

{}

Request using curl:

curl -X 'POST' -d '{"namespace":"system","name":"my-site","vipParamsPerAz":[{"insideVip":["1.1.1.1"],"outsideVip":["2.2.2.2"],"azName":"1"}]}' -H 'Content-Type: application/json' -H 'X-Volterra-Useragent: v1/pgm=_tmp_go-build970361017_b001_apidocs.test/host=docker-desktop' 'https://acmecorp.console.ves.volterra.io/api/config/namespaces/default/azure_vnet_site/my-site/set_vip_info'

curl response:

HTTP/1.1 200 OK
Content-Length: 4
Content-Type: application/json
Date: Wed, 25 Aug 2021 09:04:23 GMT
Vary: Accept-Encoding

{

}