NSPerformanceManagement.yaml 46.1 KB
Newer Older
1
2
3
swagger: "2.0"

info:
4
  version: "1.0.0"
rameshnaraya's avatar
rameshnaraya committed
5
  title: SOL005 - NS Performance Management Interface
6
  description: >
rameshnaraya's avatar
rameshnaraya committed
7
    SOL005 - NS Performance Management Interface
8
9
10
11
12
13
14
15
16
17
18
19
    IMPORTANT: Please note that this file might be not aligned to the current
    version of the ETSI Group Specification it refers to and has not been
    approved by the ETSI NFV ISG. In case of discrepancies the published ETSI
    Group Specification takes precedence.
    Please report bugs to https://forge.etsi.org/bugzilla/buglist.cgi?component=Nfv-Openapis
  license:
    name: "ETSI Forge copyright notice"
    url: https://forge.etsi.org/etsi-forge-copyright-notice.txt
  contact: 
    name: "NFV-SOL WG"
externalDocs:
  description: ETSI GS NFV-SOL 005 V2.4.1
20
  url: http://www.etsi.org/deliver/etsi_gs/NFV-SOL/001_099/005/02.04.01_60/gs_NFV-SOL005v020401p.pdf  
21
22
23
24
25
26
basePath: "/nspm/v1"
schemes:
  - https
consumes:
  - "application/json"
produces:
27
  - "application/json"  
28
paths:
29
30
31
32
33
34
###############################################################################
# PM Jobs                                                                     #
###############################################################################
  '/pm_jobs':
    #ETSI GS NFV-SOL 005 V2.4.1 location: 7.4.2
    post:
rameshnaraya's avatar
rameshnaraya committed
35
      summary: Create a PM job.
36
37
38
39
40
      description: >
        The POST method creates a PM job.
        This method shall follow the provisions specified in the 
        Tables 7.4.2.3.1-1 and 7.4.2.3.1-2 for URI query parameters,
        request and response data structures, and response codes.
41
      parameters:
42
43
44
45
46
47
48
49
50
51
52
53
      - name: "CreatePmJobRequest"
        in: "body"
        required: true
        schema:
          type: "object"
          required:
          - "CreatePmJobRequest"
          properties:
            CreatePmJobRequest:
              $ref: "definitions/SOL005NSPerfomananceManagement_def.yaml#/definitions/CreatePmJobRequest"
          description: >
            The VNF creation parameters.            
rameshnaraya's avatar
rameshnaraya committed
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
      - name: Accept
        description: >
          Content-Types that are acceptable for the response.
          Reference: IETF RFC 7231
        in: header
        required: true
        type: string
      - name: Authorization
        description: >
          The authorization token for the request.
          Reference: IETF RFC 7235
        in: header
        required: false
        type: string
      - name: Content-Type
        description: >
          The MIME type of the body of the request.
          Reference: IETF RFC 7231
        in: header
        required: true
74
        type: string          
rameshnaraya's avatar
rameshnaraya committed
75
      responses:            
76
        201:
77
78
79
80
81
82
83
84
          description: >          
            201 Created
            
            The PM job was created successfully.
            The response body shall contain a representation of
            the created PM job resource, as defined in clause 7.5.2.7.
            The HTTP response shall include a "Location" HTTP
            header that points to the created PM job resource.          
85
          schema:
rameshnaraya's avatar
rameshnaraya committed
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
            type: "object"
            properties:
              PmJob:
                $ref: "definitions/SOL005NSPerfomananceManagement_def.yaml#/definitions/PmJob"
          headers:
            Content-Type:
              type: "string"
              description: >
                The MIME type of the body of the response.This header
                field shall be present if the response has a non-empty message
                body.
            WWW-Authenticate:
              type: "string"
              description: >
                Challenge if the corresponding HTTP request has not provided
                authorization, or error details if the corresponding HTTP request
102
103
104
                has provided an invalid authorization token.
              maximum: 1
              minimum: 0                
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
        400:
          $ref: "responses/SOL005_resp.yaml#/responses/400"
        401:
          $ref: "responses/SOL005_resp.yaml#/responses/401"
        403:
          $ref: "responses/SOL005_resp.yaml#/responses/403"
        404:
          $ref: "responses/SOL005_resp.yaml#/responses/404"
        405:
          $ref: "responses/SOL005_resp.yaml#/responses/404"
        406:
          $ref: "responses/SOL005_resp.yaml#/responses/406"
        416:
          $ref: "responses/SOL005_resp.yaml#/responses/416"
        500:
          $ref: "responses/SOL005_resp.yaml#/responses/500"
        503:
          $ref: "responses/SOL005_resp.yaml#/responses/503"          

    get:
