There are various mechanisms available to invoke CloudBees CD/RO APIs to create models, run objects, modify properties, and so on.
-
REST -
https://sda.<instanceName>.cb-demos.io/rest/doc/v1.0/
-
ectool
-
ec-perl
-
ec-groovy
-
DSL (both Declarative and Scripted)
-
$[/javascript api.<apiName>({fieldName: “value”, …})]
-
$[/increment /path/to/property <optional increment value>]
(updates and retrieves a property)
API command naming conventions
Name | Example |
---|---|
|
|
|
|
|
|
|
|
|
|
|
|
DSL has access to all the API commands plus direct access to objects.
For example, the procedure
DSL command can be used to create and modify a procedure. It can also be used as a closure to encapsulate steps and other subobjects.