ves-io-schema-registration-API-Replace

Examples of replacing registration

Usecase:

Replace r-4b0b5d92-c23e-4cdd-884e-8d48978fecc8

Request using vesctl:

vesctl configuration replace registration -i registration.yaml

where file registration.yaml has following contents (registration.ReplaceRequest):

RequestJSON:

          {
    "metadata": {
        "name": "r-4b0b5d92-c23e-4cdd-884e-8d48978fecc8",
        "namespace": "system",
        "labels": {
            "host-os-version": "coreos-2135-6-0",
            "hw-model": "m5a-xlarge",
            "hw-serial-number": "ec2a5ad2-ffe1-0724-2e18-9a5dbaf8ecf8",
            "hw-vendor": "amazon-ec2",
            "hw-version": "",
            "provider": "AWS"
        }
    },
    "spec": {}
}
        

vesctl yaml response: None

Request using curl:

          curl -X 'PUT' -d '{"metadata":{"name":"r-4b0b5d92-c23e-4cdd-884e-8d48978fecc8","namespace":"system","labels":{"host-os-version":"coreos-2135-6-0","hw-model":"m5a-xlarge","hw-serial-number":"ec2a5ad2-ffe1-0724-2e18-9a5dbaf8ecf8","hw-vendor":"amazon-ec2","hw-version":"","provider":"AWS"}},"spec":{}}' -H 'X-Volterra-Useragent: v1/pgm=_var_folders_2__8qnt6fwd5dvglr1xqq6l8b7w0000gp_T_go-build3109416560_b001_apidocs.test/host=C02FN35BMD6R/svc=S:examplesvc/site=mytestce01' 'https://acmecorp.console.ves.volterra.io/api/register/namespaces/system/registrations/r-4b0b5d92-c23e-4cdd-884e-8d48978fecc8'
        

curl response:

          HTTP/1.1 200 OK
Content-Length: 4
Content-Type: application/json
Date: Thu, 21 Mar 2024 14:06:45 GMT
Vary: Accept-Encoding

{

}