X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=api%2Fxapp_rest_api.yaml;h=8f08dd97dbdbf33c3dc44ddcb239e1ce6f1d1974;hb=refs%2Fchanges%2F29%2F6729%2F2;hp=74db6b97949659240c092bdde8c69c579e7e74ad;hpb=3602bf801fef17e317cb35a4c710118ec80908b9;p=ric-plt%2Fxapp-frame.git diff --git a/api/xapp_rest_api.yaml b/api/xapp_rest_api.yaml old mode 100755 new mode 100644 index 74db6b9..8f08dd9 --- a/api/xapp_rest_api.yaml +++ b/api/xapp_rest_api.yaml @@ -1,7 +1,7 @@ -swagger: "2.0" +swagger: '2.0' info: description: This is the initial REST API for RIC subscription - version: 0.0.1 + version: 0.0.3 title: RIC subscription license: name: Apache 2.0 @@ -31,7 +31,7 @@ paths: get: summary: Returns list of subscriptions tags: - - "common" + - common operationId: getAllSubscriptions produces: - application/json @@ -44,7 +44,7 @@ paths: description: Internal error post: tags: - - "common" + - common operationId: Subscribe summary: Subscribe a list of X2AP event triggers to receive messages sent by RAN consumes: @@ -69,7 +69,7 @@ paths: '/subscriptions/{subscriptionId}': delete: tags: - - "common" + - common summary: Unsubscribe X2AP events from Subscription Manager operationId: Unsubscribe consumes: @@ -103,9 +103,9 @@ definitions: type: string description: The type of the content enum: - - json - - xml - - other + - json + - xml + - other XAppConfig: type: object required: @@ -121,13 +121,11 @@ definitions: type: array items: $ref: '#/definitions/XAppConfig' - ActionDefinition: - type: object - description: E2SM Octet string. ActionDefinition is an OPTIONAL IE - properties: - OctetString: - type: string + type: array + description: E2SM byte array. ActionDefinition is an OPTIONAL IE + items: + type: integer SubsequentAction: description: SubsequentAction is an OPTIONAL IE type: object @@ -186,63 +184,84 @@ definitions: items: $ref: '#/definitions/ActionToBeSetup' EventTriggerDefinition: - type: object - description: E2SM Octet string - properties: - OctetString: - type: string - SubscriptionDetails: + type: array + description: E2SM byte array + items: + type: integer + SubscriptionDetail: type: object required: - - EventTriggerList + - XappEventInstanceId + - EventTriggers - ActionToBeSetupList properties: - EventTriggerList: + XappEventInstanceId: + type: integer + minimum: 0 + maximum: 65535 + EventTriggers: $ref: '#/definitions/EventTriggerDefinition' ActionToBeSetupList: $ref: '#/definitions/ActionsToBeSetup' SubscriptionDetailsList: type: array items: - $ref: '#/definitions/SubscriptionDetails' + $ref: '#/definitions/SubscriptionDetail' SubscriptionParams: type: object required: - ClientEndpoint - Meid - - RequestorId - - InstanceId - RANFunctionID - SubscriptionDetails properties: + SubscriptionId: + type: string + description: Optional subscription ID (Submgr allocates if not given) ClientEndpoint: type: object description: xApp service address and port properties: - ServiceName: + Host: description: >- xApp service address name like 'service-ricxapp-xappname-http.ricxapp' type: string - Port: - description: xApp service address port + HTTPPort: + description: xApp HTTP service address port + type: integer + minimum: 0 + maximum: 65535 + RMRPort: + description: xApp RMR service address port type: integer minimum: 0 maximum: 65535 Meid: type: string - RequestorId: - type: integer - minimum: 0 - maximum: 65535 - InstanceId: - type: integer - minimum: 0 - maximum: 65535 RANFunctionID: type: integer minimum: 0 maximum: 4095 + E2SubscriptionDirectives: + type: object + properties: + E2TimeoutTimerValue: + description: How long time response is waited from E2 node + type: integer + default: 2 + minimum: 1 + maximum: 10 + E2RetryCount: + description: How many times E2 subscription request is retried + type: integer + default: 2 + minimum: 0 + maximum: 10 + RMRRoutingNeeded: + description: Subscription needs RMR route from E2Term to xApp + type: boolean + default: True SubscriptionDetails: $ref: '#/definitions/SubscriptionDetailsList' SubscriptionResponse: @@ -260,22 +279,46 @@ definitions: SubscriptionInstance: type: object required: - - RequestorId - - InstanceId + - XappEventInstanceId + - E2EventInstanceId - ErrorCause + - ErrorSource + - TimeoutType properties: - RequestorId: + XappEventInstanceId: type: integer minimum: 0 maximum: 65535 - InstanceId: + E2EventInstanceId: type: integer minimum: 0 maximum: 65535 + RejectCause: + description: Reason for REST subscription rejection. + type: string + default: None + enum: + - None + - REST-subscription-ongoing # xApp should retry after delay + - REST-subscription-delete-ongoing # xApp should retry after delay + - Invalid-REST-request-message + - REST-subscription-with-given-id-does-not-exist + - E2-interface-down + - Other ErrorCause: - description: Empty string when no error. + description: Descriptive error cause. Empty string when no error. + type: string + default: '' + ErrorSource: + description: Source of error cause. type: string - + default: None + enum: [None, SUBMGR, RTMGR, DBAAS, ASN1, E2Node] + TimeoutType: + description: Type timeout. xApp should retry if timeout occours. + type: string + default: None + enum: [None, E2-Timeout, RTMGR-Timeout, DBAAS-Timeout] SubscriptionData: type: object properties: @@ -283,12 +326,16 @@ definitions: type: integer Meid: type: string - Endpoint: + ClientEndpoint: type: array items: type: string + SubscriptionInstances: + type: array + items: + $ref: '#/definitions/SubscriptionInstance' SubscriptionList: type: array description: A list of subscriptions items: - $ref: '#/definitions/SubscriptionData' \ No newline at end of file + $ref: '#/definitions/SubscriptionData'