3 title: Policy Framework Lifecycle API
4 description: The Policy Fraemwork API allows the lifecycle of policy types and policyes to be managed
7 url: https://lists.onap.org/g/onap-discuss
8 email: onap-discuss@lists.onap.org
11 url: http://www.apache.org/licenses/LICENSE-2.0
14 description: Policy Framework Documentation
15 url: https://docs.onap.org/projects/onap-policy-parent/en/latest
17 - url: //localhost:30440/
19 - name: "Tosca Node Template Design"
21 Tosca Node template Design API is publicly exposed for clients to Create/Read/Update/Delete
22 node templates which can be recognized and executable by incorporated policy engines. It is an
23 independent component running rest service that takes all node templates design API calls
24 from clients and then assign them to different API working functions.
26 /policy/api/v1/healthcheck:
30 summary: Perform a system healthcheck
31 description: Returns healthy status of the Policy API component
32 operationId: getHealthCheck
34 - name: X-ONAP-RequestID
36 description: RequestID for http transaction
42 description: Serialised instance of
43 [HealthCheckReport](https://github.com/onap/policy-common/blob/master/policy-endpoints/src/main/java/org/onap/policy/common/endpoints/report/HealthCheckReport.java)
61 $ref: '#/components/schemas/HealthCheckReport'
64 $ref: '#/components/schemas/HealthCheckReport'
66 description: Authentication Error
83 description: Authorization Error
100 description: Not Found
117 description: Internal Server Error
137 last-mod-release: Dublin
138 /policy/api/v1/nodetemplates:
141 - "Tosca Node Template Design"
142 summary: Retrieve all the available tosca node templates
143 description: Returns all the node templates from the service template
144 operationId: getAllNodeTemplates
146 - name: X-ONAP-RequestID
148 description: RequestID for http transaction
154 description: OK, returns an array of
155 [ToscaNodeTemplate](https://github.com/onap/policy-models/blob/master/models-tosca/src/main/java/org/onap/policy/models/tosca/authorative/concepts/ToscaNodeTemplate.java)
176 $ref: '#/components/schemas/ToscaNodeTemplate'
181 $ref: '#/components/schemas/ToscaNodeTemplate'
183 description: Authentication Error
200 description: Authorization Error
217 description: Resource Not Found
234 description: Internal Server Error
254 last-mod-release: Jakarta
257 - "Tosca Node Template Design"
258 summary: Updates one or more new node templates
259 description: Client should provide TOSCA body of the updated node templates in an instance of
260 [ToscaServiceTemplate](https://github.com/onap/policy-models/blob/master/models-tosca/src/main/java/org/onap/policy/models/tosca/authorative/concepts/ToscaServiceTemplate.java)
261 operationId: updateToscaNodeTemplates
263 - name: X-ONAP-RequestID
265 description: RequestID for http transaction
270 description: Entity body of tosca node templates
274 $ref: '#/components/schemas/ToscaServiceTemplate'
277 $ref: '#/components/schemas/ToscaServiceTemplate'
281 description: OK, returns the updated Node Templates in an instance of
282 [ToscaServiceTemplate](https://github.com/onap/policy-models/blob/master/models-tosca/src/main/java/org/onap/policy/models/tosca/authorative/concepts/ToscaServiceTemplate.java)
300 $ref: '#/components/schemas/ToscaServiceTemplate'
303 $ref: '#/components/schemas/ToscaServiceTemplate'
305 description: OK, returns the updated Node Templates in an instance of
306 [ToscaServiceTemplate](https://github.com/onap/policy-models/blob/master/models-tosca/src/main/java/org/onap/policy/models/tosca/authorative/concepts/ToscaServiceTemplate.java)
324 $ref: '#/components/schemas/ToscaServiceTemplate'
327 $ref: '#/components/schemas/ToscaServiceTemplate'
329 description: Invalid Body
346 description: Authentication Error
363 description: Authorization Error
380 description: Resource Not Found
397 description: Not Acceptable Payload
414 description: Internal Server Error
434 last-mod-release: Jakarta
435 x-codegen-request-body-name: body
438 - "Tosca Node Template Design"
439 summary: Create one or more new node templates
440 description: Client should provide TOSCA body of the new node templates
441 operationId: createToscaNodeTemplates
443 - name: X-ONAP-RequestID
445 description: RequestID for http transaction
450 description: Entity body of tosca node templates contained in an instance of
451 [ToscaServiceTemplate](https://github.com/onap/policy-models/blob/master/models-tosca/src/main/java/org/onap/policy/models/tosca/authorative/concepts/ToscaServiceTemplate.java)
455 $ref: '#/components/schemas/ToscaServiceTemplate'
458 $ref: '#/components/schemas/ToscaServiceTemplate'
462 description: OK, returns the created node templates in an instance of
463 [ToscaServiceTemplate](https://github.com/onap/policy-models/blob/master/models-tosca/src/main/java/org/onap/policy/models/tosca/authorative/concepts/ToscaServiceTemplate.java)
481 $ref: '#/components/schemas/ToscaServiceTemplate'
484 $ref: '#/components/schemas/ToscaServiceTemplate'
486 description: OK, returns the created node templates in an instance of
487 [ToscaServiceTemplate](https://github.com/onap/policy-models/blob/master/models-tosca/src/main/java/org/onap/policy/models/tosca/authorative/concepts/ToscaServiceTemplate.java)
505 $ref: '#/components/schemas/ToscaServiceTemplate'
508 $ref: '#/components/schemas/ToscaServiceTemplate'
510 description: Invalid Body
527 description: Authentication Error
544 description: Authorization Error
561 description: Resource Not Found
578 description: Not Acceptable Payload
595 description: Internal Server Error
615 last-mod-release: Jakarta
616 x-codegen-request-body-name: body
617 /policy/api/v1/nodetemplates/{name}/versions/{version}:
620 - "Tosca Node Template Design"
621 summary: Retrieve one version of a tosca node template
622 description: Returns a particular version of a node template
623 operationId: getSpecificVersionOfNodeTemplate
627 description: Name of the node template
633 description: Version of the node template
637 - name: X-ONAP-RequestID
639 description: RequestID for http transaction
645 description: OK, returns an array of
646 [ToscaNodeTemplate](https://github.com/onap/policy-models/blob/master/models-tosca/src/main/java/org/onap/policy/models/tosca/authorative/concepts/ToscaNodeTemplate.java)
666 $ref: '#/components/schemas/ToscaNodeTemplate'
671 $ref: '#/components/schemas/ToscaNodeTemplate'
673 description: Authentication Error
690 description: Authorization Error
707 description: Resource Not Found
724 description: Internal Server Error
744 last-mod-release: Jakarta
747 - "Tosca Node Template Design"
748 summary: Updates one or more new node templates
749 description: Client should provide TOSCA body of the updated node templates
750 operationId: deleteToscaNodeTemplates
754 description: Name of the node template
760 description: Version of the node template
764 - name: X-ONAP-RequestID
766 description: RequestID for http transaction
772 description: OK, returns the delete node template in an instance of
773 [ToscaServiceTemplate](https://github.com/onap/policy-models/blob/master/models-tosca/src/main/java/org/onap/policy/models/tosca/authorative/concepts/ToscaServiceTemplate.java)
791 $ref: '#/components/schemas/ToscaServiceTemplate'
794 $ref: '#/components/schemas/ToscaServiceTemplate'
796 description: No Content
813 description: Invalid Body
830 description: Authentication Error
847 description: Authorization Error
864 description: Resource Not Found
881 description: Not Acceptable Payload
898 description: Internal Server Error
918 last-mod-release: Jakarta
919 /policy/api/v1/policies:
923 summary: Retrieve all versions of available policies
924 description: Returns all version of available policies
925 operationId: getPolicies
929 description: Fetch mode for policies, BARE for bare policies (default), REFERENCED
930 for fully referenced policies
937 - name: X-ONAP-RequestID
939 description: RequestID for http transaction
945 description: OK, returns the found policies in an instance of
946 [ToscaServiceTemplate](https://github.com/onap/policy-models/blob/master/models-tosca/src/main/java/org/onap/policy/models/tosca/authorative/concepts/ToscaServiceTemplate.java)
964 $ref: '#/components/schemas/ToscaServiceTemplate'
967 $ref: '#/components/schemas/ToscaServiceTemplate'
969 description: Authentication Error
986 description: Authorization Error
1003 description: Resource Not Found
1020 description: Internal Server Error
1040 last-mod-release: Guilin
1044 summary: Create one or more new policies
1045 description: Client should provide TOSCA body of the new polic(ies)
1046 operationId: createPolicies
1048 - name: X-ONAP-RequestID
1050 description: RequestID for http transaction
1055 description: Entity body of the policies to be created contained in an instance of
1056 [ToscaServiceTemplate](https://github.com/onap/policy-models/blob/master/models-tosca/src/main/java/org/onap/policy/models/tosca/authorative/concepts/ToscaServiceTemplate.java)
1060 $ref: '#/components/schemas/ToscaServiceTemplate'
1063 $ref: '#/components/schemas/ToscaServiceTemplate'
1067 description: OK, the policies created in an instance of
1068 [ToscaServiceTemplate](https://github.com/onap/policy-models/blob/master/models-tosca/src/main/java/org/onap/policy/models/tosca/authorative/concepts/ToscaServiceTemplate.java)
1086 $ref: '#/components/schemas/ToscaServiceTemplate'
1089 $ref: '#/components/schemas/ToscaServiceTemplate'
1091 description: OK, the policies created in an instance of
1092 [ToscaServiceTemplate](https://github.com/onap/policy-models/blob/master/models-tosca/src/main/java/org/onap/policy/models/tosca/authorative/concepts/ToscaServiceTemplate.java)
1110 $ref: '#/components/schemas/ToscaServiceTemplate'
1113 $ref: '#/components/schemas/ToscaServiceTemplate'
1115 description: Invalid Body
1132 description: Authentication Error
1149 description: Authorization Error
1166 description: Resource Not Found
1183 description: Not Acceptable Payload
1200 description: Internal Server Error
1220 last-mod-release: El Alto
1221 x-codegen-request-body-name: body
1222 /policy/api/v1/policies/{policyId}/versions/{policyVersion}:
1226 summary: Retrieve specific version of a specified policy
1227 description: Returns a particular version of specified policy
1228 operationId: getSpecificPolicy
1232 description: Fetch mode for policies, BARE for bare policies (default), REFERENCED
1233 for fully referenced policies
1242 description: Name of policy
1246 - name: policyVersion
1248 description: Version of policy
1252 - name: X-ONAP-RequestID
1254 description: RequestID for http transaction
1260 description: OK, returns the found policies in an instance of
1261 [ToscaServiceTemplate](https://github.com/onap/policy-models/blob/master/models-tosca/src/main/java/org/onap/policy/models/tosca/authorative/concepts/ToscaServiceTemplate.java)
1279 $ref: '#/components/schemas/ToscaServiceTemplate'
1282 $ref: '#/components/schemas/ToscaServiceTemplate'
1284 description: Authentication Error
1301 description: Authorization Error
1318 description: Resource Not Found
1335 description: Internal Server Error
1355 last-mod-release: Guilin
1359 summary: Delete a particular version of a policy
1360 description: 'Rule: the version that has been deployed in PDP group(s) cannot
1362 operationId: deleteSpecificPolicy
1366 description: ID of policy
1370 - name: policyVersion
1372 description: Version of policy
1376 - name: X-ONAP-RequestID
1378 description: RequestID for http transaction
1384 description: OK, returns the deleted policy in an instance of
1385 [ToscaServiceTemplate](https://github.com/onap/policy-models/blob/master/models-tosca/src/main/java/org/onap/policy/models/tosca/authorative/concepts/ToscaServiceTemplate.java)
1403 $ref: '#/components/schemas/ToscaServiceTemplate'
1406 $ref: '#/components/schemas/ToscaServiceTemplate'
1408 description: No Content
1425 description: Authentication Error
1442 description: Authorization Error
1459 description: Resource Not Found
1476 description: Delete Conflict, Rule Violation
1493 description: Internal Server Error
1513 last-mod-release: Guilin
1514 /policy/api/v1/policytypes:
1518 summary: Retrieve existing policy types
1519 description: Returns a list of existing policy types stored in Policy Framework
1520 operationId: getAllPolicyTypes
1522 - name: X-ONAP-RequestID
1524 description: RequestID for http transaction
1530 description: OK, the found policy types in an instance of
1531 [ToscaServiceTemplate](https://github.com/onap/policy-models/blob/master/models-tosca/src/main/java/org/onap/policy/models/tosca/authorative/concepts/ToscaServiceTemplate.java)
1549 $ref: '#/components/schemas/ToscaServiceTemplate'
1552 $ref: '#/components/schemas/ToscaServiceTemplate'
1554 description: Authentication Error
1571 description: Authorization Error
1588 description: Not Found
1605 description: Internal Server Error
1625 last-mod-release: Dublin
1629 summary: Create a new policy type
1630 description: Client should provide TOSCA body of the new policy type
1631 operationId: createPolicyType
1633 - name: X-ONAP-RequestID
1635 description: RequestID for http transaction
1640 description: Entity body of policy types to be created in an instance of
1641 [ToscaServiceTemplate](https://github.com/onap/policy-models/blob/master/models-tosca/src/main/java/org/onap/policy/models/tosca/authorative/concepts/ToscaServiceTemplate.java)
1645 $ref: '#/components/schemas/ToscaServiceTemplate'
1648 $ref: '#/components/schemas/ToscaServiceTemplate'
1652 description: OK, the created policy types in an instance of
1653 [ToscaServiceTemplate](https://github.com/onap/policy-models/blob/master/models-tosca/src/main/java/org/onap/policy/models/tosca/authorative/concepts/ToscaServiceTemplate.java)
1671 $ref: '#/components/schemas/ToscaServiceTemplate'
1674 $ref: '#/components/schemas/ToscaServiceTemplate'
1676 description: OK, the created policy types in an instance of
1677 [ToscaServiceTemplate](https://github.com/onap/policy-models/blob/master/models-tosca/src/main/java/org/onap/policy/models/tosca/authorative/concepts/ToscaServiceTemplate.java)
1695 $ref: '#/components/schemas/ToscaServiceTemplate'
1698 $ref: '#/components/schemas/ToscaServiceTemplate'
1700 description: Invalid Body
1717 description: Authentication Error
1734 description: Authorization Error
1751 description: Not Found
1768 description: Not Acceptable Payload
1785 description: Internal Server Error
1805 last-mod-release: Dublin
1806 x-codegen-request-body-name: body
1807 /policy/api/v1/policytypes/{policyTypeId}:
1811 summary: Retrieve all available versions of a policy type
1812 description: Returns a list of all available versions for the specified policy
1814 operationId: getAllVersionsOfPolicyType
1816 - name: policyTypeId
1818 description: ID of policy type
1822 - name: X-ONAP-RequestID
1824 description: RequestID for http transaction
1830 description: OK, the found policy types in an instance of
1831 [ToscaServiceTemplate](https://github.com/onap/policy-models/blob/master/models-tosca/src/main/java/org/onap/policy/models/tosca/authorative/concepts/ToscaServiceTemplate.java)
1849 $ref: '#/components/schemas/ToscaServiceTemplate'
1852 $ref: '#/components/schemas/ToscaServiceTemplate'
1854 description: Authentication Error
1871 description: Authorization Error
1888 description: Resource Not Found
1905 description: Internal Server Error
1925 last-mod-release: Dublin
1926 /policy/api/v1/policytypes/{policyTypeId}/versions/latest:
1930 summary: Retrieve latest version of a policy type
1931 description: Returns latest version for the specified policy type
1932 operationId: getLatestVersionOfPolicyType
1934 - name: policyTypeId
1936 description: ID of policy type
1940 - name: X-ONAP-RequestID
1942 description: RequestID for http transaction
1948 description: OK, the found policy types in an instance of
1949 [ToscaServiceTemplate](https://github.com/onap/policy-models/blob/master/models-tosca/src/main/java/org/onap/policy/models/tosca/authorative/concepts/ToscaServiceTemplate.java)
1967 $ref: '#/components/schemas/ToscaServiceTemplate'
1970 $ref: '#/components/schemas/ToscaServiceTemplate'
1972 description: Authentication Error
1989 description: Authorization Error
2006 description: Resource Not Found
2023 description: Internal Server Error
2043 last-mod-release: Dublin
2044 /policy/api/v1/policytypes/{policyTypeId}/versions/{policyTypeVersion}/policies:
2048 summary: Retrieve all versions of a policy created for a particular policy type
2050 description: Returns a list of all versions of specified policy created for
2051 the specified policy type version
2052 operationId: getAllPolicies
2056 description: Fetch mode for policies, BARE for bare policies (default), REFERENCED
2057 for fully referenced policies
2064 - name: policyTypeId
2066 description: ID of policy type
2070 - name: policyTypeVersion
2072 description: Version of policy type
2076 - name: X-ONAP-RequestID
2078 description: RequestID for http transaction
2084 description: OK, the found policies in an instance of
2085 [ToscaServiceTemplate](https://github.com/onap/policy-models/blob/master/models-tosca/src/main/java/org/onap/policy/models/tosca/authorative/concepts/ToscaServiceTemplate.java)
2103 $ref: '#/components/schemas/ToscaServiceTemplate'
2106 $ref: '#/components/schemas/ToscaServiceTemplate'
2108 description: Authentication Error
2125 description: Authorization Error
2142 description: Resource Not Found
2159 description: Internal Server Error
2179 last-mod-release: Dublin
2183 summary: Create a new policy for a policy type version
2184 description: Client should provide TOSCA body of the new policy
2185 operationId: createPolicy
2187 - name: policyTypeId
2189 description: ID of policy type
2193 - name: policyTypeVersion
2195 description: Version of policy type
2199 - name: X-ONAP-RequestID
2201 description: RequestID for http transaction
2206 description: Entity body of policies to create in an instance of
2207 [ToscaServiceTemplate](https://github.com/onap/policy-models/blob/master/models-tosca/src/main/java/org/onap/policy/models/tosca/authorative/concepts/ToscaServiceTemplate.java)
2211 $ref: '#/components/schemas/ToscaServiceTemplate'
2214 $ref: '#/components/schemas/ToscaServiceTemplate'
2218 description: OK, the created policies in an instance of
2219 [ToscaServiceTemplate](https://github.com/onap/policy-models/blob/master/models-tosca/src/main/java/org/onap/policy/models/tosca/authorative/concepts/ToscaServiceTemplate.java)
2237 $ref: '#/components/schemas/ToscaServiceTemplate'
2240 $ref: '#/components/schemas/ToscaServiceTemplate'
2242 description: OK, the created policies in an instance of
2243 [ToscaServiceTemplate](https://github.com/onap/policy-models/blob/master/models-tosca/src/main/java/org/onap/policy/models/tosca/authorative/concepts/ToscaServiceTemplate.java)
2261 $ref: '#/components/schemas/ToscaServiceTemplate'
2264 $ref: '#/components/schemas/ToscaServiceTemplate'
2266 description: Invalid Body
2283 description: Authentication Error
2300 description: Authorization Error
2317 description: Resource Not Found
2334 description: Not Acceptable Payload
2351 description: Internal Server Error
2371 last-mod-release: Dublin
2372 x-codegen-request-body-name: body
2373 /policy/api/v1/policytypes/{policyTypeId}/versions/{policyTypeVersion}/policies/{policyId}:
2377 summary: Retrieve all version details of a policy created for a particular policy
2379 description: Returns a list of all version details of the specified policy
2380 operationId: getAllVersionsOfPolicy
2384 description: Fetch mode for policies, BARE for bare policies (default), REFERENCED
2385 for fully referenced policies
2394 description: ID of policy
2398 - name: policyTypeId
2400 description: ID of policy type
2404 - name: policyTypeVersion
2406 description: Version of policy type
2410 - name: X-ONAP-RequestID
2412 description: RequestID for http transaction
2418 description: OK, the found policies in an instance of
2419 [ToscaServiceTemplate](https://github.com/onap/policy-models/blob/master/models-tosca/src/main/java/org/onap/policy/models/tosca/authorative/concepts/ToscaServiceTemplate.java)
2437 $ref: '#/components/schemas/ToscaServiceTemplate'
2440 $ref: '#/components/schemas/ToscaServiceTemplate'
2442 description: Authentication Error
2459 description: Authorization Error
2476 description: Resource Not Found
2493 description: Internal Server Error
2513 last-mod-release: Dublin
2514 /policy/api/v1/policytypes/{policyTypeId}/versions/{policyTypeVersion}/policies/{policyId}/versions/latest:
2518 summary: Retrieve the latest version of a particular policy
2519 description: Returns the latest version of specified policy
2520 operationId: getLatestVersionOfPolicy
2524 description: Fetch mode for policies, TERSE for bare policies (default), REFERENCED
2525 for fully referenced policies
2534 description: ID of policy
2538 - name: policyTypeId
2540 description: ID of policy type
2544 - name: policyTypeVersion
2546 description: Version of policy type
2550 - name: X-ONAP-RequestID
2552 description: RequestID for http transaction
2558 description: OK, the found policies in an instance of
2559 [ToscaServiceTemplate](https://github.com/onap/policy-models/blob/master/models-tosca/src/main/java/org/onap/policy/models/tosca/authorative/concepts/ToscaServiceTemplate.java)
2577 $ref: '#/components/schemas/ToscaServiceTemplate'
2580 $ref: '#/components/schemas/ToscaServiceTemplate'
2582 description: Authentication Error
2599 description: Authorization Error
2616 description: Resource Not Found
2633 description: Internal Server Error
2653 last-mod-release: Dublin
2654 /policy/api/v1/policytypes/{policyTypeId}/versions/{policyTypeVersion}/policies/{policyId}/versions/{policyVersion}:
2658 summary: Retrieve one version of a policy created for a particular policy type
2660 description: Returns a particular version of specified policy created for the
2661 specified policy type version
2662 operationId: getSpecificVersionOfPolicy
2666 description: Fetch mode for policies, BARE for bare policies (default), REFERENCED
2667 for fully referenced policies
2676 description: ID of policy
2680 - name: policyTypeId
2682 description: ID of policy type
2686 - name: policyTypeVersion
2688 description: Version of policy type
2692 - name: policyVersion
2694 description: Version of policy
2698 - name: X-ONAP-RequestID
2700 description: RequestID for http transaction
2706 description: OK, the found policies in an instance of
2707 [ToscaServiceTemplate](https://github.com/onap/policy-models/blob/master/models-tosca/src/main/java/org/onap/policy/models/tosca/authorative/concepts/ToscaServiceTemplate.java)
2725 $ref: '#/components/schemas/ToscaServiceTemplate'
2728 $ref: '#/components/schemas/ToscaServiceTemplate'
2730 description: Authentication Error
2747 description: Authorization Error
2764 description: Resource Not Found
2781 description: Internal Server Error
2801 last-mod-release: Dublin
2805 summary: Delete a particular version of a policy
2806 description: 'Rule: the version that has been deployed in PDP group(s) cannot
2808 operationId: deleteSpecificVersionOfPolicy
2812 description: ID of policy
2816 - name: policyTypeId
2818 description: PolicyType ID
2822 - name: policyTypeVersion
2824 description: Version of policy type
2828 - name: policyVersion
2830 description: Version of policy
2834 - name: X-ONAP-RequestID
2836 description: RequestID for http transaction
2842 description: OK, the deleted policy in an instance of
2843 [ToscaServiceTemplate](https://github.com/onap/policy-models/blob/master/models-tosca/src/main/java/org/onap/policy/models/tosca/authorative/concepts/ToscaServiceTemplate.java)
2861 $ref: '#/components/schemas/ToscaServiceTemplate'
2864 $ref: '#/components/schemas/ToscaServiceTemplate'
2866 description: No Content
2883 description: Authentication Error
2900 description: Authorization Error
2917 description: Resource Not Found
2934 description: Delete Conflict, Rule Violation
2951 description: Internal Server Error
2971 last-mod-release: Dublin
2972 /policy/api/v1/policytypes/{policyTypeId}/versions/{versionId}:
2976 summary: Retrieve one particular version of a policy type
2977 description: Returns a particular version for the specified policy type
2978 operationId: getSpecificVersionOfPolicyType
2980 - name: policyTypeId
2982 description: ID of policy type
2988 description: Version of policy type
2992 - name: X-ONAP-RequestID
2994 description: RequestID for http transaction
3000 description: OK, the found policy types in an instance of
3001 [ToscaServiceTemplate](https://github.com/onap/policy-models/blob/master/models-tosca/src/main/java/org/onap/policy/models/tosca/authorative/concepts/ToscaServiceTemplate.java)
3019 $ref: '#/components/schemas/ToscaServiceTemplate'
3022 $ref: '#/components/schemas/ToscaServiceTemplate'
3024 description: Authentication Error
3041 description: Authorization Error
3058 description: Resource Not Found
3075 description: Internal Server Error
3095 last-mod-release: Dublin
3099 summary: Delete one version of a policy type
3100 description: 'Rule 1: pre-defined policy types cannot be deleted;Rule 2: policy
3101 types that are in use (parameterized by a TOSCA policy) cannot be deleted.The
3102 parameterizing TOSCA policies must be deleted first;'
3103 operationId: deleteSpecificVersionOfPolicyType
3105 - name: policyTypeId
3107 description: ID of policy type
3113 description: Version of policy type
3117 - name: X-ONAP-RequestID
3119 description: RequestID for http transaction
3125 description: OK, the deleted policy type in an instance of
3126 [ToscaServiceTemplate](https://github.com/onap/policy-models/blob/master/models-tosca/src/main/java/org/onap/policy/models/tosca/authorative/concepts/ToscaServiceTemplate.java)
3144 $ref: '#/components/schemas/ToscaServiceTemplate'
3147 $ref: '#/components/schemas/ToscaServiceTemplate'
3149 description: No Content
3166 description: Authentication Error
3183 description: Authorization Error
3200 description: Resource Not Found
3217 description: Delete Conflict, Rule Violation
3234 description: Internal Server Error
3254 last-mod-release: Dublin
3255 /policy/api/v1/statistics:
3259 summary: Retrieve current statistics
3260 description: Returns current statistics including the counters of API invocation
3261 operationId: getStatistics
3263 - name: X-ONAP-RequestID
3265 description: RequestID for http transaction
3271 description: OK, the statistics report in an instance of
3272 [StatisticsReport](https://github.com/onap/policy-api/blob/master/main/src/main/java/org/onap/policy/api/main/rest/provider/statistics/StatisticsReport.java)
3290 $ref: '#/components/schemas/StatisticsReport'
3293 $ref: '#/components/schemas/StatisticsReport'
3295 description: Authentication Error
3312 description: Authorization Error
3329 description: Not Found
3346 description: Internal Server Error
3366 last-mod-release: Dublin
3373 ToscaServiceTemplate:
3374 title: ToscaServiceTemplate
3377 title: ToscaNodeTemplate
3380 title: HealthCheckReport
3383 title: StatisticsReport