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:

object:
  metadata:
    annotations: {}
    labels: {}
    name: bgp-asn-anonymous
    namespace: documentation
    uid: 4abd04c9-ed18-4324-a599-d8e75d6b5454
  spec:
    gcSpec:
      asNumbers:
      - 1234
      - 5678
      - 9101
      - 1121
  systemMetadata:
    creationTimestamp: "2020-05-15T10:52:31.737427125Z"
    creatorClass: examplesvc.ves.io
    finalizers: []
    namespace:
    - kind: namespace
      name: documentation
      tenant: acmecorp
    tenant: acmecorp
    traceInfo: 739262c7ee8130ea:739262c7ee8130ea:0:1
    uid: 4abd04c9-ed18-4324-a599-d8e75d6b5454
resourceVersion: "75"
status: []

Request using curl:

curl -X 'GET' -H 'X-Volterra-Useragent: v1/pgm=_tmp_go-build144460626_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: 1286
Content-Type: application/json
Date: Fri, 15 May 2020 10:52:31 GMT
Vary: Accept-Encoding

{
  "object": {
    "metadata": {
      "name": "bgp-asn-anonymous",
      "namespace": "documentation",
      "uid": "4abd04c9-ed18-4324-a599-d8e75d6b5454",
      "labels": {
      },
      "annotations": {
      },
      "description": "",
      "disable": false
    },
    "system_metadata": {
      "uid": "4abd04c9-ed18-4324-a599-d8e75d6b5454",
      "creation_timestamp": "2020-05-15T10:52:31.737427125Z",
      "deletion_timestamp": null,
      "modification_timestamp": null,
      "initializers": null,
      "finalizers": [
      ],
      "tenant": "acmecorp",
      "creator_class": "examplesvc.ves.io",
      "creator_id": "",
      "creator_cookie": "",
      "trace_info": "739262c7ee8130ea:739262c7ee8130ea:0:1",
      "object_index": 0,
      "namespace": [
        {
          "kind": "namespace",
          "uid": "",
          "tenant": "acmecorp",
          "namespace": "",
          "name": "documentation"
        }
      ],
      "owner_view": null
    },
    "spec": {
      "gc_spec": {
        "as_numbers": [
          1234,
          5678,
          9101,
          1121
        ]
      }
    }
  },
  "create_form": null,
  "replace_form": null,
  "resource_version": "75",
  "metadata": null,
  "system_metadata": null,
  "spec": null,
  "status": [
  ]
}