5 "name" : "Legacy Guard Policy"
7 "schemes" : [ "http", "https" ],
9 "/policy/api/v1/policytypes/onap.policies.controlloop.Guard/versions/1.0.0/policies/{policyId}/versions/latest" : {
11 "tags" : [ "Legacy Guard Policy" ],
12 "summary" : "Retrieve the latest version of a particular guard policy",
13 "description" : "Returns the latest version of the specified guard policy",
14 "operationId" : "getLatestVersionOfGuardPolicy",
15 "produces" : [ "application/json" ],
19 "description" : "ID of policy",
23 "name" : "X-ONAP-RequestID",
25 "description" : "RequestID for http transaction",
32 "description" : "successful operation; Latest version of specified guard policy will be returned.",
36 "description" : "Used to request or communicate a MINOR version back from the client to the server, and from the server back to the client"
40 "description" : "Used only to communicate a PATCH version in a response for troubleshooting purposes only, and will not be provided by the client on request"
44 "description" : "Used only to communicate an API's latest version"
46 "X-ONAP-RequestID" : {
49 "description" : "Used to track REST transactions for logging purpose"
54 "additionalProperties" : {
55 "$ref" : "#/definitions/LegacyGuardPolicyOutput"
60 "description" : "Authentication Error"
63 "description" : "Authorization Error"
66 "description" : "Resource Not Found"
69 "description" : "Internal Server Error"
75 "x-interface info" : {
76 "api-version" : "1.0.0",
77 "last-mod-release" : "Dublin"
81 "/policy/api/v1/policytypes/onap.policies.controlloop.Guard/versions/1.0.0/policies/{policyId}/versions/{policyVersion}" : {
83 "tags" : [ "Legacy Guard Policy" ],
84 "summary" : "Retrieve one version of a particular guard policy",
85 "description" : "Returns a particular version of a specified guard policy",
86 "operationId" : "getSpecificVersionOfGuardPolicy",
87 "produces" : [ "application/json" ],
91 "description" : "ID of policy",
95 "name" : "policyVersion",
97 "description" : "Version of policy",
101 "name" : "X-ONAP-RequestID",
103 "description" : "RequestID for http transaction",
110 "description" : "successful operation; Specified version of guard policy will be returned.",
114 "description" : "Used to request or communicate a MINOR version back from the client to the server, and from the server back to the client"
118 "description" : "Used only to communicate a PATCH version in a response for troubleshooting purposes only, and will not be provided by the client on request"
120 "X-LatestVersion" : {
122 "description" : "Used only to communicate an API's latest version"
124 "X-ONAP-RequestID" : {
127 "description" : "Used to track REST transactions for logging purpose"
132 "additionalProperties" : {
133 "$ref" : "#/definitions/LegacyGuardPolicyOutput"
138 "description" : "Authentication Error"
141 "description" : "Authorization Error"
144 "description" : "Resource Not Found"
147 "description" : "Internal Server Error"
153 "x-interface info" : {
154 "api-version" : "1.0.0",
155 "last-mod-release" : "Dublin"
159 "tags" : [ "Legacy Guard Policy" ],
160 "summary" : "Delete a particular version of a guard policy",
161 "description" : "Delete a particular version of a guard policy. It must follow one rule. Rule: the version that has been deployed in PDP group(s) cannot be deleted",
162 "operationId" : "deleteSpecificVersionOfGuardPolicy",
163 "consumes" : [ "application/json" ],
164 "produces" : [ "application/json" ],
168 "description" : "ID of policy",
172 "name" : "policyVersion",
174 "description" : "Version of policy",
178 "name" : "X-ONAP-RequestID",
180 "description" : "RequestID for http transaction",
187 "description" : "successful operation; Newly deleted guard policy will be returned.",
191 "description" : "Used to request or communicate a MINOR version back from the client to the server, and from the server back to the client"
195 "description" : "Used only to communicate a PATCH version in a response for troubleshooting purposes only, and will not be provided by the client on request"
197 "X-LatestVersion" : {
199 "description" : "Used only to communicate an API's latest version"
201 "X-ONAP-RequestID" : {
204 "description" : "Used to track REST transactions for logging purpose"
209 "additionalProperties" : {
210 "$ref" : "#/definitions/LegacyGuardPolicyOutput"
215 "description" : "Authentication Error"
218 "description" : "Authorization Error"
221 "description" : "Resource Not Found"
224 "description" : "Delete Conflict, Rule Violation"
227 "description" : "Internal Server Error"
233 "x-interface info" : {
234 "api-version" : "1.0.0",
235 "last-mod-release" : "Dublin"
239 "/policy/api/v1/policytypes/onap.policies.controlloop.Guard/versions/1.0.0/policies" : {
241 "tags" : [ "Legacy Guard Policy" ],
242 "summary" : "Create a new guard policy",
243 "description" : "Create a new guard policy. Client should provide entity body of the new guard policy",
244 "operationId" : "createGuardPolicy",
245 "consumes" : [ "application/json" ],
246 "produces" : [ "application/json" ],
248 "name" : "X-ONAP-RequestID",
250 "description" : "RequestID for http transaction",
257 "description" : "Entity body of policy",
259 "type" : "ToscaServiceTemplate",
261 "$ref" : "#/definitions/LegacyGuardPolicyInput"
266 "description" : "successful operation; Newly created guard policy will be returned.",
270 "description" : "Used to request or communicate a MINOR version back from the client to the server, and from the server back to the client"
274 "description" : "Used only to communicate a PATCH version in a response for troubleshooting purposes only, and will not be provided by the client on request"
276 "X-LatestVersion" : {
278 "description" : "Used only to communicate an API's latest version"
280 "X-ONAP-RequestID" : {
283 "description" : "Used to track REST transactions for logging purpose"
288 "additionalProperties" : {
289 "$ref" : "#/definitions/LegacyGuardPolicyOutput"
294 "description" : "Invalid Body"
297 "description" : "Authentication Error"
300 "description" : "Authorization Error"
303 "description" : "Internal Server Error"
309 "x-interface info" : {
310 "api-version" : "1.0.0",
311 "last-mod-release" : "Dublin"
316 "securityDefinitions" : {
323 "LegacyGuardPolicyContent" : {
353 "guardActiveStart" : {
361 "additionalProperties" : {
367 "LegacyGuardPolicyOutput" : {
378 "additionalProperties" : {
384 "additionalProperties" : {
385 "$ref" : "#/definitions/LegacyGuardPolicyContent"
390 "LegacyGuardPolicyInput" : {
400 "$ref" : "#/definitions/LegacyGuardPolicyContent"