ves-io-schema-site-UpgradeAPI-UpgradeOS

Examples of performing site UpgradeAPI UpgradeOS

Usecase:

site OS Upgrade

Request:

Request using vesctl:

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

where file request.yaml has following contents:

name: site1
namespace: system
version: version2

vesctl yaml response:

{}

Request using curl:

curl -X 'POST' -d '{"namespace":"system","name":"site1","version":"version2"}' -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_os'

curl response:

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

{

}