ves-io-schema-srv6_network_slice-API-Get

Examples of getting srv6networkslice

Usecase:

Get srv6-network-slice-1

Request using vesctl:

vesctl configuration get srv6_network_slice srv6-network-slice-1 --namespace system

vesctl yaml response:

metadata:
  annotations: {}
  labels: {}
  name: srv6-network-slice-1
  namespace: system
resourceVersion: "824"
spec:
  connectToAccessNetworks: true
  connectToEnterpriseNetworks: true
  connectToInternet: true
  sidPrefixes:
  - cafe:f00d::0/32
status: []
systemMetadata:
  creationTimestamp: "2021-03-31T08:30:05.892166600Z"
  creatorClass: examplesvc
  creatorId: examplesvc
  finalizers: []
  tenant: acmecorp
  uid: 5df7b87f-0de2-4900-ae77-5f8b67614c17

Request using curl:

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

curl response:

HTTP/1.1 200 OK
Content-Length: 879
Content-Type: application/json
Date: Wed, 31 Mar 2021 08:30:05 GMT
Vary: Accept-Encoding

{
  "object": null,
  "create_form": null,
  "replace_form": null,
  "resource_version": "824",
  "metadata": {
    "name": "srv6-network-slice-1",
    "namespace": "system",
    "labels": {
    },
    "annotations": {
    },
    "description": "",
    "disable": false
  },
  "system_metadata": {
    "uid": "5df7b87f-0de2-4900-ae77-5f8b67614c17",
    "creation_timestamp": "2021-03-31T08:30:05.892166600Z",
    "deletion_timestamp": null,
    "modification_timestamp": null,
    "initializers": null,
    "finalizers": [
    ],
    "tenant": "acmecorp",
    "creator_class": "examplesvc",
    "creator_id": "examplesvc",
    "object_index": 0,
    "owner_view": null
  },
  "spec": {
    "sid_prefixes": [
      "cafe:f00d::0/32"
    ],
    "connect_to_access_networks": true,
    "connect_to_internet": true,
    "connect_to_enterprise_networks": true
  },
  "status": [
  ]
}