ves-io-schema-fleet-API-Get

Examples of getting fleet

Usecase:

Get superstore-fleet

Request using vesctl:

vesctl configuration get fleet superstore-fleet --namespace system

vesctl yaml response:

metadata:
  annotations: {}
  labels: {}
  name: superstore-fleet
  namespace: system
object:
  metadata:
    annotations: {}
    labels: {}
    name: superstore-fleet
    namespace: system
    uid: bbcf2ee9-69fb-41e5-aa88-b59a29cab133
  spec:
    gcSpec:
      devices: []
      fleetLabel: superstore-fleet
      insideVirtualNetwork: []
      networkConnectors:
      - kind: network_connector
        name: connect-in-out
        namespace: system
        tenant: acmecorp
      networkFirewall:
      - kind: network_firewall
        name: superstore-firewall
        namespace: system
        tenant: acmecorp
      outsideVirtualNetwork: []
      volterraSoftwareVersion: 2019-build-9981
  systemMetadata:
    creationTimestamp: "2020-07-31T12:54:12.546258200Z"
    creatorClass: examplesvc.ves.io
    finalizers: []
    namespace:
    - kind: namespace
      name: system
      tenant: acmecorp
    tenant: acmecorp
    traceInfo: 5fe5056d59d4a98b:5fe5056d59d4a98b:0:1
    uid: bbcf2ee9-69fb-41e5-aa88-b59a29cab133
resourceVersion: "216"
spec:
  fleetLabel: superstore-fleet
  insideVirtualNetwork: []
  networkConnectors:
  - kind: network_connector
    name: connect-in-out
    namespace: system
    tenant: acmecorp
  networkFirewall:
  - kind: network_firewall
    name: superstore-firewall
    namespace: system
    tenant: acmecorp
  outsideVirtualNetwork: []
  volterraSoftwareVersion: 2019-build-9981
status: []
systemMetadata:
  creationTimestamp: "2020-07-31T12:54:12.546258200Z"
  creatorClass: examplesvc.ves.io
  finalizers: []
  tenant: acmecorp
  uid: bbcf2ee9-69fb-41e5-aa88-b59a29cab133

Request using curl:

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

curl response:

HTTP/1.1 200 OK
Content-Type: application/json
Date: Fri, 31 Jul 2020 12:54:12 GMT
Vary: Accept-Encoding

{
  "object": {
    "metadata": {
      "name": "superstore-fleet",
      "namespace": "system",
      "uid": "bbcf2ee9-69fb-41e5-aa88-b59a29cab133",
      "labels": {
      },
      "annotations": {
      },
      "description": "",
      "disable": false
    },
    "system_metadata": {
      "uid": "bbcf2ee9-69fb-41e5-aa88-b59a29cab133",
      "creation_timestamp": "2020-07-31T12:54:12.546258200Z",
      "deletion_timestamp": null,
      "modification_timestamp": null,
      "initializers": null,
      "finalizers": [
      ],
      "tenant": "acmecorp",
      "creator_class": "examplesvc.ves.io",
      "creator_id": "",
      "creator_cookie": "",
      "trace_info": "5fe5056d59d4a98b:5fe5056d59d4a98b:0:1",
      "object_index": 0,
      "namespace": [
        {
          "kind": "namespace",
          "uid": "",
          "tenant": "acmecorp",
          "namespace": "",
          "name": "system"
        }
      ],
      "owner_view": null
    },
    "spec": {
      "gc_spec": {
        "fleet_label": "superstore-fleet",
        "volterra_software_version": "2019-build-9981",
        "devices": [
        ],
        "network_connectors": [
          {
            "kind": "network_connector",
            "uid": "",
            "tenant": "acmecorp",
            "namespace": "system",
            "name": "connect-in-out"
          }
        ],
        "network_firewall": [
          {
            "kind": "network_firewall",
            "uid": "",
            "tenant": "acmecorp",
            "namespace": "system",
            "name": "superstore-firewall"
          }
        ],
        "operating_system_version": "",
        "outside_virtual_network": [
        ],
        "inside_virtual_network": [
        ]
      }
    }
  },
  "create_form": null,
  "replace_form": null,
  "resource_version": "216",
  "metadata": {
    "name": "superstore-fleet",
    "namespace": "system",
    "labels": {
    },
    "annotations": {
    },
    "description": "",
    "disable": false
  },
  "system_metadata": {
    "uid": "bbcf2ee9-69fb-41e5-aa88-b59a29cab133",
    "creation_timestamp": "2020-07-31T12:54:12.546258200Z",
    "deletion_timestamp": null,
    "modification_timestamp": null,
    "initializers": null,
    "finalizers": [
    ],
    "tenant": "acmecorp",
    "creator_class": "examplesvc.ves.io",
    "creator_id": "",
    "object_index": 0,
    "owner_view": null
  },
  "spec": {
    "fleet_label": "superstore-fleet",
    "volterra_software_version": "2019-build-9981",
    "network_connectors": [
      {
        "kind": "network_connector",
        "uid": "",
        "tenant": "acmecorp",
        "namespace": "system",
        "name": "connect-in-out"
      }
    ],
    "network_firewall": [
      {
        "kind": "network_firewall",
        "uid": "",
        "tenant": "acmecorp",
        "namespace": "system",
        "name": "superstore-firewall"
      }
    ],
    "operating_system_version": "",
    "outside_virtual_network": [
    ],
    "inside_virtual_network": [
    ]
  },
  "status": [
  ]
}