1 # ==================================================================================
2 # Copyright (c) 2019 Nokia
3 # Copyright (c) 2018-2019 AT&T Intellectual Property.
5 # Licensed under the Apache License, Version 2.0 (the "License");
6 # you may not use this file except in compliance with the License.
7 # You may obtain a copy of the License at
9 # http://www.apache.org/licenses/LICENSE-2.0
11 # Unless required by applicable law or agreed to in writing, software
12 # distributed under the License is distributed on an "AS IS" BASIS,
13 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 # See the License for the specific language governing permissions and
15 # limitations under the License.
16 # ==================================================================================
22 '/ric/policies/{policyname}':
26 description: the name of the policy to retrieve or replace
32 Replace the current operation of policyname with the new parameters (replaces the current policy with the new one specified here).
35 Until there are standard policy definitions that are defined OUTSIDE of the scope of xapps, this API will be *very underspecified*.
36 This is a known gap, do not despair.
37 The PUT body is specified, *currently* in the xapp manifest that implements this policy; the caller should refer to the message_receives_payload_schema field to make this request.
38 The return content is also specified as above (in the xapp manifest) in the message_sends_payload_schema field.
41 Eventually, we need concrete policy defintions that are decoupled from xapp, and then this API description will become more fully specified.
44 operationId: a1.controller.put_handler
55 The downstream component responsible for implementing this policy replied with a good response. Check the manifest for response details.
58 Bad PUT body for this policyname
61 there is no policy with this name
64 The xapp that implements this policy replied, but the reply was a "failure", OR there was no status indicating success or failure.
65 This returns an object containing the reason, and the return payload.
83 the downstream component responsible for handling this policy did not respond (in time)
86 description: Get the current state/value of policyname
89 operationId: a1.controller.get_handler
93 "future GET support has been pondered, but this is not currently implemented"U