AppWorx, Dollar Universe and Sysload Community

 View Only
Expand all | Collapse all

Create/Duplicate CDA Application

  • 1.  Create/Duplicate CDA Application

    Posted Jun 30, 2020 11:24 AM
    Hi everyone,

    id like to create application programmaticly(not by clicking the awi interface) using duplicate endpoint in api, or by any other way. Does anybody have an experience with such an activity?

    I created template application, which is duplicatable, but in result i have to recreate package states, because i have to change the deployment profiles, which point to application-specific environments.

    Thank you for any advice!
    Jacob.


  • 2.  RE: Create/Duplicate CDA Application

    Broadcom Employee
    Posted Jul 01, 2020 02:45 AM
    Hi ​Jakub,

    did you already have a look at CD Code?

    Announcement: https://www.broadcom.com/sw-tech-blogs/automation/Automic_As-Code-Features
    Video: https://www.youtube.com/watch?v=01N9mZdPZAg
    Docu: https://docs.automic.com/documentation/webhelp/english/ALL/components/CDC/latest/User%20Guide/Default.htm
    ​Marketplace: https://marketplace.automic.com/marketplace/browse/continuous-delivery-code

    ------------------------------
    Engineering Program Manager
    Broadcom
    ------------------------------



  • 3.  RE: Create/Duplicate CDA Application

    Posted Jul 01, 2020 03:24 AM
    Hi Michael,

    thank you! this seems to be exactly, what i was looking for. 

    This new solution also creates new questions: 
    • Will it be possible to set package states for programmatically created applications? (this is not possible using REST API in 12.2)
    • What about creating application-related Environments objects (we are using naming convension such as <appplication_name>_<env_name> eg. myapp_prod)
    • Is it backly compatible with CDA 12.2, or have we to upgrade necessary? 

    Thank you. :)
    Jacob


  • 4.  RE: Create/Duplicate CDA Application
    Best Answer

    Broadcom Employee
    Posted Jul 01, 2020 11:56 AM
    Edited by Christopher Hackett Jul 07, 2020 05:02 PM

    Hi Jakub,

    1) As you can see in the documentation the following objects can be created/modified/deleted using CDC: Applications, (nested) Components, Profiles, Workflows, Deployment Packages, Artifacts, Artifact Sources, Deployment Targets, Login Objects, Folders and CDA users/groups incl. permissions and authorizations.
    This pages describes also how to handle Package states: https://docs.automic.com/documentation/webhelp/english/ALL/components/CDC/latest/User%20Guide/Default.htm#CDC/CDC_WW_DeploymentPackage.htm
    2) You can name your environments as you suggested. The names must fulfill CDA's naming convention. In Groovy there should be no problem to define such strings for Environment names.
    3) In order to use all these features CDA v12.3.3 (or later) is required. https://downloads.automic.com/jart/prj3/dlc/main.jart?rel=en&reserve-mode=active&content-id=1441124704571&action=get&release_delivery_id=1593150471411 



    ------------------------------
    Engineering Program Manager
    Broadcom
    ------------------------------



  • 5.  RE: Create/Duplicate CDA Application

    Posted Jul 06, 2020 10:13 AM
    Michael thank you! You helped me a lot. 
    We will upgrade to 12.3.3 and try to automate application creation using Automic as a code.


  • 6.  RE: Create/Duplicate CDA Application

    Posted Aug 20, 2020 05:45 PM
    Edited by Walter Xavier Bermudez Tamayo Aug 20, 2020 06:04 PM
    Hi @Michael Dolinek so in the third point you said that the CDA v12.3.3 is needed. After upgrading then we would see this URI? /WebUI/api/data/v1/cd_codes/

    Because I have the CDA 12.3.1 and none of these API methods contains cd_codes in the path.

    As you can see in the swagger doc.

    https://docs.automic.com/documentation/webhelp/english/all/components/DOCU/12.3/REST%20API/Continuous.Delivery.Automation/index.html?overrideUrls=../Continuous.Delivery.Automation/swagger.json,../Automation.Engine/swagger.json,../Analytics/swagger.json,../Infrastructure.Manager/swagger.json#/





  • 7.  RE: Create/Duplicate CDA Application

    Posted Aug 20, 2020 06:01 PM
    Hi Michael so in the third point you said that the CDA v12.3.3 is needed. After upgrading then we would see this URI? /WebUI/api/data/v1/cd_codes/

    Because I have the CDA 12.3.1 and none of these API methods contains cd_codes in the path.

    As you can see in the swagger doc.

    https://docs.automic.com/documentation/webhelp/english/all/components/DOCU/12.3/REST%20API/Continuous.Delivery.Automation/index.html?overrideUrls=../Continuous.Delivery.Automation/swagger.json,../Automation.Engine/swagger.json,../Analytics/swagger.json,../Infrastructure.Manager/swagger.json#/



  • 8.  RE: Create/Duplicate CDA Application

    Broadcom Employee
    Posted Aug 21, 2020 05:52 AM
    Hi Walter,

    it is correct that CDC (current version 1.1) works only with CDA v12.3.3 (or later)​.

    The required REST-endpoints for CDC will not be published as they are subject to change without any notice. Please use for your integrations only the CDC library (latest version) and the official published REST-endpoints of CDA & AE in the latest version.
    • https://docs.automic.com/documentation/webhelp/english/all/components/DOCU/12.3/REST%20API/Continuous.Delivery.Automation/index.html?overrideUrls=../Continuous.Delivery.Automation/swagger.json,../Automation.Engine/swagger.json,../Analytics/swagger.json,../Infrastructure.Manager/swagger.json
    • https://docs.automic.com/documentation/WEBHELP/English/AA/12.3/DOCU/12.3/REST+API


    ------------------------------
    Engineering Program Manager
    Broadcom
    ------------------------------



  • 9.  RE: Create/Duplicate CDA Application

    Posted Aug 21, 2020 08:54 AM
    hi Michael tanks for the answer, it would have been good if the documentation saids that, I spent two days trying to use the library, finally I did a debug and did use wireshark to have the foundations to make the question :(.

    I will update the components.



  • 10.  RE: Create/Duplicate CDA Application

    Broadcom Employee
    Posted Aug 21, 2020 09:26 AM
    Please have a look at the Compatibility Matrix for CDC
    https://docs.automic.com/tools/compatibility_matrix?compatibility-mode=component&offering_version_id=components&lifecycle_entity_id=1569478514289

    Release Manager 10.0.3 is included in CDA 12.3.3.


    ------------------------------
    Engineering Program Manager
    Broadcom
    ------------------------------