From fd45a9abb0af520c8802687824c2e0629c317fb9 Mon Sep 17 00:00:00 2001 From: moscatelli Date: Thu, 14 Mar 2019 15:28:14 +0100 Subject: [PATCH] SOL002_64: {apiRoot}/vnfind/v1/indicators/{indicatorId} added in VNF Indicator if --- .../VNFFaultManagement.yaml | 55 ++++++++++++++++++- .../definitions/VNFFaultManagement_def.yaml | 5 +- src/SOL002/VNFIndicator/VNFIndicator.yaml | 40 ++++++++++++-- .../VNFPerformanceManagement.yaml | 4 +- 4 files changed, 94 insertions(+), 10 deletions(-) diff --git a/src/SOL002/VNFFaultManagement/VNFFaultManagement.yaml b/src/SOL002/VNFFaultManagement/VNFFaultManagement.yaml index 23eef8dc..9c18c3e0 100644 --- a/src/SOL002/VNFFaultManagement/VNFFaultManagement.yaml +++ b/src/SOL002/VNFFaultManagement/VNFFaultManagement.yaml @@ -266,7 +266,57 @@ paths: $ref: "../../responses/SOL002SOL003_resp.yaml#/responses/500" 503: $ref: "../../responses/SOL002SOL003_resp.yaml#/responses/503" -############################################################################### + ############################################################################### + # Escalate Perceived Severity task # + ############################################################################### + '/alarms/{alarmId}/escalate': + #SOL002 location: 7.4.4 + post: + description: > + The POST method enables the consumer to escalate the perceived severity + of an alarm that is represented by an ndividual alarm resource. + parameters: + - name: alarmId + description: > + Identifier of the alarm. + This identifier can be retrieved from the "id" attribute of the + "alarm" attribute in the AlarmNotification or + AlarmClearedNotification. It can also be retrieved from the "id" + attribute of the applicable array element in the payload body of the + response to a GET request to the "Alarms" resource. + in: path + type: string + required: true + - name: PerceivedSeverityRequest + description: The proposed "escalated perceived severity" value + in: body + schema: + $ref: "./definitions/VNFFaultManagement_def.yaml#/definitions/PerceivedSeverityRequest" + responses: + 200: + description: > + OK + + The VNFM has received the proposed "escalated perceived severity" value + successfully. The response body shall be empty. + 400: + $ref: "../../responses/SOL002SOL003_resp.yaml#/responses/400" + 401: + $ref: "../../responses/SOL002SOL003_resp.yaml#/responses/401" + 403: + $ref: "../../responses/SOL002SOL003_resp.yaml#/responses/403" + 405: + $ref: "../../responses/SOL002SOL003_resp.yaml#/responses/405" + 406: + $ref: "../../responses/SOL002SOL003_resp.yaml#/responses/406" + 412: + $ref: "../../responses/SOL002SOL003_resp.yaml#/responses/412" + 500: + $ref: "../../responses/SOL002SOL003_resp.yaml#/responses/500" + 503: + $ref: "../../responses/SOL002SOL003_resp.yaml#/responses/503" + + ############################################################################### # Subscriptions # ############################################################################### '/subscriptions': @@ -549,5 +599,4 @@ paths: 500: $ref: "../../responses/SOL002SOL003_resp.yaml#/responses/500" 503: - $ref: "../../responses/SOL002SOL003_resp.yaml#/responses/503" - + $ref: "../../responses/SOL002SOL003_resp.yaml#/responses/503" \ No newline at end of file diff --git a/src/SOL002/VNFFaultManagement/definitions/VNFFaultManagement_def.yaml b/src/SOL002/VNFFaultManagement/definitions/VNFFaultManagement_def.yaml index 8619868a..41d093ae 100644 --- a/src/SOL002/VNFFaultManagement/definitions/VNFFaultManagement_def.yaml +++ b/src/SOL002/VNFFaultManagement/definitions/VNFFaultManagement_def.yaml @@ -113,4 +113,7 @@ definitions: # Link to the resource representing the VNF instance to which the # notified alarm is correlated. Shall be present if the VNF # instance information is accessible as a resource. - $ref: "../../../definitions/SOL002SOL003_def.yaml#/definitions/Link" \ No newline at end of file + $ref: "../../../definitions/SOL002SOL003_def.yaml#/definitions/Link" + + PerceivedSeverityRequest: + type: string \ No newline at end of file diff --git a/src/SOL002/VNFIndicator/VNFIndicator.yaml b/src/SOL002/VNFIndicator/VNFIndicator.yaml index 947ba79b..e2e38bd6 100644 --- a/src/SOL002/VNFIndicator/VNFIndicator.yaml +++ b/src/SOL002/VNFIndicator/VNFIndicator.yaml @@ -40,7 +40,9 @@ produces: paths: - + ############################################################################### + # VNF Indicators # + ############################################################################### /indicators: get: summary: Query multiple indicators @@ -272,6 +274,38 @@ paths: 500: { $ref: '../../responses/SOL002SOL003_resp.yaml#/responses/500' } 503: { $ref: '../../responses/SOL002SOL003_resp.yaml#/responses/503' } + /indicators/{indicatorId}: + parameters: + - name: indicatorId + in: path + description: > + Identifier of the VNF indicator. + type: string + required: true + get: + summary: Read an inidividual VNF indicator related to a VNF instance. + description: > + Reads a VNF indicator. + responses: + 200: + description: > + OK + + The VNF indicator was read successfully. + The response body shall contain the representation of the VNF indicator. + schema: + $ref: 'definitions/VnfIndicator_def.yaml#/definitions/VnfIndicator' + 400: { $ref: '../../responses/SOL002SOL003_resp.yaml#/responses/400' } + 401: { $ref: '../../responses/SOL002SOL003_resp.yaml#/responses/401' } + 403: { $ref: '../../responses/SOL002SOL003_resp.yaml#/responses/403' } + 404: { $ref: '../../responses/SOL002SOL003_resp.yaml#/responses/404' } + 405: { $ref: '../../responses/SOL002SOL003_resp.yaml#/responses/405' } + 406: { $ref: '../../responses/SOL002SOL003_resp.yaml#/responses/406' } + 409: { $ref: 'responses/VNFIndicator_resp.yaml#/responses/409' } + 416: { $ref: '../../responses/SOL002SOL003_resp.yaml#/responses/416' } + 422: { $ref: '../../responses/SOL002SOL003_resp.yaml#/responses/422' } + 500: { $ref: '../../responses/SOL002SOL003_resp.yaml#/responses/500' } + 503: { $ref: '../../responses/SOL002SOL003_resp.yaml#/responses/503' } /subscriptions: post: @@ -489,6 +523,4 @@ paths: 416: { $ref: '../../responses/SOL002SOL003_resp.yaml#/responses/416' } 422: { $ref: '../../responses/SOL002SOL003_resp.yaml#/responses/422' } 500: { $ref: '../../responses/SOL002SOL003_resp.yaml#/responses/500' } - 503: { $ref: '../../responses/SOL002SOL003_resp.yaml#/responses/503' } - - + 503: { $ref: '../../responses/SOL002SOL003_resp.yaml#/responses/503' } \ No newline at end of file diff --git a/src/SOL002/VNFPerformanceManagement/VNFPerformanceManagement.yaml b/src/SOL002/VNFPerformanceManagement/VNFPerformanceManagement.yaml index 85e61b37..a207176f 100644 --- a/src/SOL002/VNFPerformanceManagement/VNFPerformanceManagement.yaml +++ b/src/SOL002/VNFPerformanceManagement/VNFPerformanceManagement.yaml @@ -22,7 +22,7 @@ externalDocs: description: ETSI GS NFV-SOL 002 V2.4.1 url: http://www.etsi.org/deliver/etsi_gs/NFV-SOL/001_099/002/02.04.01_60/gs_NFV-SOL002v020401p.pdf -basePath: /vnfconfig/v1 +basePath: /vnfpm/v1 schemes: - http @@ -862,4 +862,4 @@ paths: 500: $ref: "../../responses/SOL002SOL003_resp.yaml#/responses/500" 503: - $ref: "../../responses/SOL002SOL003_resp.yaml#/responses/503" + $ref: "../../responses/SOL002SOL003_resp.yaml#/responses/503" \ No newline at end of file -- GitLab