How to programmatically add a server to a Deployment Zone?

Using automatic scripts, is it possible to associate a server to a Deployment Zone? If so, how?

I know that this can be done manually via Service Center, but I'm looking for an unattended solution that works programmatically, without requiring human intervention.

What I've tried:

A colleague showed me that the deploymentzone-server-associations are stored in the OSSYS_PLATFORMCONFIG table in the database.

We've tested what happens if we add a server-id to the VALUE for ServerIdsToUse. This seems to work just fine. In Service Center, the new association shows up, and applications in the respective DZ get synced to the new server.

This is good enough for me. Problem solved. :)


SELECT INSTANCEKEY, PARAMETERNAME, VALUE
FROM OSSYS_PLATFORMCONFIG
WHERE NAME = 'Application Deployment Configuration'
  AND PARAMETERNAME IN ('Name', 'ServerIdsToUse')

INSTANCEKEY                           PARAMETERNAME   VALUE
90397e4c-02ad-4659-8b92-fbd5440aaf03  Name            Global
90397e4c-02ad-4659-8b92-fbd5440aaf03  ServerIdsToUse  *
d9d2ea04-af9d-454d-a3ab-0568917e2397  Name            My DZ
d9d2ea04-af9d-454d-a3ab-0568917e2397  ServerIdsToUse  3,4,5,6,9
mvp_badge
MVP

Hi Oscar,

It seems you already answered your own question. The current LifeTime API does not support that.

You could add it as an idea to www.outsystems.com/ideas

Regards,

Daniel

A colleague showed me that the deploymentzone-server-associations are stored in the OSSYS_PLATFORMCONFIG table in the database.

We've tested what happens if we add a server-id to the VALUE for ServerIdsToUse. This seems to work just fine. In Service Center, the new association shows up, and applications in the respective DZ get synced to the new server.

This is good enough for me. Problem solved. :)


SELECT INSTANCEKEY, PARAMETERNAME, VALUE
FROM OSSYS_PLATFORMCONFIG
WHERE NAME = 'Application Deployment Configuration'
  AND PARAMETERNAME IN ('Name', 'ServerIdsToUse')

INSTANCEKEY                           PARAMETERNAME   VALUE
90397e4c-02ad-4659-8b92-fbd5440aaf03  Name            Global
90397e4c-02ad-4659-8b92-fbd5440aaf03  ServerIdsToUse  *
d9d2ea04-af9d-454d-a3ab-0568917e2397  Name            My DZ
d9d2ea04-af9d-454d-a3ab-0568917e2397  ServerIdsToUse  3,4,5,6,9
Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.