rameshnaraya's avatar
rameshnaraya committed
125
      summary: Query PM jobs.
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
      description: >  
        "The client can use this method to retrieve information about PM jobs"
      parameters:
        - name: "filter"
          in: "query"
          required: false
          type: "string"
          description: >  
            "Attribute-based filtering parameters according to clause 4.3.2.
            The NFVO shall support receiving filtering parameters as part of the URI query string.
            The OSS/BSS may supply filtering parameters.
            All attribute names that appear in the PmJob and in data types referenced from it
            shall be supported in attribute-based filtering parameters"
        - name: "all_fields"
          in: "query"
          required: false
          type: "string"
          description: >  
            "Include all complex attributes in the response. See clause 4.3.3 for details. The
            NFVO shall support this parameter"
        - name: "include"
          in: "query"
          required: false
          type: "string"
          description: >  
            "Complex attributes to be included into the response. See clause 4.3.3 for details. The
            NFVO should support this parameter"          
        - name: "exclude"
          in: "query"
          required: false
          type: "string"
          description: >  
            "Complex attributes to be excluded from the response. See clause 4.3.3 for details.
            The NFVO should support this parameter."
        - name: "exclude_default"
          in: "query"
          required: false
          type: "string"
          description: >  
            "Indicates to exclude the following complex attributes from the response.
            See clause 4.3.3 for details. The NFVO shall support this parameter.
            The following attributes shall be excluded from the PmJob structure in the response
            body if this parameter is provided, or none of the parameters "all_fields," "fields",
            "exclude_fields", "exclude_default" are provided:
            reports."
        - name: Accept
          description: >
            Content-Types that are acceptable for the response.
            Reference: IETF RFC 7231
          in: header
          required: true
          type: string
        - name: Authorization
          description: >
            The authorization token for the request.
            Reference: IETF RFC 7235
          in: header
          required: true
          type: string
        - name: Content-Type
          description: >
            The MIME type of the body of the request.
            Reference: IETF RFC 7231
          in: header
          required: true
          type: string             
      responses:
rameshnaraya's avatar
rameshnaraya committed
193
194
        200:
          description: >
195
            200 OK
196
            
rameshnaraya's avatar
rameshnaraya committed
197
            Information about zero or more PM jobs was queried successfully.
198
            The response body shall contain representations of
rameshnaraya's avatar
rameshnaraya committed
199
            zero or more PM jobs, as defined in clause 7.5.2.7
200
          headers:
rameshnaraya's avatar
rameshnaraya committed
201
202
203
204
205
206
            Content-Type:
              description: The MIME type of the body of the response.
              type: string
              maximum: 1
              minimum: 1
            WWW-Authenticate:
207
              type: "string"
rameshnaraya's avatar
rameshnaraya committed
208
209
              description: >
                Challenge if the corresponding HTTP request has not provided
210
211
212
213
                authorization, or error details if the corresponding HTTP request
                has provided an invalid authorization token.
              maximum: 1
              minimum: 0              
rameshnaraya's avatar
rameshnaraya committed
214
215
216
217
218
219
          schema:
            type: array
            items:
              properties:
                PmJob:
                  $ref: "definitions/SOL005NSPerfomananceManagement_def.yaml#/definitions/PmJob"                   
220
        400:
rameshnaraya's avatar
rameshnaraya committed
221
          $ref: "responses/SOL005_resp.yaml#/responses/400"
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
        401:
          $ref: "responses/SOL005_resp.yaml#/responses/401"
        403:
          $ref: "responses/SOL005_resp.yaml#/responses/403"
        405:
          $ref: "responses/SOL005_resp.yaml#/responses/405"
        406:
          $ref: "responses/SOL005_resp.yaml#/responses/406"
        500:
          $ref: "responses/SOL005_resp.yaml#/responses/500"
        503:
          $ref: "responses/SOL005_resp.yaml#/responses/503"
          
###############################################################################
# Individual PM job                                                           #
###############################################################################
  '/pm_jobs/{pmJobId}':
    #ETSI GS NFV-SOL 005 V2.4.1 location: 7.4.3
    parameters:
      - name: pmJobId
        description: >
          Identifier of the PM job.
rameshnaraya's avatar
rameshnaraya committed
244
245
246
          This identifier can be retrieved from the resource referenced by the "Location" HTTP header in the response
          to a POST request creating a new PM job resource. It can also be retrieved from the "id" attribute in the
          payload body of that response.          
247
248
249
250
        in: path
        type: string
        required: true
    get:
rameshnaraya's avatar
rameshnaraya committed
251
      summary: Read a single PM job.
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
      description: >
        The client can use this method for reading an individual PM job.
      parameters:
        - name: Accept
          description: >
            Content-Types that are acceptable for the response.
            Reference: IETF RFC 7231
          in: header
          required: true
          type: string
        - name: Authorization
          description: >
            The authorization token for the request.
            Reference: IETF RFC 7235
          in: header
          required: true
          type: string
      responses:
        200:
271
272
273
274
275
276
          description: >
            200 OK
            
            Information about an individual PM job was queried successfully.
            The response body shall contain a representation of
            the PM job resource, as defined in clause 7.5.2.7.            
rameshnaraya's avatar
rameshnaraya committed
277
278
279
280
281
          schema:
            type: "object"
            properties:
              PmJob:
                $ref: "definitions/SOL005NSPerfomananceManagement_def.yaml#/definitions/PmJob"
282
          headers:
rameshnaraya's avatar
rameshnaraya committed
283
284
285
286
287
            Content-Type:
              type: "string"
              description: >
                The MIME type of the body of the response.This header
                field shall be present if the response has a non-empty message body.
288
            WWW-Authenticate:
rameshnaraya's avatar
rameshnaraya committed
289
              type: "string"
290
291
              description: >
                Challenge if the corresponding HTTP request has not provided
rameshnaraya's avatar
rameshnaraya committed
292
293
                authorization, or error details if the corresponding HTTP request
                has provided an invalid authorization token.
