ves-io-schema-service_policy_set-API-Get

Examples of getting servicepolicyset

Usecase:

Get service-policy-set-1

Request using vesctl:

vesctl configuration get service_policy_set service-policy-set-1 --namespace documentation

vesctl yaml response:

object:
  metadata:
    annotations: {}
    labels: {}
    name: service-policy-set-1
    namespace: documentation
    uid: f9ffc833-1ffc-4472-9f23-57f5d7fd091e
  spec:
    gcSpec:
      policies: []
  systemMetadata:
    creationTimestamp: "2020-07-02T15:53:31.691366100Z"
    creatorClass: examplesvc.ves.io
    finalizers: []
    namespace:
    - kind: namespace
      name: documentation
      tenant: acmecorp
    tenant: acmecorp
    traceInfo: 7482f51100aa1aa0:7482f51100aa1aa0:0:1
    uid: f9ffc833-1ffc-4472-9f23-57f5d7fd091e
resourceVersion: "559"
status: []

Request using curl:

curl -X 'GET' -H 'X-Volterra-Useragent: v1/pgm=_tmp_go-build743694289_b001_apidocs.test/host=docker-desktop' 'https://acmecorp.console.ves.volterra.io/api/config/namespaces/documentation/service_policy_sets/service-policy-set-1?response_format=0'

curl response:

HTTP/1.1 200 OK
Content-Length: 1322
Content-Type: application/json
Date: Thu, 02 Jul 2020 15:53:31 GMT
Vary: Accept-Encoding

{
  "object": {
    "metadata": {
      "name": "service-policy-set-1",
      "namespace": "documentation",
      "uid": "f9ffc833-1ffc-4472-9f23-57f5d7fd091e",
      "labels": {
      },
      "annotations": {
      },
      "description": "",
      "disable": false
    },
    "system_metadata": {
      "uid": "f9ffc833-1ffc-4472-9f23-57f5d7fd091e",
      "creation_timestamp": "2020-07-02T15:53:31.691366100Z",
      "deletion_timestamp": null,
      "modification_timestamp": null,
      "initializers": null,
      "finalizers": [
      ],
      "tenant": "acmecorp",
      "creator_class": "examplesvc.ves.io",
      "creator_id": "",
      "creator_cookie": "",
      "trace_info": "7482f51100aa1aa0:7482f51100aa1aa0:0:1",
      "object_index": 0,
      "namespace": [
        {
          "kind": "namespace",
          "uid": "",
          "tenant": "acmecorp",
          "namespace": "",
          "name": "documentation"
        }
      ],
      "owner_view": null
    },
    "spec": {
      "gc_spec": {
        "policies": [
        ],
        "type": "NETWORK_SECURITY",
        "default_action": "DENY",
        "deny_info": null
      }
    }
  },
  "create_form": null,
  "replace_form": null,
  "resource_version": "559",
  "metadata": null,
  "system_metadata": null,
  "spec": null,
  "status": [
  ]
}