Automic Community

Expand all | Collapse all

Create/Duplicate CDA Application

  • 1.  Create/Duplicate CDA Application

    Posted 3 days ago
    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

    Posted 2 days ago
    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 2 days ago
    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

    Posted 2 days ago
    Edited by Michael Dolinek 2 days ago

    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
    ------------------------------