294
295
              maximum: 1
              minimum: 0
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
        400:
          $ref: "responses/SOL005_resp.yaml#/responses/400"
        401:
          $ref: "responses/SOL005_resp.yaml#/responses/401"
        403:
          $ref: "responses/SOL005_resp.yaml#/responses/403"
        405:
          $ref: "responses/SOL005_resp.yaml#/responses/405"
        406:
          $ref: "responses/SOL005_resp.yaml#/responses/406"
        500:
          $ref: "responses/SOL005_resp.yaml#/responses/500"
        503:
          $ref: "responses/SOL005_resp.yaml#/responses/503"
    delete:
rameshnaraya's avatar
rameshnaraya committed
311
      summary: Delete a PM job.
312
313
314
315
316
317
318
319
320
321
322
323
324
      description: >
        This method terminates an individual PM job.
      parameters:
        - name: Authorization
          description: >
            The authorization token for the request.
            Reference: IETF RFC 7235
          in: header
          required: true
          type: string
      responses:
        204:
          description: > 
325
            204 No Content
326
327
328
329
330
            
            The PM job was deleted successfully.
            The response body shall be empty.
          headers:
            WWW-Authenticate:
331
              type: "string"
332
333
              description: >
                Challenge if the corresponding HTTP request has not provided
334
335
                authorization, or error details if the corresponding HTTP request
                has provided an invalid authorization token.
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
              maximum: 1
              minimum: 0
        400:
          $ref: "responses/SOL005_resp.yaml#/responses/400"
        401:
          $ref: "responses/SOL005_resp.yaml#/responses/401"
        403:
          $ref: "responses/SOL005_resp.yaml#/responses/403"
        405:
          $ref: "responses/SOL005_resp.yaml#/responses/405"
        406:
          $ref: "responses/SOL005_resp.yaml#/responses/406"
        500:
          $ref: "responses/SOL005_resp.yaml#/responses/500"
        503:
          $ref: "responses/SOL005_resp.yaml#/responses/503"

###############################################################################
# Individual performance report                                               #
###############################################################################
  '/pm_jobs/{pmJobId}/reports/{reportId}':
    #ETSI GS NFV-SOL 005 V2.4.1 location: 7.4.4
    parameters:
      - name: pmJobId
        description: >
          Identifier of the PM job.
        in: path
        type: string
        required: true
      - name: reportId
        description: >
          Identifier of the performance report.
        in: path
        type: string
        required: true
    get:
rameshnaraya's avatar
rameshnaraya committed
372
      summary: Read an individual performance report.
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
      description: >
        The client can use this method for reading an individual performance
        report.
      parameters:
        - name: Accept
          description: >
            Content-Types that are acceptable for the response.
            Reference: IETF RFC 7231
          in: header
          required: true
          type: string
        - name: Authorization
          description: >
            The authorization token for the request.
            Reference: IETF RFC 7235
          in: header
          required: true
          type: string
      responses:
        200:
393
394
395
396
397
398
399
          description: >
            200 OK

            Information of an individual performance report was read successfully.
            The response body shall contain a representation of
            the performance report resource, as defined in
            clause 7.5.2.10.
rameshnaraya's avatar
rameshnaraya committed
400
          schema:
401
            type: "object"             
rameshnaraya's avatar
rameshnaraya committed
402
403
404
            properties:
              PerformanceReport:
                $ref: "definitions/NSPerfomananceManagement_def.yaml#/definitions/PerformanceReport"
405
          headers:
rameshnaraya's avatar
rameshnaraya committed
406
407
408
409
410
            Content-Type:
              type: "string"
              description: >
                The MIME type of the body of the response.This header
                field shall be present if the response has a non-empty message body.
411
            WWW-Authenticate:
rameshnaraya's avatar
rameshnaraya committed
412
              type: "string"
413
414
              description: >
                Challenge if the corresponding HTTP request has not provided
rameshnaraya's avatar
rameshnaraya committed
415
416
                authorization, or error details if the corresponding HTTP request
                has provided an invalid authorization token.
417
418
              maximum: 1
              minimum: 0
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
        400:
          $ref: "responses/SOL005_resp.yaml#/responses/400"
        401:
          $ref: "responses/SOL005_resp.yaml#/responses/401"
        403:
          $ref: "responses/SOL005_resp.yaml#/responses/403"
        405:
          $ref: "responses/SOL005_resp.yaml#/responses/405"
        406:
          $ref: "responses/SOL005_resp.yaml#/responses/406"
        500:
          $ref: "responses/SOL005_resp.yaml#/responses/500"
        503:
          $ref: "responses/SOL005_resp.yaml#/responses/503"

###############################################################################          
# Thresholds                                                                  #
###############################################################################      
  '/thresholds':
438
    #ETSI GS NFV-SOL 005 V2.4.1 location: 7.4.5
439
    post:
rameshnaraya's avatar
rameshnaraya committed
440
      summary: Create a threshold.
441
442
443
444
445
446
      description: >        
        The POST method can be used by the client to create a threshold.
        
        This method shall follow the provisions specified in the 
        table 7.4.5.3.1-2 for URI query parameters,
        request and response data structures, and response codes.        
447
      parameters:
448
449
450
451
452
453
454
455
456
457
458
459
      - name: "CreateThresholdRequest"
        in: "body"
        required: true
        schema:
          type: "object"
          required:
          - "CreateThresholdRequest"
          properties:
            CreateThresholdRequest:
              $ref: "definitions/SOL005NSPerfomananceManagement_def.yaml#/definitions/CreateThresholdRequest"
          description: >
            Request parameters to create a threshold resource.            
