ves-io-schema-alert_policy-API-Get
On This Page:
Examples of getting alert_policy
Usecase:
Get alert_policy.
Request using vesctl:
vesctl configuration get alert_policy object-1 --namespace documentation
vesctl yaml response:
deletedReferredObjects: []
disabledReferredObjects: []
metadata:
annotations: {}
labels: {}
name: object-1
namespace: documentation
referringObjects: []
resourceVersion: "54"
spec:
receivers: []
routes: []
status: []
systemMetadata:
creationTimestamp: "2023-11-03T15:24:16.747094Z"
creatorClass: examplesvc
creatorId: examplesvc
finalizers: []
labels: {}
tenant: acmecorp
uid: 54a72893-4ee2-48c4-b33c-26f08de8798f
Request using curl:
curl -X 'GET' -H 'X-Volterra-Useragent: v1/pgm=_var_folders_2__8qnt6fwd5dvglr1xqq6l8b7w0000gp_T_go-build2604632300_b001_apidocs.test/host=C02FN35BMD6R/svc=S:examplesvc/site=mytestce01' 'https://acmecorp.console.ves.volterra.io/api/config/namespaces/documentation/alert_policys/object-1?response_format=0'
curl response:
HTTP/1.1 200 OK
Content-Length: 914
Content-Type: application/json
Date: Fri, 03 Nov 2023 15:24:16 GMT
Vary: Accept-Encoding
X-Volterra-Response-Fields-Deprecated: object
{
"object": null,
"create_form": null,
"replace_form": null,
"resource_version": "54",
"metadata": {
"name": "object-1",
"namespace": "documentation",
"labels": {
},
"annotations": {
},
"description": "",
"disable": false
},
"system_metadata": {
"uid": "54a72893-4ee2-48c4-b33c-26f08de8798f",
"creation_timestamp": "2023-11-03T15:24:16.747094Z",
"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": {
"receivers": [
],
"routes": [
],
"notification_parameters": null
},
"status": [
],
"referring_objects": [
],
"deleted_referred_objects": [
],
"disabled_referred_objects": [
]
}