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: "List of `DCAEServiceType` objects"
106 $ref: "#/definitions/InlineResponse200"
109 description: "Inserts a new `DCAEServiceType` or updates an existing instance.\
110 \ Updates are only allowed iff there are no running DCAE services of the requested\
112 operationId: "dcaeServiceTypesTypeNamePut"
122 $ref: "#/definitions/DCAEServiceTypeRequest"
125 description: "Single `DCAEServiceType` object."
127 $ref: "#/definitions/DCAEServiceType"
129 description: "Bad request provided."
131 $ref: "#/definitions/ApiResponseMessage"
133 description: "Failed to update because there are still DCAE services of\
134 \ the requested type running."
136 $ref: "#/definitions/ApiResponseMessage"
137 /dcae-service-types/{typeId}:
140 description: "Get a `DCAEServiceType` object."
141 operationId: "dcaeServiceTypesTypeIdGet"
153 description: "Single `DCAEServiceType` object"
155 $ref: "#/definitions/DCAEServiceType"
157 description: "Resource not found"
159 $ref: "#/definitions/DCAEServiceType"
162 description: "Deactivates existing `DCAEServiceType` instances"
163 operationId: "dcaeServiceTypesTypeIdDelete"
165 - "application/vnd.dcae.inventory.v1+json"
168 - "application/vnd.dcae.inventory.v1+json"
177 description: "`DCAEServiceType` has been deactivated"
179 $ref: "#/definitions/ApiResponseMessage"
181 description: "`DCAEServiceType` already gone"
183 $ref: "#/definitions/ApiResponseMessage"
185 description: "`DCAEServiceType` not found"
187 $ref: "#/definitions/ApiResponseMessage"
191 description: "Get a list of `DCAEService` objects."
192 operationId: "dcaeServicesGet"
195 - "application/vnd.dcae.inventory.v1+json"
198 - "application/vnd.dcae.inventory.v1+json"
202 description: "DCAE service type name"
211 description: "Filter by associated vnf type. This field is treated case insensitive."
214 - name: "vnfLocation"
218 - name: "componentType"
220 description: "Use to filter by a specific DCAE service component type"
225 description: "Use to filter by DCAE services that have shareable components\
231 description: "Use to filter by created time"
236 description: "Query resultset offset used for pagination (zero-based)"
242 description: "List of `DCAEService` objects"
244 $ref: "#/definitions/InlineResponse2001"
246 description: "Bad response from DCAE controller"
248 $ref: "#/definitions/ApiResponseMessage"
250 description: "Failed to connect with DCAE controller"
252 $ref: "#/definitions/ApiResponseMessage"
253 /dcae-services-groupby/{propertyName}:
256 description: "Get a list of unique values for the given `propertyName`"
257 operationId: "dcaeServicesGroupbyPropertyNameGet"
260 - "application/vnd.dcae.inventory.v1+json"
263 - "application/vnd.dcae.inventory.v1+json"
265 - name: "propertyName"
267 description: "Property to find unique values. Restricted to `type`, `vnfType`,\
273 description: "List of unique property values"
275 $ref: "#/definitions/DCAEServiceGroupByResults"
276 /dcae-services/{serviceId}:
279 description: "Get a `DCAEService` object."
280 operationId: "dcaeServicesServiceIdGet"
283 - "application/vnd.dcae.inventory.v1+json"
286 - "application/vnd.dcae.inventory.v1+json"
294 description: "Single `DCAEService` object"
296 $ref: "#/definitions/DCAEService"
298 description: "Bad response from DCAE controller"
300 $ref: "#/definitions/ApiResponseMessage"
302 description: "DCAE service not found"
304 $ref: "#/definitions/ApiResponseMessage"
306 description: "Failed to connect with DCAE controller"
308 $ref: "#/definitions/ApiResponseMessage"
311 description: "Put a new or update an existing `DCAEService` object."
312 operationId: "dcaeServicesServiceIdPut"
315 - "application/vnd.dcae.inventory.v1+json"
318 - "application/vnd.dcae.inventory.v1+json"
328 $ref: "#/definitions/DCAEServiceRequest"
331 description: "Single `DCAEService` object"
333 $ref: "#/definitions/DCAEService"
335 description: "Bad request provided"
337 $ref: "#/definitions/ApiResponseMessage"
340 description: "Remove an existing `DCAEService` object."
341 operationId: "dcaeServicesServiceIdDelete"
343 - "application/vnd.dcae.inventory.v1+json"
347 - "application/vnd.dcae.inventory.v1+json"
355 description: "DCAE service has been removed"
357 description: "Unknown DCAE service"
359 $ref: "#/definitions/ApiResponseMessage"
361 DCAEServiceTypeRequest:
364 - "blueprintTemplate"
373 description: "Descriptive name for this DCAE service type"
377 description: "Version number for this DCAE service type"
380 description: "String representation of a Cloudify blueprint with unbound variables"
383 description: "List of service ids that are used to associate with DCAE service\
384 \ type. DCAE service types with this propery as null or empty means them\
385 \ apply for every service id."
394 description: "List of service locations that are used to associate with DCAE\
395 \ service type. DCAE service types with this propery as null or empty means\
396 \ them apply for every service location."
401 description: "Id of service this DCAE service type is associated with. Value\
402 \ source is from ASDC's notification event's field `serviceInvariantUUID`."
405 description: "Id of vf/vnf instance this DCAE service type is associated with.\
406 \ Value source is from ASDC's notification event's field `resourceInvariantUUID`."
409 description: "URL to the ASDC service model"
410 DCAEServiceComponentRequest:
420 description: "The id format is unique to the source"
425 description: "Specifies the name of the underying source service that is responsible\
426 \ for this components"
433 description: "Used to determine if this component can be shared amongst different\
435 DCAEServiceGroupByResultsPropertyValues:
443 dcaeServiceQueryLink:
444 description: "Link.title is the DCAE service property value. Following this\
445 \ link will provide a list of DCAE services that all have this property\
447 $ref: "#/definitions/Link"
448 DCAEServiceGroupByResults:
453 description: "Property name of DCAE service that the group by operation was\
458 $ref: "#/definitions/DCAEServiceGroupByResultsPropertyValues"
463 $ref: "#/definitions/InlineResponse200Links"
470 $ref: "#/definitions/DCAEServiceType"
482 description: "Id of the associated DCAE service type"
485 description: "Id of the associated VNF that this service is monitoring"
488 description: "The type of the associated VNF that this service is monitoring"
491 description: "Location identifier of the associated VNF that this service\
495 description: "Reference to a Cloudify deployment"
498 description: "List of DCAE service components that this service is composed\
501 $ref: "#/definitions/DCAEServiceComponentRequest"
502 InlineResponse200Links:
506 $ref: "#/definitions/Link"
508 $ref: "#/definitions/Link"
509 description: "Pagination links"
526 description: "Link.title is serviceId"
527 $ref: "#/definitions/Link"
535 description: "Link.title is typeId"
536 $ref: "#/definitions/Link"
540 description: "Link.title is vnfId"
541 $ref: "#/definitions/Link"
546 description: "Location information of the associated VNF"
549 description: "Reference to a Cloudify deployment"
553 $ref: "#/definitions/DCAEServiceComponent"
558 $ref: "#/definitions/InlineResponse200Links"
565 $ref: "#/definitions/DCAEService"
579 $ref: "#/definitions/UriBuilder"
586 additionalProperties:
590 DCAEServiceComponent:
603 description: "The id format is unique to the source"
605 description: "Link to the underlying resource of this component"
606 $ref: "#/definitions/Link"
617 description: "Specifies the name of the underying source service that is responsible\
618 \ for this components"
626 description: "Location information of the component"
630 description: "Used to determine if this component can be shared amongst different\
635 - "blueprintTemplate"
647 description: "Descriptive name for this DCAE service type"
651 description: "Version number for this DCAE service type"
654 description: "String representation of a Cloudify blueprint with unbound variables"
657 description: "List of service ids that are used to associate with DCAE service\
658 \ type. DCAE service types with this propery as null or empty means them\
659 \ apply for every service id."
668 description: "List of service locations that are used to associate with DCAE\
669 \ service type. DCAE service types with this propery as null or empty means\
670 \ them apply for every service location."
675 description: "Id of service this DCAE service type is associated with. Value\
676 \ source is from ASDC's notification event's field `serviceInvariantUUID`."
679 description: "Id of vf/vnf instance this DCAE service type is associated with.\
680 \ Value source is from ASDC's notification event's field `resourceInvariantUUID`."
683 description: "URL to the ASDC service model"
686 description: "Unique identifier for this DCAE service type"
688 description: "Link to self where the Link.title is typeName"
689 $ref: "#/definitions/Link"
693 description: "Created timestamp for this DCAE service type in epoch time"
697 description: "Deactivated timestamp for this DCAE service type in epoch time"