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:

metadata:
  annotations: {}
  labels: {}
  name: service-policy-set-1
  namespace: documentation
referringObjects: []
resourceVersion: "832"
spec:
  policies:
  - kind: service_policy
    name: service-policy-1
  - kind: service_policy
    name: service-policy-2
status: []
systemMetadata:
  creationTimestamp: "2021-08-25T09:03:57.021551070Z"
  creatorClass: examplesvc
  creatorId: examplesvc
  finalizers: []
  tenant: acmecorp
  uid: 273b7f7c-2bca-458a-b411-58aebe33d37a

Request using curl:

curl -X 'GET' -H 'X-Volterra-Useragent: v1/pgm=_tmp_go-build970361017_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: 1155
Content-Type: application/json
Date: Wed, 25 Aug 2021 09:03:57 GMT
Vary: Accept-Encoding

{
  "object": null,
  "resource_version": "832",
  "metadata": {
    "name": "service-policy-set-1",
    "namespace": "documentation",
    "labels": {
    },
    "annotations": {
    },
    "description": "",
    "disable": false
  },
  "system_metadata": {
    "uid": "273b7f7c-2bca-458a-b411-58aebe33d37a",
    "creation_timestamp": "2021-08-25T09:03:57.021551070Z",
    "deletion_timestamp": null,
    "modification_timestamp": null,
    "initializers": null,
    "finalizers": [
    ],
    "tenant": "acmecorp",
    "creator_class": "examplesvc",
    "creator_id": "examplesvc",
    "object_index": 0,
    "owner_view": null
  },
  "spec": {
    "policies": [
      {
        "kind": "service_policy",
        "uid": "",
        "tenant": "",
        "namespace": "",
        "name": "service-policy-1"
      },
      {
        "kind": "service_policy",
        "uid": "",
        "tenant": "",
        "namespace": "",
        "name": "service-policy-2"
      }
    ],
    "type": "NETWORK_SECURITY",
    "default_action": "DENY",
    "deny_info": null,
    "scope": "POLICY_SET_SCOPE_NAMESPACE"
  },
  "status": [
  ],
  "referring_objects": [
  ]
}