VNFIndicatorNotification.yaml 5.54 KB
Newer Older
1
openapi: 3.0.2
Gergely Csatari's avatar
Gergely Csatari committed
2
3

info:
Francesca Moscatelli's avatar
Francesca Moscatelli committed
4
  title: SOL003 - VNF Indicator Notification interface
5
  description: |
Francesca Moscatelli's avatar
Francesca Moscatelli committed
6
    SOL003 - VNF Indicator Notification interface
7

8
    IMPORTANT: Please note that this file might be not aligned to the current
9
10
11
    version of the ETSI Group Specification it refers to. In case of
    discrepancies the published ETSI Group Specification takes precedence.

12
    Please report bugs to https://forge.etsi.org/rep/nfv/SOL002-SOL003/issues
13

14
15
  contact:
    name: NFV-SOL WG
Gergely Csatari's avatar
Gergely Csatari committed
16
  license:
17
    name: ETSI Forge copyright notice
Gergely Csatari's avatar
Gergely Csatari committed
18
    url: https://forge.etsi.org/etsi-forge-copyright-notice.txt
19
  version: "1.3.1-impl:etsi.org:ETSI_NFV_OpenAPI:1"
20
21

externalDocs:
22
23
  description: ETSI GS NFV-SOL 003 V3.6.1
  url: https://www.etsi.org/deliver/etsi_gs/NFV-SOL/001_099/003/03.06.01_60/gs_NFV-SOL003v030601p.pdf
Gergely Csatari's avatar
Gergely Csatari committed
24

25
26
27
servers:
  - url: http://127.0.0.1/callback/v1
  - url: https://127.0.0.1/callback/v1
Gergely Csatari's avatar
Gergely Csatari committed
28
29

paths:
30
31
32
  ###############################################################################
  # Notification endpoint VnfIndicatorValueChangeNotification                   #
  ###############################################################################
33
  /URI_is_provided_by_the_client_when_creating_the_subscription-VnfIndicatorValueChangeNotification:
Gergely Csatari's avatar
Gergely Csatari committed
34
35
    #SOL003 location: 8.4.7
    post:
36
      description: |
37
38
        The POST method delivers a notification from the API producer to an API consumer. The API consumer shall
        have previously created an "Individual subscription" resource with a matching filter. See clause 8.4.7.3.1.
Gergely Csatari's avatar
Gergely Csatari committed
39
      parameters:
40
41
        - $ref: ../../components/SOL003_params.yaml#/components/parameters/Authorization
        - $ref: ../../components/SOL003_params.yaml#/components/parameters/Version
42
43
      requestBody:
        $ref: '#/components/requestBodies/AlarmListRebuiltNotification'
Gergely Csatari's avatar
Gergely Csatari committed
44
45
      responses:
        204:
46
          $ref: '#/components/responses/VNFINDNotification.Post.204'
Gergely Csatari's avatar
Gergely Csatari committed
47
        400:
48
          $ref: ../../responses/SOL002SOL003_resp.yaml#/components/responses/400
Gergely Csatari's avatar
Gergely Csatari committed
49
        401:
50
          $ref: ../../responses/SOL002SOL003_resp.yaml#/components/responses/401
Gergely Csatari's avatar
Gergely Csatari committed
51
        403:
52
          $ref: ../../responses/SOL002SOL003_resp.yaml#/components/responses/403
Gergely Csatari's avatar
Gergely Csatari committed
53
        405:
54
          $ref: ../../responses/SOL002SOL003_resp.yaml#/components/responses/405
Gergely Csatari's avatar
Gergely Csatari committed
55
        406:
56
          $ref: ../../responses/SOL002SOL003_resp.yaml#/components/responses/406
Gergely Csatari's avatar
Gergely Csatari committed
57
        500:
58
          $ref: ../../responses/SOL002SOL003_resp.yaml#/components/responses/500
Gergely Csatari's avatar
Gergely Csatari committed
59
        503:
60
          $ref: ../../responses/SOL002SOL003_resp.yaml#/components/responses/503
61

Gergely Csatari's avatar
Gergely Csatari committed
62
    get:
63
      description: |
64
65
        The GET method allows the API producer to test the notification endpoint that is provided by the API consumer,
        e.g. during subscription. See clause 8.4.7.3.2.
Gergely Csatari's avatar
Gergely Csatari committed
66
      parameters:
67
68
        - $ref: ../../components/SOL003_params.yaml#/components/parameters/Authorization
        - $ref: ../../components/SOL003_params.yaml#/components/parameters/Version
Gergely Csatari's avatar
Gergely Csatari committed
69
70
      responses:
        204:
71
          $ref: '#/components/responses/VNFINDNotification.Get.204'
Gergely Csatari's avatar
Gergely Csatari committed
72
        400:
73
          $ref: ../../responses/SOL002SOL003_resp.yaml#/components/responses/400
Gergely Csatari's avatar
Gergely Csatari committed
74
        401:
75
          $ref: ../../responses/SOL002SOL003_resp.yaml#/components/responses/401
Gergely Csatari's avatar
Gergely Csatari committed
76
        403:
77
          $ref: ../../responses/SOL002SOL003_resp.yaml#/components/responses/403
Gergely Csatari's avatar
Gergely Csatari committed
78
        405:
79
          $ref: ../../responses/SOL002SOL003_resp.yaml#/components/responses/405
Gergely Csatari's avatar
Gergely Csatari committed
80
        406:
81
          $ref: ../../responses/SOL002SOL003_resp.yaml#/components/responses/406
Gergely Csatari's avatar
Gergely Csatari committed
82
        500:
83
          $ref: ../../responses/SOL002SOL003_resp.yaml#/components/responses/500
Gergely Csatari's avatar
Gergely Csatari committed
84
        503:
85
86
87
88
89
90
91
92
93
94
          $ref: ../../responses/SOL002SOL003_resp.yaml#/components/responses/503

components:

  requestBodies:
    AlarmListRebuiltNotification: 
      description: Information that the alarm list has been rebuilt by the VNFM.
      content:
        application/json:
          schema:
95
96
97
            oneOf:
              - $ref: ../../definitions/SOL002SOL003VNFIndicator_def.yaml#/definitions/VnfIndicatorValueChangeNotification
              - $ref: ../../definitions/SOL002SOL003VNFIndicator_def.yaml#/definitions/SupportedIndicatorsChangeNotification
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
      required: true
  
  responses:
    VNFINDNotification.Post.204:
      description: |
        204 NO CONTENT

        Shall be returned when the notification has been delivered successfully.
        The response body shall be empty.
      headers:
        WWW-Authenticate:
          description: |
            Challenge if the corresponding HTTP request has not provided authorization, or error details if the
            corresponding HTTP request has provided an invalid authorization token.
          style: simple
          explode: false
          schema:
            type: string
        Version:
          description: The used API version.
          style: simple
          explode: false
          schema:
            type: string

    VNFINDNotification.Get.204:
      description: |
        204 NO CONTENT
        Shall be returned to indicate that the notification endpoint has been tested successfully.
        The response body shall be empty.
      headers:
        WWW-Authenticate:
          description: |
            Challenge if the corresponding HTTP request has not provided authorization, or error details if the
            corresponding HTTP request has provided an invalid authorization token.
          style: simple
          explode: false
          schema:
            type: string
        Version:
          description: The used API version.
          style: simple
          explode: false
          schema:
            type: string