rameshnaraya's avatar
rameshnaraya committed
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
      - name: Accept
        description: >
          Content-Types that are acceptable for the response.
          Reference: IETF RFC 7231
        in: header
        required: true
        type: string
      - name: Authorization
        description: >
          The authorization token for the request.
          Reference: IETF RFC 7235
        in: header
        required: false
        type: string
      - name: Content-Type
        description: >
          The MIME type of the body of the request.
          Reference: IETF RFC 7231
        in: header
        required: true
480
        type: string            
481
482
      responses:
        201:
483
484
485
486
487
488
489
490
491
          description: >
            201 Created
            
            A threshold was created successfully.
            The response body shall contain a representation of
            the created threshold resource, as defined in clause 7.5.2.9.
            The HTTP response shall include a "Location" HTTP
            header that contains the resource URI of the created
            threshold resource.            
rameshnaraya's avatar
rameshnaraya committed
492
493
494
495
496
          schema:
            type: "object"
            properties:
              Threshold:
                $ref: "definitions/SOL005NSPerfomananceManagement_def.yaml#/definitions/Threshold"
497
          headers:
rameshnaraya's avatar
rameshnaraya committed
498
499
500
501
502
503
            Content-Type:
              type: "string"
              description: >
                The MIME type of the body of the response.This header
                field shall be present if the response has a non-empty message
                body.
504
            WWW-Authenticate:
rameshnaraya's avatar
rameshnaraya committed
505
              type: "string"
506
507
              description: >
                Challenge if the corresponding HTTP request has not provided
rameshnaraya's avatar
rameshnaraya committed
508
509
                authorization, or error details if the corresponding HTTP request
                has provided an invalid authorization token.
510
511
              maximum: 1
              minimum: 0
512
513
514
515
516
517
518
519
520
521
522
523
524
525
        400:
          $ref: "responses/SOL005_resp.yaml#/responses/400"
        401:
          $ref: "responses/SOL005_resp.yaml#/responses/401"
        403:
          $ref: "responses/SOL005_resp.yaml#/responses/403"
        405:
          $ref: "responses/SOL005_resp.yaml#/responses/405"
        406:
          $ref: "responses/SOL005_resp.yaml#/responses/406"
        500:
          $ref: "responses/SOL005_resp.yaml#/responses/500"
        503:
          $ref: "responses/SOL005_resp.yaml#/responses/503"
526
    get:
rameshnaraya's avatar
rameshnaraya committed
527
      summary: Query thresholds.   
528
529
530
531
532
533
534
535
      description: >
        The client can use this method to query information about thresholds.
      parameters:
        - name: "filter"
          in: "query"
          required: false
          type: "string"
          description: >  
rameshnaraya's avatar
rameshnaraya committed
536
            Attribute-based filtering parameters according to clause 4.3.2.
537
538
539
            The NFVO shall support receiving filtering parameters as part of the URI query string.
            The OSS/BSS may supply filtering parameters.
            All attribute names that appear in the Thresholds data type and in data types
rameshnaraya's avatar
rameshnaraya committed
540
            referenced from it shall be supported in attribute-based filtering parameters.    
541
542
543
544
545
546
547
548
549
550
551
552
553
554
        - name: Accept
          description: >
            Content-Types that are acceptable for the response.
            Reference: IETF RFC 7231
          in: header
          required: true
          type: string
        - name: Authorization
          description: >
            The authorization token for the request.
            Reference: IETF RFC 7235
          in: header
          required: true
          type: string
rameshnaraya's avatar
rameshnaraya committed
555
          
556
557
      responses:
        200:
rameshnaraya's avatar
rameshnaraya committed
558
          description: >
559
            200 OK
560
            
rameshnaraya's avatar
rameshnaraya committed
561
            Information about zero or more thresholds was queried successfully.
562
            The response body shall contain representations of
rameshnaraya's avatar
rameshnaraya committed
563
            zero or more thresholds, as defined in clause 7.5.2.9.
564
          headers:
rameshnaraya's avatar
rameshnaraya committed
565
566
            Content-Type:
              description: The MIME type of the body of the response.
567
              type: string
rameshnaraya's avatar
rameshnaraya committed
568
569
              maximum: 1
              minimum: 1
570
            WWW-Authenticate:
571
              type: "string"
572
573
              description: >
                Challenge if the corresponding HTTP request has not provided
574
575
576
577
                authorization, or error details if the corresponding HTTP request
                has provided an invalid authorization token.
              maximum: 1
              minimum: 0             
578
579
          schema:
            type: array
rameshnaraya's avatar
rameshnaraya committed
580
581
582
583
            items:
              properties:
                Threshold:
                  $ref: "definitions/SOL005NSPerfomananceManagement_def.yaml#/definitions/Threshold"
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
        400:
          $ref: "responses/SOL005_resp.yaml#/responses/400"
        401:
          $ref: "responses/SOL005_resp.yaml#/responses/401"
        403:
          $ref: "responses/SOL005_resp.yaml#/responses/403"
        405:
          $ref: "responses/SOL005_resp.yaml#/responses/405"
        406:
          $ref: "responses/SOL005_resp.yaml#/responses/406"
        500:
          $ref: "responses/SOL005_resp.yaml#/responses/500"
        503:
          $ref: "responses/SOL005_resp.yaml#/responses/503"
          
###############################################################################
# Individual threshold                                                        #
###############################################################################
  '/thresholds/{thresholdId}':
   #ETSI GS NFV-SOL 005 V2.4.1 location: 7.4.6
    parameters: 
      - name: thresholdId
        description: >
          Identifier of the threshold.
          This identifier can be retrieved from the resource referenced by the
          "Location" HTTP header in the response to a POST request creating a
          new threshold resource. It can also be retrieved from the "id"
          attribute in the payload body of that response.
        in: path
        type: string
        required: true
    get:
