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
resourceVersion: "779"
spec:
  policies: []
status: []
systemMetadata:
  creationTimestamp: "2021-03-31T08:29:58.053682700Z"
  creatorClass: examplesvc
  creatorId: examplesvc
  finalizers: []
  tenant: acmecorp
  uid: 0d45ec67-e0fb-47d0-9ef1-634347ab6fe8

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/service_policy_sets/service-policy-set-1?response_format=0'

curl response:

HTTP/1.1 200 OK
Content-Length: 869
Content-Type: application/json
Date: Wed, 31 Mar 2021 08:29:58 GMT
Vary: Accept-Encoding

{
  "object": null,
  "create_form": null,
  "replace_form": null,
  "resource_version": "779",
  "metadata": {
    "name": "service-policy-set-1",
    "namespace": "documentation",
    "labels": {
    },
    "annotations": {
    },
    "description": "",
    "disable": false
  },
  "system_metadata": {
    "uid": "0d45ec67-e0fb-47d0-9ef1-634347ab6fe8",
    "creation_timestamp": "2021-03-31T08:29:58.053682700Z",
    "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": [
    ],
    "type": "NETWORK_SECURITY",
    "default_action": "DENY",
    "deny_info": null,
    "scope": "POLICY_SET_SCOPE_NAMESPACE"
  },
  "status": [
  ]
}