1 # ================================================================================
2 # Copyright (c) 2017-2018 AT&T Intellectual Property. All rights reserved.
3 # ================================================================================
4 # Licensed under the Apache License, Version 2.0 (the "License");
5 # you may not use this file except in compliance with the License.
6 # You may obtain a copy of the License at
8 # http://www.apache.org/licenses/LICENSE-2.0
10 # Unless required by applicable law or agreed to in writing, software
11 # distributed under the License is distributed on an "AS IS" BASIS,
12 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 # See the License for the specific language governing permissions and
14 # limitations under the License.
15 # ============LICENSE_END=========================================================
17 # ECOMP is a trademark and service mark of AT&T Intellectual Property.
21 title: DCAE Inventory API
23 DCAE Inventory is a web service that provides the following:
25 1. Real-time data on all DCAE services and their components
26 2. Comprehensive details on available DCAE service types
28 email: dcae@lists.openecomp.org
30 description: DCAE Inventory
31 url: https://gerrit.onap.org/r/#/admin/projects/dcae/dcae-inventory
36 description: "Get a list of `DCAEServiceType` objects."
37 operationId: "dcaeServiceTypesGet"
40 - "application/vnd.dcae.inventory.v1+json"
43 - "application/vnd.dcae.inventory.v1+json"
47 description: "Filter by service type name"
52 description: "If set to true, query returns just the latest versions of DCAE\
53 \ service types. If set to false, then all versions are returned. Default\
60 description: "If set to true, query returns only *active* DCAE service types.\
61 \ If set to false, then all DCAE service types are returned. Default is\
68 description: "Filter by associated vnf type. No wildcards, matches are explicit.\
69 \ This field is treated case insensitive."
74 description: "Filter by assocaited service id. Instances with service id null\
75 \ or empty is always returned."
78 - name: "serviceLocation"
80 description: "Filter by associated service location. Instances with service\
81 \ location null or empty is always returned."
84 - name: "asdcServiceId"
86 description: "Filter by associated asdc design service id. Setting this to\
87 \ `NONE` will return instances that have asdc service id set to null"
90 - name: "asdcResourceId"
92 description: "Filter by associated asdc design resource id. Setting this to\
93 \ `NONE` will return instances that have asdc resource id set to null"
98 description: "Query resultset offset used for pagination (zero-based)"
104 description: "Filter by owner name"
107 - name: "application"
109 description: "Filter by application name"
114 description: "Filter by component name"
119 description: "List of `DCAEServiceType` objects"
121 $ref: "#/definitions/InlineResponse200"
124 description: "Inserts a new `DCAEServiceType` or updates an existing instance.\
125 \ Updates are only allowed iff there are no running DCAE services of the requested\
127 operationId: "dcaeServiceTypesTypeNamePut"
137 $ref: "#/definitions/DCAEServiceTypeRequest"
140 description: "Single `DCAEServiceType` object."
142 $ref: "#/definitions/DCAEServiceType"
144 description: "Bad request provided."
146 $ref: "#/definitions/ApiResponseMessage"
148 description: "Failed to update because there are still DCAE services of\
149 \ the requested type running."
151 $ref: "#/definitions/ApiResponseMessage"
152 /dcae-service-types/{typeId}:
155 description: "Get a `DCAEServiceType` object."
156 operationId: "dcaeServiceTypesTypeIdGet"
168 description: "Single `DCAEServiceType` object"
170 $ref: "#/definitions/DCAEServiceType"
172 description: "Resource not found"
174 $ref: "#/definitions/DCAEServiceType"
177 description: "Deactivates existing `DCAEServiceType` instances"
178 operationId: "dcaeServiceTypesTypeIdDelete"
180 - "application/vnd.dcae.inventory.v1+json"
183 - "application/vnd.dcae.inventory.v1+json"
192 description: "`DCAEServiceType` has been deactivated"
194 $ref: "#/definitions/ApiResponseMessage"
196 description: "`DCAEServiceType` already gone"
198 $ref: "#/definitions/ApiResponseMessage"
200 description: "`DCAEServiceType` not found"
202 $ref: "#/definitions/ApiResponseMessage"
206 description: "Get a list of `DCAEService` objects."
207 operationId: "dcaeServicesGet"
210 - "application/vnd.dcae.inventory.v1+json"
213 - "application/vnd.dcae.inventory.v1+json"
217 description: "DCAE service type name"
226 description: "Filter by associated vnf type. This field is treated case insensitive."
229 - name: "vnfLocation"
233 - name: "componentType"
235 description: "Use to filter by a specific DCAE service component type"
240 description: "Use to filter by DCAE services that have shareable components\
246 description: "Use to filter by created time"
251 description: "Query resultset offset used for pagination (zero-based)"
257 description: "List of `DCAEService` objects"
259 $ref: "#/definitions/InlineResponse2001"
260 /dcae-services-groupby/{propertyName}:
263 description: "Get a list of unique values for the given `propertyName`"
264 operationId: "dcaeServicesGroupbyPropertyNameGet"
267 - "application/vnd.dcae.inventory.v1+json"
270 - "application/vnd.dcae.inventory.v1+json"
272 - name: "propertyName"
274 description: "Property to find unique values. Restricted to `type`, `vnfType`,\
280 description: "List of unique property values"
282 $ref: "#/definitions/DCAEServiceGroupByResults"
283 /dcae-services/{serviceId}:
286 description: "Get a `DCAEService` object."
287 operationId: "dcaeServicesServiceIdGet"
290 - "application/vnd.dcae.inventory.v1+json"
293 - "application/vnd.dcae.inventory.v1+json"
301 description: "Single `DCAEService` object"
303 $ref: "#/definitions/DCAEService"
305 description: "DCAE service not found"
307 $ref: "#/definitions/ApiResponseMessage"
310 description: "Put a new or update an existing `DCAEService` object."
311 operationId: "dcaeServicesServiceIdPut"
314 - "application/vnd.dcae.inventory.v1+json"
317 - "application/vnd.dcae.inventory.v1+json"
327 $ref: "#/definitions/DCAEServiceRequest"
330 description: "Single `DCAEService` object"
332 $ref: "#/definitions/DCAEService"
334 description: "Bad request provided"
336 $ref: "#/definitions/ApiResponseMessage"
339 description: "Remove an existing `DCAEService` object."
340 operationId: "dcaeServicesServiceIdDelete"
342 - "application/vnd.dcae.inventory.v1+json"
346 - "application/vnd.dcae.inventory.v1+json"
354 description: "DCAE service has been removed"
356 description: "Unknown DCAE service"
358 $ref: "#/definitions/ApiResponseMessage"
361 summary: "Check for external dependencies for inventory."
362 description: "Get a list of `DCAEServiceType` objects."
363 operationId: "dcaeServiceTypesGet"
366 - "application/vnd.dcae.inventory.v1+json"
369 - "application/vnd.dcae.inventory.v1+json"
372 description: "List of `DCAEServiceType` objects"
374 $ref: "#/definitions/InlineResponse200"
378 description: "Basic test to check inventory internals, that process and web api are running."
383 description: "OK response to indicate success"
385 DCAEServiceTypeRequest:
388 - "blueprintTemplate"
401 description: "Descriptive name for this DCAE service type"
405 description: "Version number for this DCAE service type"
408 description: "String representation of a Cloudify blueprint with unbound variables"
411 description: "List of service ids that are used to associate with DCAE service\
412 \ type. DCAE service types with this propery as null or empty means them\
413 \ apply for every service id."
422 description: "List of service locations that are used to associate with DCAE\
423 \ service type. DCAE service types with this propery as null or empty means\
424 \ them apply for every service location."
429 description: "Id of service this DCAE service type is associated with. Value\
430 \ source is from ASDC's notification event's field `serviceInvariantUUID`."
433 description: "Id of vf/vnf instance this DCAE service type is associated with.\
434 \ Value source is from ASDC's notification event's field `resourceInvariantUUID`."
437 description: "URL to the ASDC service model"
438 DCAEServiceComponentRequest:
448 description: "The id format is unique to the source"
453 description: "Specifies the name of the underying source service that is responsible\
454 \ for this components"
460 description: "Used to determine if this component can be shared amongst different\
462 DCAEServiceGroupByResultsPropertyValues:
470 dcaeServiceQueryLink:
471 description: "Link.title is the DCAE service property value. Following this\
472 \ link will provide a list of DCAE services that all have this property\
474 $ref: "#/definitions/Link"
475 DCAEServiceGroupByResults:
480 description: "Property name of DCAE service that the group by operation was\
485 $ref: "#/definitions/DCAEServiceGroupByResultsPropertyValues"
490 $ref: "#/definitions/InlineResponse200Links"
497 $ref: "#/definitions/DCAEServiceType"
509 description: "Id of the associated DCAE service type"
512 description: "Id of the associated VNF that this service is monitoring"
515 description: "The type of the associated VNF that this service is monitoring"
518 description: "Location identifier of the associated VNF that this service\
522 description: "Reference to a Cloudify deployment"
525 description: "List of DCAE service components that this service is composed\
528 $ref: "#/definitions/DCAEServiceComponentRequest"
529 InlineResponse200Links:
533 $ref: "#/definitions/Link"
535 $ref: "#/definitions/Link"
536 description: "Pagination links"
553 description: "Link.title is serviceId"
554 $ref: "#/definitions/Link"
562 description: "Link.title is typeId"
563 $ref: "#/definitions/Link"
567 description: "Link.title is vnfId"
568 $ref: "#/definitions/Link"
573 description: "Location information of the associated VNF"
576 description: "Reference to a Cloudify deployment"
580 $ref: "#/definitions/DCAEServiceComponent"
585 $ref: "#/definitions/InlineResponse200Links"
592 $ref: "#/definitions/DCAEService"
606 $ref: "#/definitions/UriBuilder"
613 additionalProperties:
617 DCAEServiceComponent:
630 description: "The id format is unique to the source"
632 description: "Link to the underlying resource of this component"
633 $ref: "#/definitions/Link"
644 description: "Specifies the name of the underying source service that is responsible\
645 \ for this components"
653 description: "Location information of the component"
657 description: "Used to determine if this component can be shared amongst different\
662 - "blueprintTemplate"
678 description: "Descriptive name for this DCAE service type"
682 description: "Version number for this DCAE service type"
685 description: "String representation of a Cloudify blueprint with unbound variables"
688 description: "List of service ids that are used to associate with DCAE service\
689 \ type. DCAE service types with this propery as null or empty means them\
690 \ apply for every service id."
699 description: "List of service locations that are used to associate with DCAE\
700 \ service type. DCAE service types with this propery as null or empty means\
701 \ them apply for every service location."
706 description: "Id of service this DCAE service type is associated with. Value\
707 \ source is from ASDC's notification event's field `serviceInvariantUUID`."
710 description: "Id of vf/vnf instance this DCAE service type is associated with.\
711 \ Value source is from ASDC's notification event's field `resourceInvariantUUID`."
714 description: "URL to the ASDC service model"
717 description: "Unique identifier for this DCAE service type"
719 description: "Link to self where the Link.title is typeName"
720 $ref: "#/definitions/Link"
724 description: "Created timestamp for this DCAE service type in epoch time"
728 description: "Deactivated timestamp for this DCAE service type in epoch time"