rameshnaraya's avatar
rameshnaraya committed
616
      summary: Query a single threshold.
617
618
      description: >
        The client can use this method for reading an individual threshold.
rameshnaraya's avatar
rameshnaraya committed
619
620
621
        This method shall follow the provisions specified in the 
        Tables 7.4.6.3.2-1 and 7.4.6.3.2-2 for URI query parameters,
        request and response data structures, and response codes.
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
      parameters:
        - name: Accept
          description: >
            Content-Types that are acceptable for the response.
            Reference: IETF RFC 7231
          in: header
          required: true
          type: string
        - name: Authorization
          description: >
            The authorization token for the request.
            Reference: IETF RFC 7235
          in: header
          required: true
          type: string
      responses:
        200:
639
640
641
642
643
644
          description: >
            200 OK
            
            Information about an individual threshold was queried successfully.
            The response body shall contain a representation of
            the threshold, as defined in clause 7.5.2.9.            
rameshnaraya's avatar
rameshnaraya committed
645
646
647
648
649
          schema:
            type: "object"
            properties:
              Threshold:
                $ref: "definitions/SOL005NSPerfomananceManagement_def.yaml#/definitions/Threshold"
650
          headers:
rameshnaraya's avatar
rameshnaraya committed
651
652
653
654
655
            Content-Type:
              type: "string"
              description: >
                The MIME type of the body of the response.This header
                field shall be present if the response has a non-empty message body.
656
            WWW-Authenticate:
rameshnaraya's avatar
rameshnaraya committed
657
              type: "string"
658
659
              description: >
                Challenge if the corresponding HTTP request has not provided
rameshnaraya's avatar
rameshnaraya committed
660
661
                authorization, or error details if the corresponding HTTP request
                has provided an invalid authorization token.
662
663
              maximum: 1
              minimum: 0
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
        400:
          $ref: "responses/SOL005_resp.yaml#/responses/400"
        401:
          $ref: "responses/SOL005_resp.yaml#/responses/401"
        403:
          $ref: "responses/SOL005_resp.yaml#/responses/403"
        405:
          $ref: "responses/SOL005_resp.yaml#/responses/405"
        406:
          $ref: "responses/SOL005_resp.yaml#/responses/406"
        500:
          $ref: "responses/SOL005_resp.yaml#/responses/500"
        503:
          $ref: "responses/SOL005_resp.yaml#/responses/503"
    delete:
rameshnaraya's avatar
rameshnaraya committed
679
      summary: Delete a threshold.
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
      description: >
        This method allows to delete a threshold.
      parameters:
        - name: Accept
          description: >
            Content-Types that are acceptable for the response.
            Reference: IETF RFC 7231
          in: header
          required: true
          type: string
        - name: Authorization
          description: >
            The authorization token for the request.
            Reference: IETF RFC 7235
          in: header
          required: true
          type: string
      responses:
        204:
          description: > 
700
701
            204 No Content
            
702
703
704
705
            The threshold was deleted successfully.
            The response body shall be empty.
          headers:
            WWW-Authenticate:
706
              type: "string"
707
708
              description: >
                Challenge if the corresponding HTTP request has not provided
709
710
                authorization, or error details if the corresponding HTTP request
                has provided an invalid authorization token.
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
              maximum: 1
              minimum: 0
        400:
          $ref: "responses/SOL005_resp.yaml#/responses/400"
        401:
          $ref: "responses/SOL005_resp.yaml#/responses/401"
        403:
          $ref: "responses/SOL005_resp.yaml#/responses/403"
        405:
          $ref: "responses/SOL005_resp.yaml#/responses/405"
        406:
          $ref: "responses/SOL005_resp.yaml#/responses/406"
        500:
          $ref: "responses/SOL005_resp.yaml#/responses/500"
        503:
          $ref: "responses/SOL005_resp.yaml#/responses/503"
###############################################################################
# Subscriptions                                                               #
###############################################################################
  '/subscriptions':
    #ETSI GS NFV-SOL 005 V2.4.1 location: 7.4.7
    post:
rameshnaraya's avatar
rameshnaraya committed
733
      summary: Subscribe to PM notifications.
734
735
736
737
      description: >
        The POST method creates a new subscription.
        This method shall follow the provisions specified in the Tables 7.4.7.3.1-1 and 7.4.7.3.1-2 for URI query parameters,
        request and response data structures, and response codes.
rameshnaraya's avatar
rameshnaraya committed
738
739
        Creation of two subscription resources with the same callbackURI and the same filter can result in performance
        degradation and will provide duplicates of notifications to the OSS, and might make sense only in very rare use cases.
740
        Consequently, the NFVO may either allow creating a subscription resource if another subscription resource with the
rameshnaraya's avatar
rameshnaraya committed
741
742
743
        same filter and callbackUri already exists (in which case it shall return the "201 Created" response code), or may decide
        to not create a duplicate subscription resource (in which case it shall return a "303 See Other" response code referencing
        the existing subscription resource with the same filter and callbackUri)
744
      parameters:
