@@ -63,26 +63,44 @@ Creates a new subscription. If a subscription is successfully created, or if it
63
63
}
64
64
----
65
65
66
+ [discrete]
67
+ === HTTP method
68
+
69
+ `DELETE api/ocloudNotifications/v1/subscriptions`
70
+
71
+ [discrete]
72
+ === Description
73
+
74
+ Deletes all subscriptions.
75
+
76
+ .Example API response
77
+ [source,json]
78
+ ----
79
+ {
80
+ "status": "deleted all subscriptions"
81
+ }
82
+ ----
83
+
66
84
[id="api-ocloud-notifications-v1-subscriptions-subscription_id_{context}"]
67
- == api/ocloudNotifications/v1/subscriptions/< subscription_id>
85
+ == api/ocloudNotifications/v1/subscriptions/{ subscription_id}
68
86
69
87
[discrete]
70
88
=== HTTP method
71
89
72
- `GET api/ocloudNotifications/v1/subscriptions/< subscription_id> `
90
+ `GET api/ocloudNotifications/v1/subscriptions/{ subscription_id} `
73
91
74
92
[discrete]
75
93
=== Description
76
94
77
- Returns details for the subscription with ID `< subscription_id>`
95
+ Returns details for the subscription with ID `subscription_id`.
78
96
79
- .Query parameters
97
+ .Global path parameters
80
98
[cols=2*, width="60%", options="header"]
81
99
|====
82
100
|Parameter
83
101
|Type
84
102
85
- |`< subscription_id> `
103
+ |`subscription_id`
86
104
|string
87
105
|====
88
106
@@ -97,6 +115,34 @@ Returns details for the subscription with ID `<subscription_id>`
97
115
}
98
116
----
99
117
118
+ [discrete]
119
+ === HTTP method
120
+
121
+ `DELETE api/ocloudNotifications/v1/subscriptions/{subscription_id}`
122
+
123
+ [discrete]
124
+ === Description
125
+
126
+ Deletes the subscription with ID `subscription_id`.
127
+
128
+ .Global path parameters
129
+ [cols=2*, width="60%", options="header"]
130
+ |====
131
+ |Parameter
132
+ |Type
133
+
134
+ |`subscription_id`
135
+ |string
136
+ |====
137
+
138
+ .Example API response
139
+ [source,json]
140
+ ----
141
+ {
142
+ "status": "OK"
143
+ }
144
+ ----
145
+
100
146
[id="api-ocloudnotifications-v1-health_{context}"]
101
147
== api/ocloudNotifications/v1/health
102
148
@@ -286,7 +332,7 @@ $ oc logs -f linuxptp-daemon-cvgr6 -n openshift-ptp -c cloud-event-proxy
286
332
----
287
333
288
334
[id="resource-address-current-state_{context}"]
289
- == api/ocloudNotifications/v1/< resource_address> /CurrentState
335
+ == api/ocloudNotifications/v1/{ resource_address} /CurrentState
290
336
291
337
[discrete]
292
338
=== HTTP method
@@ -306,13 +352,13 @@ Configure the `CurrentState` API endpoint to return the current state of the `os
306
352
* `ptp-clock-class-change` notifications describe the current state of the PTP clock class.
307
353
* `lock-state` notifications describe the current status of the PTP equipment lock state. Can be in `LOCKED`, `HOLDOVER` or `FREERUN` state.
308
354
309
- .Query parameters
355
+ .Global path parameters
310
356
[cols=2*, width="60%", options="header"]
311
357
|====
312
358
|Parameter
313
359
|Type
314
360
315
- |`< resource_address> `
361
+ |`resource_address`
316
362
|string
317
363
|====
318
364
0 commit comments