ves-io-schema-pbac-plan-API-Get

Examples of getting plan

Usecase:

Get plan-1

Request using vesctl:

vesctl configuration get plan plan-1 --namespace documentation

vesctl yaml response:

metadata:
  annotations: {}
  labels: {}
  name: plan-1
  namespace: documentation
referringObjects: []
resourceVersion: "1138"
spec:
  allowedServices: []
  displayName: Plan 1
  includedServices: []
status: []
systemMetadata:
  creationTimestamp: "2022-01-12T14:49:56.943288500Z"
  creatorClass: examplesvc
  creatorId: examplesvc
  finalizers: []
  tenant: acmecorp
  uid: f7b51992-6211-46e7-b04f-ff6359aef947

Request using curl:

curl -X 'GET' -H 'X-Volterra-Useragent: v1/pgm=_tmp_go-build038462651_b001_apidocs.test/host=docker-desktop' 'https://acmecorp.console.ves.volterra.io/api/web/namespaces/documentation/plans/plan-1?response_format=0'

curl response:

HTTP/1.1 200 OK
Content-Length: 783
Content-Type: application/json
Date: Wed, 12 Jan 2022 14:49:56 GMT
Vary: Accept-Encoding

{
  "object": null,
  "resource_version": "1138",
  "metadata": {
    "name": "plan-1",
    "namespace": "documentation",
    "labels": {
    },
    "annotations": {
    },
    "description": "",
    "disable": false
  },
  "system_metadata": {
    "uid": "f7b51992-6211-46e7-b04f-ff6359aef947",
    "creation_timestamp": "2022-01-12T14:49:56.943288500Z",
    "deletion_timestamp": null,
    "modification_timestamp": null,
    "initializers": null,
    "finalizers": [
    ],
    "tenant": "acmecorp",
    "creator_class": "examplesvc",
    "creator_id": "examplesvc",
    "object_index": 0,
    "owner_view": null
  },
  "spec": {
    "display_name": "Plan 1",
    "included_services": [
    ],
    "allowed_services": [
    ]
  },
  "status": [
  ],
  "referring_objects": [
  ]
}