X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=a1%2Fopenapi.yaml;h=2aa7a943eea23dff79a40917273c1bf43b1ae7d9;hb=445221bb8e531d77aad987b936b30d385521134f;hp=bc5ee126aef1bcc7cb2ad6a61f4c4d253e6cab55;hpb=a7672bf2165fe43e7dab1db8a41434fa6e610cc7;p=ric-plt%2Fa1.git diff --git a/a1/openapi.yaml b/a1/openapi.yaml index bc5ee12..2aa7a94 100644 --- a/a1/openapi.yaml +++ b/a1/openapi.yaml @@ -1,6 +1,6 @@ # ================================================================================== -# Copyright (c) 2019 Nokia -# Copyright (c) 2018-2019 AT&T Intellectual Property. +# Copyright (c) 2019-2020 Nokia +# Copyright (c) 2018-2020 AT&T Intellectual Property. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ # ================================================================================== openapi: 3.0.0 info: - version: 1.1.0 + version: 2.1.0 title: RIC A1 paths: '/a1-p/healthcheck': @@ -48,6 +48,8 @@ paths: items: "$ref": "#/components/schemas/policy_type_id" example: [20000, 20020] + 503: + description: "Potentially transient backend database error. Client should attempt to retry later." '/a1-p/policytypes/{policy_type_id}': parameters: @@ -72,6 +74,8 @@ paths: '404': description: > policy type not found + '503': + description: "Potentially transient backend database error. Client should attempt to retry later." delete: description: > Delete this policy type. Can only be performed if there are no instances of this type @@ -89,6 +93,8 @@ paths: '404': description: > policy type not found + '503': + description: "Potentially transient backend database error. Client should attempt to retry later." put: description: > Create a new policy type . @@ -137,6 +143,8 @@ paths: description: "policy type successfully created" '400': description: "illegal ID, or object already existed" + '503': + description: "Potentially transient backend database error. Client should attempt to retry later." '/a1-p/policytypes/{policy_type_id}/policies': parameters: @@ -160,6 +168,8 @@ paths: items: "$ref": "#/components/schemas/policy_instance_id" example: ["3d2157af-6a8f-4a7c-810f-38c2f824bf12", "06911bfc-c127-444a-8eb1-1bffad27cc3d"] + '503': + description: "Potentially transient backend database error. Client should attempt to retry later." '/a1-p/policytypes/{policy_type_id}/policies/{policy_instance_id}': @@ -195,6 +205,8 @@ paths: '404': description: > there is no policy instance with this policy_instance_id or there is no policy type with this policy_type_id + '503': + description: "Potentially transient backend database error. Client should attempt to retry later." delete: description: > @@ -209,8 +221,9 @@ paths: policy instance deletion initiated '404': description: > - there is no policy instance with this policy_instance_id - or there is no policy type with this policy_type_id + there is no policy instance with this policy_instance_id or there is no policy type with this policy_type_id + '503': + description: "Potentially transient backend database error. Client should attempt to retry later." put: description: > @@ -243,6 +256,8 @@ paths: '404': description: > There is no policy type with this policy_type_id + '503': + description: "Potentially transient backend database error. Client should attempt to retry later." '/a1-p/policytypes/{policy_type_id}/policies/{policy_instance_id}/status': parameters: @@ -291,6 +306,8 @@ paths: '404': description: > there is no policy instance with this policy_instance_id or there is no policy type with this policy_type_id + '503': + description: "Potentially transient backend database error. Client should attempt to retry later." components: schemas: @@ -329,68 +346,3 @@ components: represents a policy instance identifier. UUIDs are advisable but can be any string type: string example: "3d2157af-6a8f-4a7c-810f-38c2f824bf12" - - downstream_message_schema: - type: object - required: - - operation - - policy_type_id - - policy_instance_id - - payload - additionalProperties: false - properties: - operation: - description: the operation being performed - type: string - enum: - - CREATE - - DELETE - - UPDATE - - READ - policy_type_id: - "$ref": "#/components/schemas/policy_type_id" - policy_instance_id: - "$ref": "#/components/schemas/policy_instance_id" - payload: - description: payload for this operation - type: object - example: - operation: CREATE - policy_type_id: 12345678 - policy_instance_id: 3d2157af-6a8f-4a7c-810f-38c2f824bf12 - payload: - enforce: true - window_length: 10 - blocking_rate: 20 - trigger_threshold: 10 - - downstream_notification_schema: - type: object - required: - - policy_type_id - - policy_instance_id - - handler_id - - status - additionalProperties: false - properties: - policy_type_id: - "$ref": "#/components/schemas/policy_type_id" - policy_instance_id: - "$ref": "#/components/schemas/policy_instance_id" - handler_id: - description: > - id of the policy handler - type: string - status: - description: > - the status of this policy instance in this handler - type: string - enum: - - OK - - ERROR - - DELETED - example: - policy_type_id: 12345678 - policy_instance_id: 3d2157af-6a8f-4a7c-810f-38c2f824bf12 - handler_id: 1234-5678 - status: OK