rameshnaraya's avatar
rameshnaraya committed
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
      - name: Accept
        description: >
          Content-Types that are acceptable for the response.
          Reference: IETF RFC 7231
        in: header
        required: true
        type: string
      - name: Authorization
        description: >
          The authorization token for the request.
          Reference: IETF RFC 7235
        in: header
        required: false
        type: string
      - name: Content-Type
        description: >
          The MIME type of the body of the request.
          Reference: IETF RFC 7231
        in: header
        required: true
        type: string
      - name: "body"
        in: "body"
        required: true
        schema:
          type: "object"
          required:
          - "PmSubscriptionRequest"
          properties:
            PmSubscriptionRequest:
              $ref: "definitions/SOL005NSPerfomananceManagement_def.yaml#/definitions/PmSubscriptionRequest"
776
          description: >
rameshnaraya's avatar
rameshnaraya committed
777
            Details of the subscription to be created.            
778
779
      responses:
        201:
780
781
782
783
784
785
786
787
          description: >
            201 Created
            
            The subscription was created successfully.
            A representation of the created subscription resource
            shall be returned in the response body, as defined in clause 7.5.2.3.
            The HTTP response shall include a "Location" HTTP
            header that contains the resource URI of the created subscription resource.            
rameshnaraya's avatar
rameshnaraya committed
788
789
790
791
792
          schema:
            type: "object"
            properties:
              PmSubscription:
                $ref: "definitions/SOL005NSPerfomananceManagement_def.yaml#/definitions/PmSubscription"
793
          headers:
rameshnaraya's avatar
rameshnaraya committed
794
795
796
797
798
799
800
801
            Content-Type:
              type: "string"
              description: >
                The MIME type of the body of the response.This header
                field shall be present if the response has a non-empty message
                body.
              maximum: 1
              minimum: 1                
802
            WWW-Authenticate:
rameshnaraya's avatar
rameshnaraya committed
803
              type: "string"
804
805
              description: >
                Challenge if the corresponding HTTP request has not provided
rameshnaraya's avatar
rameshnaraya committed
806
807
                authorization, or error details if the corresponding HTTP request
                has provided an invalid authorization token.
808
              maximum: 1
809
              minimum: 0 
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
        303:
          $ref: "responses/SOL005_resp.yaml#/responses/303"            
        400:
          $ref: "responses/SOL005_resp.yaml#/responses/400"
        401:
          $ref: "responses/SOL005_resp.yaml#/responses/401"
        403:
          $ref: "responses/SOL005_resp.yaml#/responses/403"
        405:
          $ref: "responses/SOL005_resp.yaml#/responses/405"
        406:
          $ref: "responses/SOL005_resp.yaml#/responses/406"
        500:
          $ref: "responses/SOL005_resp.yaml#/responses/500"
        503:
          $ref: "responses/SOL005_resp.yaml#/responses/503"
    get:
rameshnaraya's avatar
rameshnaraya committed
827
      summary: Query PM related subscriptions.    
828
      description: >
rameshnaraya's avatar
rameshnaraya committed
829
830
831
832
        The client can use this method to query the list of active subscriptions to Performance management notifications
        subscribed by the client.
        This method shall follow the provisions specified in the Tables 7.4.7.3.2-1 and 7.4.7.3.2-2 for URI query parameters,
        request and response data structures, and response codes.
833
834
835
836
837
838
      parameters:
        - name: "filter"
          in: "query"
          required: false
          type: "string"
          description: >  
rameshnaraya's avatar
rameshnaraya committed
839
            Attribute-based filtering parameters according to clause 4.3.2.
840
841
842
843
            The NFVO shall support receiving filtering parameters as part of the URI
            query string. The OSS/BSS may supply filtering parameters.
            All attribute names that appear in the PmSubscription and in data types
            referenced from it shall be supported in attribute-based filtering
rameshnaraya's avatar
rameshnaraya committed
844
            parameters.   
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
        - name: Accept
          description: >
            Content-Types that are acceptable for the response.
            Reference: IETF RFC 7231
          in: header
          required: true
          type: string
        - name: Authorization
          description: >
            The authorization token for the request.
            Reference: IETF RFC 7235
          in: header
          required: true
          type: string
      responses:
        200:
rameshnaraya's avatar
rameshnaraya committed
861
          description: >
862
            200 OK
rameshnaraya's avatar
rameshnaraya committed
863
            
864
            The list of subscriptions was queried successfully.
rameshnaraya's avatar
rameshnaraya committed
865
866
867
            The response body shall contain the representations of
            all active subscriptions of the functional block that
            invokes the method, as defined in clause 7.5.2.3.
868
869
          headers:
            Content-Type:
rameshnaraya's avatar
rameshnaraya committed
870
              description: The MIME type of the body of the response.
871
872
873
874
              type: string
              maximum: 1
              minimum: 1
            WWW-Authenticate:
875
              type: "string"
876
877
              description: >
                Challenge if the corresponding HTTP request has not provided
878
879
880
881
                authorization, or error details if the corresponding HTTP request
                has provided an invalid authorization token.
              maximum: 1
              minimum: 0             
882
883
          schema:
            type: array
rameshnaraya's avatar
rameshnaraya committed
884
885
886
887
            items:
              properties:
                PmSubscription:
                  $ref: "definitions/SOL005NSPerfomananceManagement_def.yaml#/definitions/PmSubscription"
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
        400:
          $ref: "responses/SOL005_resp.yaml#/responses/400"
        401:
          $ref: "responses/SOL005_resp.yaml#/responses/401"
        403:
          $ref: "responses/SOL005_resp.yaml#/responses/403"
        405:
          $ref: "responses/SOL005_resp.yaml#/responses/405"
        406:
          $ref: "responses/SOL005_resp.yaml#/responses/406"
        500:
          $ref: "responses/SOL005_resp.yaml#/responses/500"
        503:
          $ref: "responses/SOL005_resp.yaml#/responses/503"
