1 module A1-ADAPTER-API {
3 namespace "org:onap:ccsdk";
7 revision "2019-12-12" {
9 "Added standard output payload for all RPC's";
12 revision "2019-10-02" {
14 "A1 adapter for Frankfurt";
17 grouping a1-adapter-response {
21 leaf response-message {
25 "Response payload for A1 Adapter RPC's";
28 grouping a1-policy-instance-property {
31 "Properties as specified in the create_schema field of policy type in PUT payload";
38 "Individual property name";
45 "Value of the property";
50 grouping a1-policy-type-create-schema-property-statement {
52 leaf policy-statement {
57 "Individual policy statement name";
59 leaf policy-statement-value {
64 "Value of the policy statement";
69 ///Flattend interface using RPC
71 //Get a comma separated list of near-rt rics, e.g. domain-name1:port1,domainname2:port2
72 //Each item in the returned list will be regarded as one near-rt-ric-id.
74 // OpenDaylight Fluorine version of restconf cannot handle RPCs with no input
82 uses a1-adapter-response;
83 leaf-list near-rt-ric-id-list {
89 //Get health status for a Near-RT-RIC. true - health ok, false - health is not ok.
98 uses a1-adapter-response;
105 //Get a comma separated list of integer policy type ids
106 //Each item in the returned list will be regarded as one policy-type-id.
109 leaf near-rt-ric-id {
114 uses a1-adapter-response;
115 leaf-list policy-type-id-list {
121 //Create a policy type
122 rpc createPolicyType {
124 leaf near-rt-ric-id {
127 leaf policy-type-id {
146 "Individual property name";
148 list policy-statements {
149 key "policy-statement";
150 uses a1-policy-type-create-schema-property-statement;
155 uses a1-adapter-response;
168 leaf near-rt-ric-id {
171 leaf policy-type-id {
176 uses a1-adapter-response;
189 //Delete a policy type
190 rpc deletePolicyType {
192 leaf near-rt-ric-id {
195 leaf policy-type-id {
200 uses a1-adapter-response;
204 //Get a comma separeated list of string policy instance ids
205 //Each item in the returned list will be regarded as one policy-instance-id.
206 rpc getPolicyInstances {
208 leaf near-rt-ric-id {
211 leaf policy-type-id {
217 uses a1-adapter-response;
218 leaf-list policy-instance-id-list {
224 //Create a policy instance
225 rpc createPolicyInstance {
227 leaf near-rt-ric-id {
230 leaf policy-type-id {
233 leaf policy-instance-id {
236 leaf policy-instance {
241 uses a1-policy-instance-property;
245 uses a1-adapter-response;
249 ///Get a policy instance
250 rpc getPolicyInstance {
252 leaf near-rt-ric-id {
255 leaf policy-type-id {
258 leaf policy-instance-id {
263 uses a1-adapter-response;
264 leaf policy-instance {
270 //Delete a policy instance
271 rpc deletePolicyInstance {
273 leaf near-rt-ric-id {
276 leaf policy-type-id {
279 leaf policy-instance-id {
284 uses a1-adapter-response;
288 //Get the status for a policy instance
291 leaf near-rt-ric-id {
294 leaf policy-type-id {
297 leaf policy-instance-id {
302 uses a1-adapter-response;
309 //Policy feedback Notification to provide policy enforcement update
310 rpc notifyPolicyEnforcementUpdate {
312 leaf near-rt-ric-id {
315 leaf policy-type-id {
318 leaf policy-instance-id {
321 leaf policy_enforcement_status {
324 "Policy enforcement status - IN_EFFECT or NON_IN_EFFECT";
326 leaf policy_enforcement_reason {
329 "Indicates the reason why policy is no longer being enforced";
333 uses a1-adapter-response;