ves-io-schema-kms_policy-API-Get
On This Page:
Examples of getting kms_policy
Usecase:
Get kms-policy-1
Request using vesctl:
vesctl configuration get kms_policy kms-policy-1 --namespace documentation
vesctl yaml response:
metadata:
annotations: {}
labels: {}
name: kms-policy-1
namespace: documentation
resourceVersion: "435"
spec:
rules:
- kind: kms_policy_rule
name: kms-policy-rule-1
namespace: documentation
tenant: acmecorp
status: []
systemMetadata:
creationTimestamp: "2021-03-31T08:29:07.280666400Z"
creatorClass: examplesvc
creatorId: examplesvc
finalizers: []
tenant: acmecorp
uid: 70c3ec0c-c2e0-4287-b36c-afed8549f206
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/kms/namespaces/documentation/kms_policys/kms-policy-1?response_format=0'
curl response:
HTTP/1.1 200 OK
Content-Length: 931
Content-Type: application/json
Date: Wed, 31 Mar 2021 08:29:07 GMT
Vary: Accept-Encoding
{
"object": null,
"create_form": null,
"replace_form": null,
"resource_version": "435",
"metadata": {
"name": "kms-policy-1",
"namespace": "documentation",
"labels": {
},
"annotations": {
},
"description": "",
"disable": false
},
"system_metadata": {
"uid": "70c3ec0c-c2e0-4287-b36c-afed8549f206",
"creation_timestamp": "2021-03-31T08:29:07.280666400Z",
"deletion_timestamp": null,
"modification_timestamp": null,
"initializers": null,
"finalizers": [
],
"tenant": "acmecorp",
"creator_class": "examplesvc",
"creator_id": "examplesvc",
"object_index": 0,
"owner_view": null
},
"spec": {
"algo": "FIRST_MATCH",
"rules": [
{
"kind": "kms_policy_rule",
"uid": "",
"tenant": "acmecorp",
"namespace": "documentation",
"name": "kms-policy-rule-1"
}
]
},
"status": [
]
}