###############################################################################
# Individual subscription                                                     #
###############################################################################
  '/subscriptions/{subscriptionId}':
    #ETSI GS NFV-SOL 005 V2.4.1 location: 7.4.8
    parameters:
      - name: subscriptionId
        description: >
rameshnaraya's avatar
rameshnaraya committed
910
911
912
913
          Identifier of the subscription.
          This identifier can be retrieved from the resource referenced by the "Location" HTTP header in the response
          to a POST request creating a new subscription resource. It can also be retrieved from the "id" attribute in the
          payload body of that response.
914
915
916
917
        in: path
        type: string
        required: true
    get:
rameshnaraya's avatar
rameshnaraya committed
918
      summary: Query a single PM related subscription.
919
      description: >
rameshnaraya's avatar
rameshnaraya committed
920
921
922
923
        The client can use this method for reading an individual subscription about Performance management notifications
        subscribed by the client.
        This method shall follow the provisions specified in the Tables 7.4.8.3.2-1 and 7.4.8.3.2-2 for URI query parameters,
        request and response data structures, and response codes.
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
      parameters:
        - name: Accept
          description: >
            Content-Types that are acceptable for the response.
            Reference: IETF RFC 7231
          in: header
          required: true
          type: string
        - name: Authorization
          description: >
            The authorization token for the request.
            Reference: IETF RFC 7235
          in: header
          required: true
          type: string
      responses:
940
941
942
943
944
945
946
        200:
          description: >
            200 OK
            
            The subscription was read successfully.
            The response body shall contain a representation of
            the subscription resource, as defined in clause 7.5.2.3.            
rameshnaraya's avatar
rameshnaraya committed
947
948
949
950
951
          schema:
            type: "object"
            properties:
              PmSubscription:
                $ref: "definitions/SOL005NSPerfomananceManagement_def.yaml#/definitions/PmSubscription"
952
953
          headers:
            Content-Type:
rameshnaraya's avatar
rameshnaraya committed
954
              type: "string"
955
              description: >
rameshnaraya's avatar
rameshnaraya committed
956
957
958
                The MIME type of the body of the response.This header
                field shall be present if the response has a non-empty message
                body.
959
            WWW-Authenticate:
rameshnaraya's avatar
rameshnaraya committed
960
              type: "string"
961
962
              description: >
                Challenge if the corresponding HTTP request has not provided
rameshnaraya's avatar
rameshnaraya committed
963
964
                authorization, or error details if the corresponding HTTP request
                has provided an invalid authorization token.
965
966
              maximum: 1
              minimum: 0
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
        400:
          $ref: "responses/SOL005_resp.yaml#/responses/400"
        401:
          $ref: "responses/SOL005_resp.yaml#/responses/401"
        403:
          $ref: "responses/SOL005_resp.yaml#/responses/403"
        405:
          $ref: "responses/SOL005_resp.yaml#/responses/405"
        406:
          $ref: "responses/SOL005_resp.yaml#/responses/406"
        500:
          $ref: "responses/SOL005_resp.yaml#/responses/500"
        503:
          $ref: "responses/SOL005_resp.yaml#/responses/503"
    delete:
rameshnaraya's avatar
rameshnaraya committed
982
      summary: Terminate a subscription.    
983
984
      description: >
        This method terminates an individual subscription.
rameshnaraya's avatar
rameshnaraya committed
985
986
987
        This method shall follow the provisions specified in the 
        Tables 7.4.8.3.5-1 and 7.4.8.3.5-2 for URI query parameters,
        request and response data structures, and response codes
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
      parameters:
        - name: Accept
          description: >
            Content-Types that are acceptable for the response.
            Reference: IETF RFC 7231
          in: header
          required: true
          type: string
        - name: Authorization
          description: >
            The authorization token for the request.
            Reference: IETF RFC 7235
          in: header
          required: true
          type: string
      responses:
        204:
          description: > 
1006
1007
            204 No Content          
            
1008
1009
1010
1011
            The subscription resource was deleted successfully.
            The response body shall be empty.
          headers:
            WWW-Authenticate:
1012
              type: "string"
1013
1014
              description: >
                Challenge if the corresponding HTTP request has not provided
1015
1016
                authorization, or error details if the corresponding HTTP request
                has provided an invalid authorization token.
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
              maximum: 1
              minimum: 0
        400:
          $ref: "responses/SOL005_resp.yaml#/responses/400"
        401:
          $ref: "responses/SOL005_resp.yaml#/responses/401"
        403:
          $ref: "responses/SOL005_resp.yaml#/responses/403"
        405:
          $ref: "responses/SOL005_resp.yaml#/responses/405"
        406:
          $ref: "responses/SOL005_resp.yaml#/responses/406"
        500:
          $ref: "responses/SOL005_resp.yaml#/responses/500"
        503:
          $ref: "responses/SOL005_resp.yaml#/responses/503"
          
1034
1035
1036
1037
1038
1039
1040
##################################################################################
# Notification endpoint                                                          #
# Dummy URI is used for testing.                                                 #
# In real, resource URI is provided by the client when creating the subscription.#
##################################################################################
  '/URI_is_provided_by_the_client_when_creating_the_subscription-PerformanceInformationAvailableNotification':
    #ETSI GS NFV-SOL 005 V2.4.1 location: 7.4.9
