​
Select Service
ves-io-schema-secret_policy_rule-API-Get
Published April 5, 2023 | Last modified May 30, 2025
Examples of getting secret_policy_rule
Usecase:
Get secret-policy-rule-1
Request using vesctl:
vesctl configuration get secret_policy_rule secret-policy-rule-1 --namespace documentation
vesctl yaml response:
deletedReferredObjects: []
disabledReferredObjects: []
metadata:
annotations: {}
labels: {}
name: secret-policy-rule-1
namespace: documentation
referringObjects: []
resourceVersion: "2381"
spec:
action: ALLOW
clientNameMatcher:
exactValues: []
regexValues:
- akar\.gc(\d)*\.int\.ves\.io
status: []
systemMetadata:
creationTimestamp: "2025-05-30T01:21:22.329532Z"
creatorClass: examplesvc
creatorId: examplesvc
finalizers: []
labels: {}
tenant: acmecorp
uid: d9a4c29a-9711-4743-9d3a-7cfb74c5590b
Copied!
Request using curl:
curl -X 'GET' -H 'X-Volterra-Useragent: v1/pgm=_var_folders_q2_3kp8z3zs0x5_m7pk1bgb0_ph0000gp_T_go-build1497866850_b001_apidocs.test/host=MTY6VVHQPH/svc=S:examplesvc/site=mytestce01' 'https://acmecorp.console.ves.volterra.io/api/secret_management/namespaces/documentation/secret_policy_rules/secret-policy-rule-1?response_format=0'
Copied!
curl response:
HTTP/1.1 200 OK
Content-Length: 1018
Content-Type: application/json
Date: Fri, 30 May 2025 01:21:22 GMT
Vary: Accept-Encoding
{
"create_form": null,
"replace_form": null,
"resource_version": "2381",
"metadata": {
"name": "secret-policy-rule-1",
"namespace": "documentation",
"labels": {
},
"annotations": {
},
"description": "",
"disable": false
},
"system_metadata": {
"uid": "d9a4c29a-9711-4743-9d3a-7cfb74c5590b",
"creation_timestamp": "2025-05-30T01:21:22.329532Z",
"deletion_timestamp": null,
"modification_timestamp": null,
"initializers": null,
"finalizers": [
],
"tenant": "acmecorp",
"creator_class": "examplesvc",
"creator_id": "examplesvc",
"object_index": 0,
"owner_view": null,
"labels": {
}
},
"spec": {
"action": "ALLOW",
"client_name_matcher": {
"exact_values": [
],
"regex_values": [
"akar\\.gc(\\d)*\\.int\\.ves\\.io"
]
},
"label_matcher": null
},
"status": [
],
"referring_objects": [
],
"deleted_referred_objects": [
],
"disabled_referred_objects": [
]
}
Copied!