ves-io-schema-bgp_asn_set-API-Get

Examples of getting bgpasnset

Usecase:

Get bgp-asn-anonymous from the system which created earlier

Request using vesctl:

vesctl configuration get bgp_asn_set bgp-asn-anonymous --namespace documentation

vesctl yaml response:

metadata:
  annotations: {}
  labels: {}
  name: bgp-asn-anonymous
  namespace: documentation
resourceVersion: "112"
spec:
  asNumbers:
  - 1234
  - 5678
  - 9101
  - 1121
status: []
systemMetadata:
  creationTimestamp: "2021-03-31T08:28:12.978537100Z"
  creatorClass: examplesvc
  creatorId: examplesvc
  finalizers: []
  tenant: acmecorp
  uid: 39268563-3dd8-4132-bef4-1072ef27d6d0

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/documentation/bgp_asn_sets/bgp-asn-anonymous?response_format=0'

curl response:

HTTP/1.1 200 OK
Content-Length: 787
Content-Type: application/json
Date: Wed, 31 Mar 2021 08:28:12 GMT
Vary: Accept-Encoding

{
  "object": null,
  "create_form": null,
  "replace_form": null,
  "resource_version": "112",
  "metadata": {
    "name": "bgp-asn-anonymous",
    "namespace": "documentation",
    "labels": {
    },
    "annotations": {
    },
    "description": "",
    "disable": false
  },
  "system_metadata": {
    "uid": "39268563-3dd8-4132-bef4-1072ef27d6d0",
    "creation_timestamp": "2021-03-31T08:28:12.978537100Z",
    "deletion_timestamp": null,
    "modification_timestamp": null,
    "initializers": null,
    "finalizers": [
    ],
    "tenant": "acmecorp",
    "creator_class": "examplesvc",
    "creator_id": "examplesvc",
    "object_index": 0,
    "owner_view": null
  },
  "spec": {
    "as_numbers": [
      1234,
      5678,
      9101,
      1121
    ]
  },
  "status": [
  ]
}