1041
    post:
1042
      summary: Notify about PM related events
1043
      description: >
rameshnaraya's avatar
rameshnaraya committed
1044
1045
1046
        The POST method delivers a notification regarding a performance management event from the server to the client.
        This method shall follow the provisions specified in the 
        Tables 7.4.9.3.1-1 and 7.4.9.3.1-2 for URI query parameters,
1047

1048
      parameters:
rameshnaraya's avatar
rameshnaraya committed
1049
        - name: PerformanceInformationAvailableNotification
1050
          description: >
rameshnaraya's avatar
rameshnaraya committed
1051
            Notification about performance information availability. 
1052
1053
1054
          in: body
          required: true
          schema:
rameshnaraya's avatar
rameshnaraya committed
1055
1056
            properties:
              PerformanceInformationAvailableNotification:
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
                $ref: "definitions/SOL005NSPerfomananceManagement_def.yaml#/definitions/PerformanceInformationAvailableNotification"
        - name: Accept
          description: >
            Content-Types that are acceptable for the response.
            Reference: IETF RFC 7231
          in: header
          required: true
          type: string
        - name: Authorization
          description: >
            The authorization token for the request.
            Reference: IETF RFC 7235
          in: header
          required: false
          type: string
        - name: Content-Type
          description: >
            The MIME type of the body of the request.
            Reference: IETF RFC 7231
          in: header
          required: true
          type: string
      responses:
        204:
          description: >
            204 No Content
            
            The notification was delivered successfully.
          headers:
            WWW-Authenticate:
              type: "string"
              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.
              maximum: 1
              minimum: 0            
        400:
          $ref: "responses/SOL005_resp.yaml#/responses/400"
        401:
          $ref: "responses/SOL005_resp.yaml#/responses/401"
        403:
          $ref: "responses/SOL005_resp.yaml#/responses/403"                        
        500:
          $ref: "responses/SOL005_resp.yaml#/responses/500"
        503:
          $ref: "responses/SOL005_resp.yaml#/responses/503" 
          
  '/URI_is_provided_by_the_client_when_creating_the_subscription-ThresholdCrossedNotification':
    #ETSI GS NFV-SOL 005 V2.4.1 location: 7.4.9  
    post:
      summary: Notify about PM related events
      description: >
        The POST method delivers a notification regarding a performance management event from the server to the client.
        This method shall follow the provisions specified in the 
        Tables 7.4.9.3.1-1 and 7.4.9.3.1-2 for URI query parameters,

      parameters:           
        - name: ThresholdCrossedNotification
          description: >
            Notification about threshold crossing.
          in: body
          required: true
          schema:
            properties:
              ThresholdCrossedNotification:
                $ref: "definitions/SOL005NSPerfomananceManagement_def.yaml#/definitions/ThresholdCrossedNotification"                
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
        - name: Accept
          description: >
            Content-Types that are acceptable for the response.
            Reference: IETF RFC 7231
          in: header
          required: true
          type: string
        - name: Authorization
          description: >
            The authorization token for the request.
            Reference: IETF RFC 7235
          in: header
          required: false
          type: string
        - name: Content-Type
          description: >
            The MIME type of the body of the request.
            Reference: IETF RFC 7231
          in: header
          required: true
          type: string
      responses:
        204:
          description: >
1148
            204 No Content
1149
            
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
            The notification was delivered successfully. 
          headers:
            WWW-Authenticate:
              type: "string"
              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.
              maximum: 1
              minimum: 0            
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
        400:
          $ref: "responses/SOL005_resp.yaml#/responses/400"
        401:
          $ref: "responses/SOL005_resp.yaml#/responses/401"
        403:
          $ref: "responses/SOL005_resp.yaml#/responses/403"                        
        500:
          $ref: "responses/SOL005_resp.yaml#/responses/500"
        503:
          $ref: "responses/SOL005_resp.yaml#/responses/503" 
1170
          
1171
    get:
1172
      summary: Test the notification endpoint
1173
      description: >
rameshnaraya's avatar
rameshnaraya committed
1174
1175
1176
1177
1178
        The GET method allows the server to test the notification endpoint that is provided by the client, e.g. during
        subscription.
        This method shall follow the provisions specified in the 
        Tables 7.4.9.3.2-1 and 7.4.9.3.2-2 for URI query parameters,
        request and response data structures, and response codes.
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
      parameters:
        - name: Accept
          description: >
            Content-Types that are acceptable for the response.
            Reference: IETF RFC 7231
          in: header
          required: true
          type: string
        - name: Authorization
          description: >
            The authorization token for the request.
            Reference: IETF RFC 7235
          in: header
          required: false
          type: string
      responses:
        204:
          description: >
1197
1198
            204 No Content          
            
1199
1200
            The notification endpoint was tested successfully.
            The response body shall be empty. 
1201
1202
1203
1204
1205
1206
1207
1208
1209
          headers:
            WWW-Authenticate:
              type: "string"
              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.
              maximum: 1
              minimum: 0            
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
        400:
          $ref: "responses/SOL005_resp.yaml#/responses/400"
        401:
          $ref: "responses/SOL005_resp.yaml#/responses/401"
        403:
          $ref: "responses/SOL005_resp.yaml#/responses/403"                        
        500:
          $ref: "responses/SOL005_resp.yaml#/responses/500"
        503:
          $ref: "responses/SOL005_resp.yaml#/responses/503"