Bug 1226456

Summary: [RFE][api] Add support for creation of Catalog Item/Bundle (service_templates)
Product: Red Hat CloudForms Management Engine Reporter: Ramesh A <rananda>
Component: APIAssignee: Jillian Tullo <jtullo>
Status: CLOSED ERRATA QA Contact: Martin Kourim <mkourim>
Severity: medium Docs Contact:
Priority: high    
Version: 5.4.0CC: jhardy, obarenbo, simaishi, tachoi
Target Milestone: GAKeywords: FutureFeature
Target Release: 5.8.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: service:catalog:rest
Fixed In Version: 5.8.0.2 Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-05-31 14:19:20 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1244937    
Bug Blocks:    

Description Ramesh A 2015-05-29 20:16:23 UTC
Description of problem:
Add ability to create new service templates using the Rest API

Version-Release number of selected component (if applicable):
5.4.0.2.20150519003830_673f996

How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 1 Ramesh A 2015-05-29 20:16:42 UTC
Git hub link - https://github.com/ManageIQ/manageiq/issues/2123

Comment 5 Jillian Tullo 2017-02-27 19:19:24 UTC
changing status to POST as https://github.com/ManageIQ/manageiq/pull/12594 was merged

Comment 6 Martin Kourim 2017-05-02 14:15:56 UTC
Verified with
POST /api/service_templates
{
    "name": "My Atomic Service Template",
    "service_type": "atomic",
    "prov_type": "vmware",
    "display": false,
    "config_info": {
      "service_template_request": true,
      "provision_type": ["vmware", "VMware"],
      "customize_enabled": ["enabled"],
      "miq_request_dialog_name": "miq_provision_vmware_dialogs_template",
      "catalog_id": "3",
      "st_prov_type": "vmware",
      "service_type": "atomic",
      "dialog_id": "4",
      "placement_auto": [true, 1],
      "number_of_vms": [1, "1"],
      "src_vm_id": [21, "damnSmallLinux"],
      "vm_name": "test_rest_aRZlFIJa3ZAAA",
      "schedule_type": ["immediately", "Immediately on Approval"],
      "src_ems_id": [1, "vSphere 6 (nested)"],
      "provision": {
        "fqname": "/Service/Provisioning/StateMachines/ServiceProvision_Template/CatalogItemInitialization",
        "dialog_id": 4
      },
      "retirement": {
        "fqname": "/Service/Retirement/StateMachines/ServiceRetirement/Default",
        "dialog_id": 4
      }
    }
}

Comment 8 errata-xmlrpc 2017-05-31 14:19:20 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2017:1367