ves-io-schema-site-UpgradeAPI-UpgradeSW

Examples of performing site UpgradeAPI UpgradeSW

Usecase:

site SW Upgrade

Request:

Request using vesctl:

vesctl request rpc site.UpgradeAPI.UpgradeSW -i request.yaml --uri /public/namespaces/system/sites/site1/upgrade_sw --http-method POST

where file request.yaml has following contents:

name: site1
namespace: system
version: version1

vesctl yaml response:

{}

Request using curl:

curl -X 'POST' -d '{"namespace":"system","name":"site1","version":"version1"}' -H 'Content-Type: application/json' -H 'X-Volterra-Useragent: v1/pgm=_tmp_go-build186851157_b001_apidocs.test/host=docker-desktop' 'https://acmecorp.console.ves.volterra.io/api/config/namespaces/system/sites/site1/upgrade_sw'

curl response:

HTTP/1.1 200 OK
Content-Length: 4
Content-Type: application/json
Date: Tue, 24 Nov 2020 10:47:14 GMT
Vary: Accept-Encoding

{

}