ves-io-schema-views-voltstack_site-API-Get

Examples of getting voltstack_site

Usecase:

Get voltstack site from system namespace

Request using vesctl:

vesctl configuration get voltstack_site cluster-1 --namespace system

vesctl yaml response:

metadata:
  annotations: {}
  labels: {}
  name: cluster-1
  namespace: system
referringObjects: []
resourceVersion: "1139"
spec:
  allowAllUsb: {}
  bondDeviceList:
    bondDevices:
    - activeBackup: {}
      devices:
      - eth1
      - eth2
      linkPollingInterval: 501
      linkUpDelay: 200
      name: bond0
    - activeBackup: {}
      devices:
      - em0
      - em1
      linkPollingInterval: 501
      linkUpDelay: 200
      name: bond2
  customNetworkConfig:
    defaultConfig: {}
    interfaceList:
      interfaces:
      - ethernetInterface:
          cluster: {}
          device: eth0
          dhcpClient: {}
          notPrimary: {}
          siteLocalNetwork: {}
          untagged: {}
        labels: {}
      - ethernetInterface:
          cluster: {}
          device: bond0
          dhcpClient: {}
          notPrimary: {}
          siteLocalNetwork: {}
          vlanId: 400
        labels: {}
    noForwardProxy: {}
    noGlobalNetwork: {}
    noNetworkPolicy: {}
  customStorageConfig:
    noStaticRoutes: {}
    storageClassList:
      storageClasses:
      - advancedStorageParameters: {}
        openebsEnterprise:
          protocol: nvmf
          replication: 3
        storageDevice: dev0
    storageDeviceList:
      storageDevices:
      - advancedAdvancedParameters:
          k: v
        openebsEnterprise:
          mayastorPools:
          - node: master-0
            poolDiskDevices:
            - dev/sda
            poolName: pool-0-master-0
        storageDevice: dev0
    storageInterfaceList:
      storageInterfaces:
      - description: Storage Network Bond
        labels:
          abc: xyz
        storageInterface:
          cluster: {}
          device: bond2
          dhcpClient: {}
          notPrimary: {}
          siteLocalNetwork: {}
          vlanId: 200
  disableGpu: {}
  logsStreamingDisabled: {}
  masterNodes:
  - master0
  - master1
  - master2
  noK8sCluster: {}
  noLocalControlPlane: {}
  volterraCertifiedHw: dell-edger640-series-voltstack-combo
  workerNodes:
  - worker0
  - worker1
  - worker2
status: []
systemMetadata:
  creationTimestamp: "2021-08-25T09:04:32.839266724Z"
  creatorClass: examplesvc
  creatorId: examplesvc
  finalizers: []
  tenant: acmecorp
  uid: f51890a0-7532-4b3f-bdc2-551771d5920d

Request using curl:

curl -X 'GET' -H 'X-Volterra-Useragent: v1/pgm=_tmp_go-build970361017_b001_apidocs.test/host=docker-desktop' 'https://acmecorp.console.ves.volterra.io/api/config/namespaces/system/voltstack_sites/cluster-1?response_format=0'

curl response:

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

{
  "object": null,
  "create_form": null,
  "replace_form": null,
  "resource_version": "1139",
  "metadata": {
    "name": "cluster-1",
    "namespace": "system",
    "labels": {
    },
    "annotations": {
    },
    "description": "",
    "disable": false
  },
  "system_metadata": {
    "uid": "f51890a0-7532-4b3f-bdc2-551771d5920d",
    "creation_timestamp": "2021-08-25T09:04:32.839266724Z",
    "deletion_timestamp": null,
    "modification_timestamp": null,
    "initializers": null,
    "finalizers": [
    ],
    "tenant": "acmecorp",
    "creator_class": "examplesvc",
    "creator_id": "examplesvc",
    "object_index": 0,
    "owner_view": null
  },
  "spec": {
    "volterra_certified_hw": "dell-edger640-series-voltstack-combo",
    "master_nodes": [
      "master0",
      "master1",
      "master2"
    ],
    "worker_nodes": [
      "worker0",
      "worker1",
      "worker2"
    ],
    "volterra_software_version": "",
    "operating_system_version": "",
    "bond_device_list": {
      "bond_devices": [
        {
          "name": "bond0",
          "devices": [
            "eth1",
            "eth2"
          ],
          "active_backup": {

          },
          "link_polling_interval": 501,
          "link_up_delay": 200
        },
        {
          "name": "bond2",
          "devices": [
            "em0",
            "em1"
          ],
          "active_backup": {

          },
          "link_polling_interval": 501,
          "link_up_delay": 200
        }
      ]
    },
    "custom_network_config": {
      "default_config": {

      },
      "interface_list": {
        "interfaces": [
          {
            "description": "",
            "labels": {
            },
            "ethernet_interface": {
              "device": "eth0",
              "cluster": {

              },
              "untagged": {

              },
              "dhcp_client": {

              },
              "site_local_network": {

              },
              "mtu": 0,
              "priority": 0,
              "not_primary": {

              }
            }
          },
          {
            "description": "",
            "labels": {
            },
            "ethernet_interface": {
              "device": "bond0",
              "cluster": {

              },
              "vlan_id": 400,
              "dhcp_client": {

              },
              "site_local_network": {

              },
              "mtu": 0,
              "priority": 0,
              "not_primary": {

              }
            }
          }
        ]
      },
      "no_network_policy": {

      },
      "no_forward_proxy": {

      },
      "no_global_network": {

      },
      "outside_vip": "",
      "outside_nameserver": "",
      "bgp_router_id": "",
      "bgp_peer_address": "",
      "vip_vrrp_mode": "VIP_VRRP_INVALID",
      "site_to_site_tunnel_ip": "",
      "tunnel_dead_timeout": 0
    },
    "custom_storage_config": {
      "storage_interface_list": {
        "storage_interfaces": [
          {
            "description": "Storage Network Bond",
            "labels": {
              "abc": "xyz"
            },
            "storage_interface": {
              "device": "bond2",
              "cluster": {

              },
              "vlan_id": 200,
              "dhcp_client": {

              },
              "site_local_network": {

              },
              "mtu": 0,
              "priority": 0,
              "not_primary": {

              }
            }
          }
        ]
      },
      "storage_device_list": {
        "storage_devices": [
          {
            "storage_device": "dev0",
            "openebs_enterprise": {
              "mayastor_pools": [
                {
                  "pool_name": "pool-0-master-0",
                  "node": "master-0",
                  "pool_disk_devices": [
                    "dev/sda"
                  ]
                }
              ]
            },
            "advanced_advanced_parameters": {
              "k": "v"
            }
          }
        ]
      },
      "storage_class_list": {
        "storage_classes": [
          {
            "storage_device": "dev0",
            "description": "",
            "default_storage_class": false,
            "openebs_enterprise": {
              "protocol": "nvmf",
              "replication": 3
            },
            "reclaim_policy": "",
            "allow_volume_expansion": false,
            "advanced_storage_parameters": {
            },
            "storage_class_name": ""
          }
        ]
      },
      "no_static_routes": {

      }
    },
    "disable_gpu": {

    },
    "address": "",
    "coordinates": null,
    "no_k8s_cluster": {

    },
    "logs_streaming_disabled": {

    },
    "allow_all_usb": {

    },
    "site_state": "ONLINE",
    "no_local_control_plane": {

    }
  },
  "status": [
  ],
  "referring_objects": [
  ]
}