Commit 875bd4d7 authored by moscatelli's avatar moscatelli
Browse files

SOL005_8: Link and nextpage_opaque_marker added in NS mgmt and NS performarce...

SOL005_8: Link and nextpage_opaque_marker added in NS mgmt and NS performarce mgmt GET requests + code formatting
parent c2da30f6
Pipeline #512 failed with stage
in 0 seconds
...@@ -13,74 +13,81 @@ info: ...@@ -13,74 +13,81 @@ info:
license: license:
name: "ETSI Forge copyright notice" name: "ETSI Forge copyright notice"
url: https://forge.etsi.org/etsi-forge-copyright-notice.txt url: https://forge.etsi.org/etsi-forge-copyright-notice.txt
contact: contact:
name: "NFV-SOL WG" name: "NFV-SOL WG"
externalDocs: externalDocs:
description: ETSI GS NFV-SOL 005 V2.4.1 description: ETSI GS NFV-SOL 005 V2.4.1
url: http://www.etsi.org/deliver/etsi_gs/NFV-SOL/001_099/005/02.04.01_60/gs_NFV-SOL005v020401p.pdf url: http://www.etsi.org/deliver/etsi_gs/NFV-SOL/001_099/005/02.04.01_60/gs_NFV-SOL005v020401p.pdf
basePath: "/nsd/v1" basePath: "/nsd/v1"
schemes: schemes:
- https - https
consumes: consumes:
- "application/json" - "application/json"
produces: produces:
- "application/json" - "application/json"
paths: paths:
############################################################################### ###############################################################################
# NS Descriptors # # NS Descriptors #
############################################################################### ###############################################################################
'/ns_descriptors': '/ns_descriptors':
#ETSI GS NFV-SOL 005 V2.4.1 location: 5.4.2 #ETSI GS NFV-SOL 005 V2.4.1 location: 5.4.2
get: get:
summary: Query information about multiple NS descriptor resources. summary: Query information about multiple NS descriptor resources.
description: > description: >
"The GET method queries information about multiple NS descriptor resources. The GET method queries information about multiple NS descriptor resources.
This method shall follow the provisions specified in the This method shall follow the provisions specified in the
Tables 5.4.2.3.2-1 and 5.4.2.3.2-2 for URI query parameters, Tables 5.4.2.3.2-1 and 5.4.2.3.2-2 for URI query parameters,
request and response data structures, and response codes." request and response data structures, and response codes.
parameters: parameters:
- name: "filter" - name: filter
in: "query" in: query
required: false required: false
type: "string" type: string
description: > description: >
"Attribute-based filtering parameters according to clause 4.3.2. Attribute-based filtering parameters according to clause 4.3.2.
The NFVO shall support receiving filtering parameters as part of the URI query The NFVO shall support receiving filtering parameters as part of the URI query
string. The OSS/BSS may supply filtering parameters. string. The OSS/BSS may supply filtering parameters.
All attribute names that appear in the NsdInfo and in data types referenced from All attribute names that appear in the NsdInfo and in data types referenced from
it shall be supported in attribute-based filtering parameters." it shall be supported in attribute-based filtering parameters.
- name: "all_fields" - name: all_fields
in: "query" in: query
required: false required: false
type: "string" type: string
description: > description: >
"Include all complex attributes in the response. See clause 4.3.3 for details. Include all complex attributes in the response. See clause 4.3.3 for details.
The NFVO shall support this parameter." The NFVO shall support this parameter.
- name: "fields" - name: fields
in: "query" in: query
required: false required: false
type: "string" type: string
description: > description: >
"Complex attributes to be included into the response. See clause 4.3.3 for Complex attributes to be included into the response. See clause 4.3.3 for
details. The NFVO should support this parameter." details. The NFVO should support this parameter.
- name: "exclude_fields" - name: exclude_fields
in: "query" in: query
required: false required: false
type: "string" type: string
description: > description: >
"Complex attributes to be excluded from the response. See clause 4.3.3 for Complex attributes to be excluded from the response. See clause 4.3.3 for
details. The NFVO should support this parameter." details. The NFVO should support this parameter.
- name: "exclude_default" - name: exclude_default
in: "query" in: query
required: false required: false
type: "string" type: string
description: > description: >
"Indicates to exclude the following complex attributes from the response. See Indicates to exclude the following complex attributes from the response. See
clause 4.3.3 for details. The VNFM shall support this parameter. clause 4.3.3 for details. The VNFM shall support this parameter.
The following attributes shall be excluded from the NsdInfo structure in the The following attributes shall be excluded from the NsdInfo structure in the
response body if this parameter is provided, or none of the parameters response body if this parameter is provided, or none of the parameters
"all_fields," "fields", "exclude_fields", "exclude_default" are provided: "all_fields," "fields", "exclude_fields", "exclude_default" are provided:
userDefinedData." userDefinedData.
- name: nextpage_opaque_marker
in: query
description: >
Marker to obtain the next page of a paged response. Shall be supported by the NFVO
if the NFVO supports alternative 2 (paging) according to clause 4.7.2.1 for this resource.
required: false
type: string
- name: Accept - name: Accept
description: > description: >
Content-Types that are acceptable for the response. Content-Types that are acceptable for the response.
...@@ -105,7 +112,7 @@ paths: ...@@ -105,7 +112,7 @@ paths:
200: 200:
description: > description: >
200 OK 200 OK
Information about zero or more NS descriptors. Information about zero or more NS descriptors.
The response body shall contain a representation of The response body shall contain a representation of
zero or more NS descriptors, as defined in zero or more NS descriptors, as defined in
...@@ -117,7 +124,7 @@ paths: ...@@ -117,7 +124,7 @@ paths:
maximum: 1 maximum: 1
minimum: 1 minimum: 1
WWW-Authenticate: WWW-Authenticate:
type: "string" type: string
description: > description: >
Challenge if the corresponding HTTP request has not provided Challenge if the corresponding HTTP request has not provided
authorization, or error details if the corresponding HTTP request authorization, or error details if the corresponding HTTP request
...@@ -130,12 +137,18 @@ paths: ...@@ -130,12 +137,18 @@ paths:
type: string type: string
maximum: 1 maximum: 1
minimum: 1 minimum: 1
Link:
description: >
Reference to other resources. Used for paging in the present document, see clause 4.7.2.1.
type: string
maximum: 1
minimum: 0
schema: schema:
type: array type: array
items: items:
properties: properties:
NsdInfo: NsdInfo:
$ref: "definitions/SOL005NSDescriptorManagement_def.yaml#/definitions/NsdInfo" $ref: "definitions/SOL005NSDescriptorManagement_def.yaml#/definitions/NsdInfo"
400: 400:
$ref: "responses/SOL005_resp.yaml#/responses/400" $ref: "responses/SOL005_resp.yaml#/responses/400"
401: 401:
...@@ -151,62 +164,62 @@ paths: ...@@ -151,62 +164,62 @@ paths:
409: 409:
$ref: "responses/NSDescriptorManagement_resp.yaml#/responses/409" $ref: "responses/NSDescriptorManagement_resp.yaml#/responses/409"
412: 412:
$ref: "responses/SOL005_resp.yaml#/responses/412" $ref: "responses/SOL005_resp.yaml#/responses/412"
416: 416:
$ref: "responses/SOL005_resp.yaml#/responses/416" $ref: "responses/SOL005_resp.yaml#/responses/416"
500: 500:
$ref: "responses/SOL005_resp.yaml#/responses/500" $ref: "responses/SOL005_resp.yaml#/responses/500"
503: 503:
$ref: "responses/SOL005_resp.yaml#/responses/503" $ref: "responses/SOL005_resp.yaml#/responses/503"
post: post:
summary: Create a new NS descriptor resource. summary: Create a new NS descriptor resource.
description: > description: >
The POST method is used to create a new NS descriptor resource or a new version of an on-boarded NS descriptor. The POST method is used to create a new NS descriptor resource or a new version of an on-boarded NS descriptor.
parameters: parameters:
- name: Accept - name: Accept
description: > description: >
Content-Types that are acceptable for the response. Content-Types that are acceptable for the response.
Reference: IETF RFC 7231 Reference: IETF RFC 7231
in: header in: header
required: true required: true
type: string type: string
- name: Authorization - name: Authorization
description: > description: >
The authorization token for the request. The authorization token for the request.
Reference: IETF RFC 7235 Reference: IETF RFC 7235
in: header in: header
required: false required: false
type: string type: string
- name: Content-Type - name: Content-Type
description: > description: >
The MIME type of the body of the request. The MIME type of the body of the request.
Reference: IETF RFC 7231 Reference: IETF RFC 7231
in: header in: header
required: true required: true
type: string type: string
- name: Version - name: Version
description: > description: >
Version of the API requested to use when responding to this request. Version of the API requested to use when responding to this request.
in: header in: header
required: true required: true
type: string type: string
- name: "body" - name: body
in: "body" in: body
required: true required: true
schema: schema:
type: "object" type: object
required: required:
- "CreateNsdInfoRequest" - CreateNsdInfoRequest
properties: properties:
CreateNsdInfoRequest: CreateNsdInfoRequest:
$ref: "definitions/SOL005NSDescriptorManagement_def.yaml#/definitions/CreateNsdInfoRequest" $ref: "definitions/SOL005NSDescriptorManagement_def.yaml#/definitions/CreateNsdInfoRequest"
description: > description: >
Parameters of creating an NS descriptor resource, as defined in clause 5.5.2.3 Parameters of creating an NS descriptor resource, as defined in clause 5.5.2.3
responses: responses:
201: 201:
description: > description: >
Status 201 Status 201
An NS descriptor resource was created successfully, as a new NS descriptor resource. An NS descriptor resource was created successfully, as a new NS descriptor resource.
The response body shall contain a representation The response body shall contain a representation
of the new NS descriptor resource, as defined in clause 5.5.2.3 of GS NFV-SOL 005. of the new NS descriptor resource, as defined in clause 5.5.2.3 of GS NFV-SOL 005.
...@@ -214,19 +227,19 @@ paths: ...@@ -214,19 +227,19 @@ paths:
HTTP header that contains the resource URI of the HTTP header that contains the resource URI of the
new NS descriptor resource. new NS descriptor resource.
schema: schema:
type: "object" type: object
properties: properties:
NsdInfo: NsdInfo:
$ref: "definitions/SOL005NSDescriptorManagement_def.yaml#/definitions/NsdInfo" $ref: "definitions/SOL005NSDescriptorManagement_def.yaml#/definitions/NsdInfo"
headers: headers:
Content-Type: Content-Type:
type: "string" type: string
description: > description: >
The MIME type of the body of the response.This header The MIME type of the body of the response.This header
field shall be present if the response has a non-empty message field shall be present if the response has a non-empty message
body. body.
WWW-Authenticate: WWW-Authenticate:
type: "string" type: string
description: > description: >
Challenge if the corresponding HTTP request has not provided Challenge if the corresponding HTTP request has not provided
authorization, or error details if the corresponding HTTP request authorization, or error details if the corresponding HTTP request
...@@ -254,45 +267,45 @@ paths: ...@@ -254,45 +267,45 @@ paths:
409: 409:
$ref: "responses/NSDescriptorManagement_resp.yaml#/responses/409" $ref: "responses/NSDescriptorManagement_resp.yaml#/responses/409"
412: 412:
$ref: "responses/SOL005_resp.yaml#/responses/412" $ref: "responses/SOL005_resp.yaml#/responses/412"
416: 416:
$ref: "responses/SOL005_resp.yaml#/responses/416" $ref: "responses/SOL005_resp.yaml#/responses/416"
500: 500:
$ref: "responses/SOL005_resp.yaml#/responses/500" $ref: "responses/SOL005_resp.yaml#/responses/500"
503: 503:
$ref: "responses/SOL005_resp.yaml#/responses/503" $ref: "responses/SOL005_resp.yaml#/responses/503"
############################################################################### ###############################################################################
# Individual NS Descriptor # # Individual NS Descriptor #
############################################################################### ###############################################################################
'/ns_descriptors/{nsdInfoId}': '/ns_descriptors/{nsdInfoId}':
#ETSI GS NFV-SOL 005 V2.4.1 location: 5.4.3 #ETSI GS NFV-SOL 005 V2.4.1 location: 5.4.3
parameters: parameters:
- name: "nsdInfoId" - name: nsdInfoId
description: > description: >
Identifier of the individual NS descriptor resource. Identifier of the individual NS descriptor resource.
in: "path" in: path
required: true required: true
type: "string" type: string
get: get:
summary: Read information about an individual NS descriptor resource. summary: Read information about an individual NS descriptor resource.
description: > description: >
"The GET method reads information about an individual NS descriptor. The GET method reads information about an individual NS descriptor.
This method shall follow the provisions specified in GS NFV-SOL 005 Tables This method shall follow the provisions specified in GS NFV-SOL 005 Tables
5.4.3.3.2-1 and 5.4.3.3.2-2 of GS NFV-SOL 005 for URI query parameters, 5.4.3.3.2-1 and 5.4.3.3.2-2 of GS NFV-SOL 005 for URI query parameters,
request and response data structures, and response codes." request and response data structures, and response codes.
parameters: parameters:
- name: Accept - name: Accept
description: > description: >
Content-Types that are acceptable for the response. Content-Types that are acceptable for the response.
Reference: IETF RFC 7231 Reference: IETF RFC 7231.
in: header in: header
required: true required: true
type: string type: string
- name: Authorization - name: Authorization
description: > description: >
The authorization token for the request. The authorization token for the request.
Reference: IETF RFC 7235 Reference: IETF RFC 7235.
in: header in: header
required: false required: false
type: string type: string
...@@ -306,23 +319,23 @@ paths: ...@@ -306,23 +319,23 @@ paths:
200: 200:
description: > description: >
200 OK 200 OK
Information about the individual NS descriptor. Information about the individual NS descriptor.
The response body shall contain a representation of The response body shall contain a representation of
the individual NS descriptor. the individual NS descriptor.
schema: schema:
type: "object" type: object
properties: properties:
NsdInfo: NsdInfo:
$ref: "definitions/SOL005NSDescriptorManagement_def.yaml#/definitions/NsdInfo" $ref: "definitions/SOL005NSDescriptorManagement_def.yaml#/definitions/NsdInfo"
headers: headers:
Content-Type: Content-Type:
type: "string" type: string
description: > description: >
The MIME type of the body of the response.This header The MIME type of the body of the response.This header
field shall be present if the response has a non-empty message body. field shall be present if the response has a non-empty message body.
WWW-Authenticate: WWW-Authenticate:
type: "string" type: string
description: > description: >
Challenge if the corresponding HTTP request has not provided Challenge if the corresponding HTTP request has not provided
authorization, or error details if the corresponding HTTP request authorization, or error details if the corresponding HTTP request
...@@ -350,7 +363,7 @@ paths: ...@@ -350,7 +363,7 @@ paths:
409: 409:
$ref: "responses/NSDescriptorManagement_resp.yaml#/responses/409" $ref: "responses/NSDescriptorManagement_resp.yaml#/responses/409"
412: 412:
$ref: "responses/SOL005_resp.yaml#/responses/412" $ref: "responses/SOL005_resp.yaml#/responses/412"
416: 416:
$ref: "responses/SOL005_resp.yaml#/responses/416" $ref: "responses/SOL005_resp.yaml#/responses/416"
500: 500:
...@@ -359,7 +372,7 @@ paths: ...@@ -359,7 +372,7 @@ paths:
$ref: "responses/SOL005_resp.yaml#/responses/503" $ref: "responses/SOL005_resp.yaml#/responses/503"
patch: patch:
summary: Modify the operational state and/or the user defined data of an individual NS descriptor resource. summary: Modify the operational state and/or the user defined data of an individual NS descriptor resource.
description: > description: >
The PATCH method modifies the operational state and/or user defined The PATCH method modifies the operational state and/or user defined
data of an individual NS descriptor resource. This method can be used to: data of an individual NS descriptor resource. This method can be used to:
1) Enable a previously disabled individual NS descriptor resource, allowing 1) Enable a previously disabled individual NS descriptor resource, allowing
...@@ -370,43 +383,43 @@ paths: ...@@ -370,43 +383,43 @@ paths:
The usage state (i.e. "IN_USE/NOT_IN_USE") shall not changes a result. The usage state (i.e. "IN_USE/NOT_IN_USE") shall not changes a result.
3) Modify the user defined data of an individual NS descriptor resource. 3) Modify the user defined data of an individual NS descriptor resource.
parameters: parameters:
- name: "body" - name: body
in: "body" in: body
required: true required: true
schema: schema:
type: "object" type: object
required: required:
- "NsdInfoModifications" - NsdInfoModifications
properties: properties:
NsdInfoModifications: NsdInfoModifications:
$ref: "definitions/SOL005NSDescriptorManagement_def.yaml#/definitions/NsdInfoModifications" $ref: "definitions/SOL005NSDescriptorManagement_def.yaml#/definitions/NsdInfoModifications"
description: > description: >
Parameters for the modification of an individual NS descriptor resource. Parameters for the modification of an individual NS descriptor resource.
- name: Authorization - name: Authorization
description: > description: >
The authorization token for the request. The authorization token for the request.
Reference: IETF RFC 7235 Reference: IETF RFC 7235.
in: header in: header
required: false required: false
type: string type: string
- name: Content-Type - name: Content-Type
description: > description: >
The MIME type of the body of the request. The MIME type of the body of the request.
Reference: IETF RFC 7231 Reference: IETF RFC 7231.
in: header in: header
required: true required: true
type: string type: string
- name: Version - name: Version
description: > description: >
Version of the API requested to use when responding to this request. Version of the API requested to use when responding to this request.
in: header in: header
required: true required: true
type: string type: string
responses: responses:
200: 200:
description: > description: >
200 OK 200 OK
The operation was completed successfully. The operation was completed successfully.
The response body shall contain attribute The response body shall contain attribute
modifications for an 'Individual NS Descriptor' modifications for an 'Individual NS Descriptor'
...@@ -418,7 +431,7 @@ paths: ...@@ -418,7 +431,7 @@ paths:
maximum: 1 maximum: 1
minimum: 1 minimum: 1
WWW-Authenticate: WWW-Authenticate:
type: "string" type: string
description: > description: >
Challenge if the corresponding HTTP request has not provided Challenge if the corresponding HTTP request has not provided
authorization, or error details if the corresponding HTTP request authorization, or error details if the corresponding HTTP request
...@@ -435,7 +448,7 @@ paths: ...@@ -435,7 +448,7 @@ paths:
type: array type: array
items: items:
properties: properties:
NsdInfoModifications: NsdInfoModifications:
$ref: "definitions/SOL005NSDescriptorManagement_def.yaml#/definitions/NsdInfoModifications" $ref: "definitions/SOL005NSDescriptorManagement_def.yaml#/definitions/NsdInfoModifications"
400: 400:
$ref: "responses/SOL005_resp.yaml#/responses/400-attr-selector" $ref: "responses/SOL005_resp.yaml#/responses/400-attr-selector"
...@@ -452,17 +465,17 @@ paths: ...@@ -452,17 +465,17 @@ paths:
409: 409:
$ref: "responses/NSDescriptorManagement_resp.yaml#/responses/409" $ref: "responses/NSDescriptorManagement_resp.yaml#/responses/409"
412: 412: