Digital.ai APIs and client tools

Home

ctm-add-project-source 

Adds a "Changes from" source to a Project. Will also mark a Project type as "Source". > Returns a CTM endpoint

REQUIRED PARAMETERS
    -p,--project             Value can be either a Project ID or Name.
    -o,--origin              Name of VCS to add to Project.
OPTIONAL PARAMETERS
    -s,--secret              Webhook secret for GitHub.

Examples

ctm-add-project-source -p "ProjectName" -o "github"

Associated API: add_project_source

Given a Project and an Origin this will mark a Project as a "Source" Project, mark the Origin as the Projects Changes from, and will return the webhook.

Required Arguments:

Optional Arguments:

Returns: Continuum Endpoint on success, errors otherwise.

ctm-add-team-user 

Add the specified User to a Team.

REQUIRED PARAMETERS
    -t,--team                Name or ID of the Team to change.
    -u,--user                Name or ID of the User to add.
    -r,--team_role           Name of the Role for new user to adopt on
                                  new team. Please specify either "Team
                                  Administrator", "Developer", or "User".

Examples

ctm-add-team-user -t "dev team" -u "bob" -r "User"

Associated API: add_team_user

Add a User to a Team.

Only a 'Team Administrator' can manage Team membership. If the credentials used for this API call are not a Team Administrator for the specified Team, the call will not succeed.

Required Arguments:

ctm-cancel-pipelineinstance 

Cancels a processing Pipeline Instance.

Sets all Processing or Pending statuses to 'Canceled'.

Returns success or failure.

REQUIRED PARAMETERS
    -i,--pi                  Name or ID of a Pipeline Instance.

Associated API: cancel_pipelineinstance

Cancel a running Pipeline Instance.

All Pending or Processing statuses will be set to Canceled.

Required Arguments:

Returns: 'true' on success, errors on failure.

ctm-complete-activity 

Given a Package Name, Revision (or Full Version), and Activity Name - will complete that Activity with either 'success' or 'failure'.

Returns: success on success, errors otherwise.

REQUIRED PARAMETERS
    -p,--package             Name of Package
    -h,--phase               Phase containing the Activity/Control to
                                  override..
    -a,--activity            Name of Activity
OPTIONAL PARAMETERS
    -n,--notes               Notes to be placed on the Activity.
    -r,--revision            Revision of Package containing the
                                  Control. (Takes precedence over
                                  "fullversion" if both are provided.)
    -f,--full_version        Full Version label of the Package
                                  containing the Control.
    --forcewith              Force the completion.  (Will mark ALL
                                  Controls with the provided value - must be
                                  `pass` or `fail`.)
    --failure                Mark the Activity as a Failure. (Will
                                  default to `success` if omitted.)
    -t,--completion_time     Mark the Activity complete at a specified
                                  time.
    -z,--timezone            Optional modifier for "completion_time".

Associated API: complete_activity

Given a Phase, Package Name, Revision (or Full Version), and Activity Name - will complete that Activity with either 'success' or 'failure'.

Required Arguments:

Optional Arguments:

Returns: success on success, errors otherwise.

ctm-configure-plugin 

Configures the details of a specific plugin from a JSON document.

WARNING: this command will OVERWRITE the existing plugin configuration!

USE WITH CAUTION.


REQUIRED PARAMETERS
    -b,--backupfile          A JSON document formatted as a single
                                  Plugin Configuration.

Associated API: configure_plugin

Configure a specific Flow Plugin.

Required Arguments:

The following keys will be encrypted if provided: token, password.

NOTE: This is a destructive operation! Configuring a plugin's instances will replace all previous configured instances for the given team. If no team is specified, all global instances of the plugin will be replaced with the new configuration instead. If you wish to reconfigure any one particular instance of the plugin, see 'configure_plugin_instance'.

Returns: success or error.

ctm-configure-plugins 

Configures the details of multiple plugins from a JSON document.

WARNING: this command will OVERWRITE any existing plugin configuration!

USE WITH CAUTION.


REQUIRED PARAMETERS
    -b,--backupfile          A JSON document formatted as a list of
                                  Plugin Configurations.

Associated API: configure_plugins

Configures a Flow Plugin.

WARNING: at this time, any plugins in the input JSON will be OVERWRITTEN!

USE WITH CAUTION.

Required Arguments:

A valid plugin configuration will always contain the following:

Returns: success or error.

ctm-copy-project 

Copy a Project object.

REQUIRED PARAMETERS
    -p,--project             Value can be either a Project ID or Name.
    -n,--newname             A name for the new Project.

Examples

ctm-copy-project -p "ProjectName"

Associated API: copy_project

Copy a Project.

Required Arguments:

Returns: 'true' on success, errors on failure.

ctm-create-asset 

Creates a new fixed address Asset.

REQUIRED PARAMETERS
    -n,--name                A name for the new Asset.
OPTIONAL PARAMETERS
    -s,--status              Status, either "Active" or "Inactive".
                                  ("Active" if omitted.)
    -a,--address             Network address of the Asset.
    -t,--port                Service port of the Asset.
    -d,--db_name             A database name.
    -u,--user                A User ID.
    -p,--password            A Password.
    -c,--shared_credential   A Shared Credential.
    --conn_string            A full connection string. (Not typical.)

Examples

ctm-create-asset -n "Test 123" -s "Active" -a "10.10.2.2" -d "test02" -t "1433" -u "appuser" -p "passw0rd"

Associated API: create_asset

Creates an Asset.

Required Arguments:

Optional Arguments:

Regarding Credentials:

Credentials are optional on an Asset, however if provided there are rules. Explicit details can be associated with only this Asset, or a Shared Credential can be specified.

The minimum required to create a LOCAL set of credentials on this Asset are:

To specify a Shared Credential, provide the shared_credential argument, which is the name of an existing Credential.

Returns: An Asset Object.

ctm-create-credential 

Creates a new set of Shared Credentials that can be used to log into other systems.

REQUIRED PARAMETERS
    -n,--name                A name for the new Credential, must be
                                  unique.
    -d,--description         Credential description or long name.
    -u,--username            The user/login name.
    -p,--password            The password/privatekey.
OPTIONAL PARAMETERS
    -o,--domain              An optional domain name for the
                                  credential.
    -v,--privileged          Additional password required to put
                                  certain Cisco IOS devices into
                                  "privileged" mode.

Examples

ctm-create-credential -n "adminuser" -d "Administrator User" -u "root" -p "passw0rd"

Associated API: create_credential

Creates a new Shared Credential.

Only a 'Developer' can create Credentials.

Required Arguments:

Optional Arguments:

Returns: A Credential Object.

ctm-create-package 

Creates a Package Definition.

Returns a Package Definition Object.

REQUIRED PARAMETERS
    -n,--name                A name for the Package Definition.
    -t,--team                Team which the Package Definition should
                                  belong to
OPTIONAL PARAMETERS
    -d,--description         A description for the Package Definition.
    -p,--progression         Value can be either a Progression ID or
                                  Name.

Associated API: create_package

Create a Package Definition.

Required Arguments:

Optional Arguments:

Returns: A Package Definition Object.

ctm-create-pipeline 

Creates a Pipeline definition from a JSON document.

Returns a Pipeline Object.

REQUIRED PARAMETERS
    -t,--templatefile        A JSON document formatted as a CSK
                                  Pipeline definition.

Associated API: create_pipeline

Create a Pipeline Definition.

Required Arguments:

Returns: A Pipeline Definition Object.

ctm-create-progression 

Creates a Progression.

Returns a Progression Object.

REQUIRED PARAMETERS
    -n,--name                A name for the Progression.
OPTIONAL PARAMETERS
    -d,--description         A description for the Progression.

Associated API: create_progression

Create a Progression Definition.

Required Arguments:

Optional Arguments:

Returns: A Progression Definition Object.

ctm-create-project 

Creates a Project.

Returns a Project Object.

REQUIRED PARAMETERS
    -n,--name                A name for the Project.
    -t,--team                Team which the project should belong to
OPTIONAL PARAMETERS
    -d,--description         A description for the Project.

Associated API: create_project

Create a Project.

Required Arguments:

Returns: A Project Object.

ctm-create-tag 

Creates a new Tag to be used to associate objects with one another.

REQUIRED PARAMETERS
    -n,--name                The name of the new Tag.  (AlphaNumeric
                                  ONLY. Cannot contain spaces, punctuation
                                  or special characters.)
OPTIONAL PARAMETERS
    -d,--description         Tag description.

Examples

ctm-create-tag -n "staging01" -d "staging environment 1"

Associated API: create_tag

Creates a new Tag for grouping Users.

Only users with the following roles can create tags: ["System Administrator", "Team Administrator"].

Required Arguments:

Optional Arguments:

Returns: The new Tag Object if successful, error message on failure.

ctm-create-task 

Creates a new blank Task object.

REQUIRED PARAMETERS
    -n,--name                A name for the new Task.
    -t,--team                Team which the task belongs to
OPTIONAL PARAMETERS
    -d,--desc                A description of the new Task.
    -c,--code                A code for the new Task.

Examples

ctm-create-task -n "mytask" -d "This is a sample task" -c "test2001" -t "myteam"

Associated API: create_task

Create a new Task.

Required Arguments:

Optional Arguments:

Returns: A Task Object.

ctm-create-team 

Creates a new Team.

REQUIRED PARAMETERS
    -n,--name                A name for the new Team.
OPTIONAL PARAMETERS
    -d,--description         A description of the new Team

Examples

ctm-create-team -n "dev"

Associated API: create_team

Create a new team

Only users with the following roles can create teams: ["System Administrator", "Team Administrator"]. If the credentials used for this API call do not have the required permission, the call will not succeed.

Required Arguments:

Optional Arguments:

ctm-create-user 

Creates a new User, Authentication type will be set to SSO if SSO is enabled in this instance

REQUIRED PARAMETERS
    -u,--user                A login name for the user.
    -n,--name                The full name of the user.
    -t,--teams               A list of teams the user belongs to, along
                                  with a role for each team. Teams and roles
                                  are separated by a colon. Team/role pairs
                                  are separated by commas.
    -r,--role                The users role.  (Valid values:
                                  Administrator, Developer, User)
                                  Valid Values: Administrator|Developer|User
OPTIONAL PARAMETERS
    -p,--password            Password for the user. If "password" is
                                  not provided, a random password will be
                                  generated.
    -e,--email               Email address for the user.  Required if
                                  "password" is omitted.
    -a,--authtype            "local" or "ldap".  Default is "local" if
                                  omitted.
                                  Valid Values: local|ldap
    -f,--forcechange         Require user to change password. Default
                                  is "true" (1) if omitted. (Valid values: 0
                                  or 1).
                                  Valid Values: 0|1
    -s,--status              Status of the new account. Default is
                                  "enabled" if omitted. (Valid values:
                                  enabled, disabled, locked)
                                  Valid Values: enabled|disabled|locked
    -x,--expires             Expiration date for this account.  Must be
                                  in mm/dd/yyyy format.
    -g,--groups              A list of groups the user belongs to.
                                  Group names cannot contain spaces. Comma
                                  delimited list.
    -c,--contributors        A list of contributors the user is mapped
                                  to. Contributors cannot contain spaces.
                                  Comma delimited list.
    --get_token              Include a login token in the response.
                                  (Used for passthru login.)

Examples

ctm-create-user -u "dave.thomas" -n "Dave Thomas" -r "User" -t "dev" -e "dave.thomas@example.com" -p "passw0rd" -a "local" -s "enabled"

Associated API: create_user

Creates a new user account.

Only users with the role "System Administrator" can create other users. If the credentials used for this API call do not have the proper permission, the call will not succeed.

Required Arguments:

Optional Arguments:

Returns: A User Object.

ctm-create-webhook 

Creates a new Outbound Webhook configuration.

REQUIRED PARAMETERS
    -n,--name                The name of the Webhook
OPTIONAL PARAMETERS
    -d,--destinationurl      URL of the REST API endpoint. ex:
                                  http://my.application.net/api/send_here

Examples

ctm-create-webhook -n "MyApplication" -u "http://my.application.net/api/send_here"

Associated API: create_webhook

Creates a new outbound Webhook configuration.

Only users with the role "Shared Asset Manager" can create webhooks.

Required Arguments:

Returns: Success message if successful, error message on failure.

ctm-delete-cloud-keypair 

Removes a key pair (ssh private key) from a Cloud endpoint definition.

REQUIRED PARAMETERS
    -c,--cloud               The ID or Name of a Cloud.
    -n,--name                A name for the Key Pair.

Examples

ctm-delete-cloud-keypair -c "us-east-1" -n "privatekey001"

Associated API: delete_cloud_keypair

Removes a Key Pair from a Cloud.

Required Arguments:

Returns: A list of Cloud KeyPair Objects.

ctm-delete-credential 

Deletes a Shared Credential.

REQUIRED PARAMETERS
    -c,--credential          ID or Name of the Credential.

Examples

ctm-delete-credential -c "adminuser"

Associated API: delete_credential

Removes a Shared Credential.

Required Arguments:

Returns: Success message if successful, error message on failure.

ctm-delete-package 

Delete a Package Definition.

REQUIRED PARAMETERS
    -p,--package             Value can be either a Package ID or Name.
OPTIONAL PARAMETERS
    --preserve               If provided, will still delete all data,
                                  but the actual Package definition will be
                                  preserved.

Examples

ctm-delete-package -p "Package Name"

Associated API: delete_package

Delete a Package Definition. Destructive of history, and there is no undo.

Required Arguments:

Optional Arguments:

Returns: 'true' on success, errors on failure.

ctm-delete-pipeline 

Delete a Pipeline Definition.

REQUIRED PARAMETERS
    -p,--pipeline            Value can be either a Definition ID or
                                  Name.

Examples

ctm-delete-pipeline -p "PipelineName"

Associated API: delete_pipeline

Permanently delete a Pipeline Definition.

Required Arguments:

Returns: 'true' on success, errors on failure.

ctm-delete-pipelinegroup 

Permanently deletes a Pipeline Instance Group.

Requires the '_id' of the Pipeline Instance Group.

Returns success or failure.

REQUIRED PARAMETERS
    -i,--pg                  ID of a Pipeline Instance Group.

Associated API: delete_pipelinegroup

Permanently delete a Pipeline Instance Group.

NOTE: at the moment, requires the '_id' of the Pipeline Instance Group.

Required Arguments:

Returns: 'true' on success, errors on failure.

ctm-delete-pipelineinstance 

Permanently deletes a Pipeline Instance.

Returns success or failure.

REQUIRED PARAMETERS
    -i,--pi                  Name or ID of a Pipeline Instance.

Associated API: delete_pipelineinstance

Permanently delete a Pipeline Instance.

Required Arguments:

Returns: 'true' on success, errors on failure.

ctm-delete-plan 

Deletes a specific queued execution plan for a scheduled task.

REQUIRED PARAMETERS
    -p,--plan_id             The integer ID of the Plan to delete.

Examples

ctm-delete-plan -p 55

Associated API: delete_plan

Deletes a specific queued execution Plan.

Required Arguments:

Returns: Nothing if successful, error messages on failure.

ctm-delete-progression 

Delete a Progression.

REQUIRED PARAMETERS
    -p,--progression         Value can be either a Progression ID or
                                  Name.

Examples

ctm-delete-progression -p "Progression Name"

Associated API: delete_progression

Delete a Progression Definition. Destructive of history, and there is no undo.

Required Arguments:

Returns: 'true' on success, errors on failure.

ctm-delete-project 

Delete a Project object.

REQUIRED PARAMETERS
    -p,--project             Value can be either a Project ID or Name.
OPTIONAL PARAMETERS
    --preserve               If provided, will still delete all data,
                                  but the actual Project will be preserved.

Examples

ctm-delete-project -p "ProjectName"

Associated API: delete_project

Permanently delete a Project.

Required Arguments:

Optional Arguments:

Returns: 'true' on success, errors on failure.

ctm-delete-task 

Deletes a Task.

REQUIRED PARAMETERS
    -t,--task                The ID or Name of the Task to delete.
OPTIONAL PARAMETERS
    -f,--force_delete        Force the deletion of a Task, even if it
                                  has history and references.

Examples

To delete a task that does not have any runtime history

ctm-delete-task -t "mytask01"

To force a delete of a task that has runtime history

ctm-delete-task -f "mytask01" -f

Associated API: delete_task

Deletes all versions of a Task.

Required Arguments:

Optional Arguments:

Returns: Nothing if successful, error messages on failure.

ctm-delete-user 

Deletes a new User.

REQUIRED PARAMETERS
    -u,--user                A login name for the user.

Examples

ctm-delete-user -u "dave.thomas"

Associated API: delete_user

Deletes a user account

Only users with the role "System Administrator" can delete users. If the credentials used for this API call do not have the proper permission, the call will not succeed.

Required Arguments:

ctm-deliver-packagerevision 

Delivers a Package Revision out of a Progression into a Delivered condition.

REQUIRED PARAMETERS
    -p,--package             Name of the Package to promote to a
                                  Progression Phase.
OPTIONAL PARAMETERS
    -r,--revision            Revision number of a Package to promote,
                                  takes precedence over "full_version".
    -f,--full_version        Optional Full Version of package to
                                  promote, optional alternative selector to
                                  "revision".

Examples

ctm-deliver-packagerevision -p "Some Package Name" -r 205

- or -

ctm-deliver-revision -p "Some Package Name" -f "15.2.3.205"

Associated API: deliver_revision

Delivers a Package Revision out of a Progression into a Delivered condition.

Required Arguments:

Returns: success on success, errors otherwise.

ctm-describe-api 

Retrieves a list of all REST API methods and their documentation.

OPTIONAL PARAMETERS
    -l,--listonly            List the methods without documentation.

Examples

To print a full listing of all api commands with documentation

ctm-describe-api

To print only the names with the api commands sorted

ctm-describe-api -l

ctm-export-canvas 

Exports Canvas items to a directory.

OPTIONAL PARAMETERS
    -p,--project             If provided, limits export to a specific
                                  Project.
    -c,--component           If provided, limits a Project to a
                                  specific Component. (project is required.)
    -r,--repository          Specify either "file" or "db" repository.
                                  ("db" if omitted.)
    -o,--outputdirectory     Directory where the output will be saved.
                                  The directory must exist, and should be
                                  empty.
    --printoutput            If provided, no file will be created.  The
                                  results of the API call will be printed.

Associated API: export_canvas

Generates an export JSON document all Canvas items.

This function is capable of exporting items from the "filesystem" repository, which is an administrative feature.

Optional Arguments:

Returns: A JSON document containing Canvas items.

ctm-export-catalog 

Export all Project, Pipeline, Package, and Task definitions to a catalog as JSON documents.

OPTIONAL PARAMETERS
    -o,--outputdirectory     Directory where the output will be saved.
                                  The directory must exist, and should be
                                  empty.
    -t,--team                Team "name" or id, To export the assets of
                                  specified team.
                                  Multiple teams can be specified using
                                  comma. E.g. "Dev Team","Test Team"

Examples

To export a catalog of backup files.

ctm-export-catalog -o myoutputdirectory -t "teamname or teamid"

Associated API: export_catalog

Export all Project, Pipeline, Package, and Task definitions to a catalog as a JSON document.

Returns: A JSON document containing all Project, Pipeline, Package, and Task definitions.

ctm-export-package 

Export a Package Definition as a portable backup JSON document.

REQUIRED PARAMETERS
    -p,--package             Value can be either a Package Definition
                                  ID or Name.

Examples

ctm-export-package -p "Some Package Name"

Associated API: export_package

Export a Package Definition as a portable backup JSON document.

Required Arguments:

Returns: A Package Definition Object.

ctm-export-pipeline 

Exports a Pipeline Definition backup file. Includes complete versions of all Phases and Stages.

REQUIRED PARAMETERS
    -p,--pipeline            Value can be either a Definition ID or
                                  Name.

Examples

To export a Pipeline backup file.

ctm-export-pipeline -p "MyPipeline" > mypipeline.json 

Associated API: export_pipeline

Export a Pipeline Definition as a portable backup JSON document.

Required Arguments:

Returns: A Pipeline Definition Object.

ctm-export-plugins 

Export Plugin configurations as a portable backup JSON document.

OPTIONAL PARAMETERS
    -n,--name                Optional name to export only a specified
                                  Plugin.

Examples

ctm-export-plugin -n "Specific Plugin Name"

Associated API: export_plugins

Export the configuration one or all Plugins.

Optional Arguments:

Returns: an array of plugins, a single plugin, or error.

ctm-export-progression 

Export a Progression Definition as a portable backup JSON document.

REQUIRED PARAMETERS
    -p,--progression         Value can be either a Progression
                                  Definition ID or Name.

Examples

ctm-export-progression -p "Some Progression Name"

Associated API: export_progression

Export a Progression Definition as a portable backup JSON document.

Required Arguments:

Returns: A Progression Definition Object.

ctm-export-project 

Gets a Project Definition for export.

REQUIRED PARAMETERS
    -p,--project             Value can be either a Project ID or Name.

Examples

ctm-export-project -p "ProjectName" > myproject.json

Associated API: export_project

Gets a Project object for export. (Will not include the _id.)

Required Arguments:

Returns: A Project Object.

ctm-export-task 

Exports a Task that can be checked into version control or imported elsewhere.

REQUIRED PARAMETERS
    -t,--task                The ID or Name of the Task to export.
OPTIONAL PARAMETERS
    -r,--include_refs        If provided, will include all referenced
                                  subtasks.
    -f,--output_file         Save the exported Task(s) to the specified
                                  file.

Examples

To export the default version of a task in the default xml format

ctm-export-task -t "mytask01"

To export the of a task, include all subtask references and put results in a file

ctm-export-task -t "mytask01" -r -f "~/mytask01.xml"

Associated API: export_task

Create a backup file for a single Task.

The behavior of this command is different depending on the Accept header.

Required Arguments:

Optional Arguments:

Returns: A collection of Task backup objects.

ctm-get-active-tasks 

Gets a list of active Task Instances (Submitted, Staged, Pending, Processing).

OPTIONAL PARAMETERS
    -f,--filter              A filter.
    -r,--records             Maximum number of records to return.

Examples

Get all active task instances

ctm-get-active-tasks

Get all active task instances that have a status of Processing

ctm-get-active-tasks -f "Processing"

Get all active task instance with a particular string in the name

ctm-get-active-tasks -f "mytask01"

Limit the number of task instances returned

ctm-get-active-tasks -r 10

Associated API: get_task_instances

Gets a list of Task Instances.

Optional Arguments:

Returns: A list of Task Instance Objects.

ctm-get-asset 

Prints the properties of an Asset

REQUIRED PARAMETERS
    -a,--asset               The ID or Name of an Asset.

Examples

ctm-get-asset -a "database001"

Associated API: get_asset

Gets an Asset.

Required Arguments:

Returns: An Asset Object.

ctm-get-cloud 

Prints the properties of a Cloud endpoint

REQUIRED PARAMETERS
    -n,--name                The ID or Name of a Cloud.

Examples

ctm-get-cloud -n "us-east-1"

Associated API: get_cloud

Gets a Cloud object.

Required Arguments:

Returns: A Cloud Object.

ctm-get-license 

Prints the license information including expiration date

Examples

ctm-get-license

Associated API: get_license

Get the license details.

Only users with the role "System Administrator" can get the license details.

Required Arguments:

Returns: The relevant properties of the current license.

ctm-get-next-id 

Get the next ID in an ID set

REQUIRED PARAMETERS
    -n,--name                ID set name
OPTIONAL PARAMETERS
    -r,--reseed              Reseed the ID set starting with this
                                  number
    -f,--fallback            Fallback to this number if there is an
                                  exception

Associated API: get_next_id

Get the next integer id in a named ID set.

Required Arguments:

Optional Arguments:

Returns: 'true' on success, errors on failure.

ctm-get-package 

Get the definition document of a Package.

REQUIRED PARAMETERS
    -p,--package             Value can be either a Package Definition
                                  ID or Name.

Examples

ctm-get-get_package-manifest -p "Some Package Name"

Associated API: get_package

Returns the definition of the specified Package.

Required Arguments:

Returns: The Package definition document.

ctm-get-package-manifest 

Get the Manifest of a Package, for the specified version and range of revisions.

REQUIRED PARAMETERS
    -p,--package             Value can be either a Package Definition
                                  ID or Name.
OPTIONAL PARAMETERS
    -v,--version             Optional Package Version. (All Versions if
                                  omitted.)
    -f,--from                From Revision. (First (oldest) Revision in
                                  the range if omitted.)
    -t,--to                  To Revision. (Last (newest) Revision in
                                  the range if omitted.)
    -t,--to                  To Revision. (Last (newest) Revision in
                                  the range if omitted.)
    --verbose                Verbose data for result objects.

Examples

ctm-get-package-manifest -p "Some Package Name" -v "Specific Version" -f "From Revision" -t "To Revision"

Associated API: get_package_manifest

Returns the complete Manifest of a Package Version, given a range of Revisions.

Required Arguments:

Optional Arguments:

Note: If both version and version_of_rev are provided, version takes precedence.

Returns: The Manifest (Workitems, Changes and Artifacts) contained in the specified Package Revision range.

ctm-get-piartifacts 

Gets the Artifacts from the Manifest of a Pipeline Instance.

REQUIRED PARAMETERS
    -i,--pi                  Value can be either a Pipeline Instance ID
                                  or Name.

Examples

ctm-get-piartifacts -i "Pipeline Instance Name or ID"

Associated API: get_pi_artifacts

Gets the Changes from the Manifest of a Pipeline Instance.

Required Arguments:

Returns: A JSON document representing all Changes on the Manifest.

Note: the response is 'json' - 'text' and 'xml' object_output options are not supported.

ctm-get-pichanges 

Gets the Changes from the Manifest of a Pipeline Instance.

REQUIRED PARAMETERS
    -i,--pi                  Value can be either a Pipeline Instance ID
                                  or Name.

Examples

ctm-get-pichanges -i "Pipeline Instance Name or ID"

Associated API: get_pi_changes

Gets the Changes from the Manifest of a Pipeline Instance.

Required Arguments:

Returns: A JSON document representing all Changes on the Manifest.

Note: the response is 'json' - 'text' and 'xml' object_output options are not supported.

ctm-get-pidata 

Gets a Pipeline Instance Data object.

REQUIRED PARAMETERS
    -i,--pi                  Value can be either a Pipeline Instance ID
                                  or Name.
OPTIONAL PARAMETERS
    -l,--lookup              Lookup an expression that evaluates to a
                                  subsection of the document.

Examples

ctm-get-pidata -i "Pipeline Instance Name or ID"

Associated API: get_pi_data

Gets a Pipeline Instance Data object.

Required Arguments:

Optional Arguments:

Returns: A Pipeline Instance.

Note: the response is 'json' - 'text' and 'xml' object_output options are not supported.

ctm-get-pipeline 

Gets a Pipeline Definition.

REQUIRED PARAMETERS
    -p,--pipeline            Value can be either a Definition ID or
                                  Name.

Examples

ctm-get-pipeline -p "PipelineName"

Associated API: get_pipeline

Gets a Pipeline Definition object.

Required Arguments:

Returns: A Pipeline Definition Object.

ctm-get-pipelineinstance 

Gets a Pipeline Instance object.

REQUIRED PARAMETERS
    -i,--pi                  Value can be either a Pipeline Instance ID
                                  or Name.
OPTIONAL PARAMETERS
    -s,--include_stages      If provided, include the Stages, Steps and
                                  Plugins - the whole enchilada.

Examples

ctm-get-pipelineinstance -i "Pipeline Instance Name or ID"

Associated API: get_pipelineinstance

Gets a Pipeline Instance object.

Required Arguments:

Optional Arguments:

Returns: A Pipeline Instance.

ctm-get-piworkitems 

Gets the Workitems from the Manifest of a Pipeline Instance.

REQUIRED PARAMETERS
    -i,--pi                  Value can be either a Pipeline Instance ID
                                  or Name.

Examples

ctm-get-piworkitems -i "Pipeline Instance Name or ID"

Associated API: get_pi_workitems

Gets the Workitems from the Manifest of a Pipeline Instance.

Required Arguments:

Returns: A JSON document representing all Workitems on the Manifest.

Note: the response is 'json' - 'text' and 'xml' object_output options are not supported.

ctm-get-plugin-schema 

Given a valid Plugin name, this API returns the Schema fpr that plugin.

REQUIRED PARAMETERS
    -p,--plugin_name         Name of the plugin to be returned

Examples

ctm-get-plugin-schema -p "GitHub"

Associated API: get_plugin_schema

Returns the Schema for a given plugin.

    REQUIRED Args:
        - plugin_name: The name of the plugin to be returned.

    OPTIONAL Args:
        - metadata: If true, will return 'plugin_name' and 'path' (if any)

ctm-get-progression-details 

Gets Progression Details.

REQUIRED PARAMETERS
    -p,--progression         Value can be either a Progression ID or
                                  name.
OPTIONAL PARAMETERS
    -P,--packages            Filter response by a (comma-delimited)
                                  list of Package IDs.
    -t,--teams               Filter response by a (comma-delimited)
                                  list of Team IDs or names.

Examples

Associated API: get_progression_details

Gets details about a Progression suitable for populating the display of a Progression Board.

Required Arguments:

Optional Arguments:

Returns: A Progression Details Object.

ctm-get-project 

Gets a Project Definition.

REQUIRED PARAMETERS
    -p,--project             Value can be either a Project ID or Name.

Examples

ctm-get-project -p "ProjectName"

Associated API: get_project

Gets a Project object.

Required Arguments:

Returns: A Project Object.

ctm-get-settings 

Gets all the configuration settings from the database in json format

OPTIONAL PARAMETERS
    -m,--module              Filter to a specific module.

Examples

To get all config settings in text format

ctm-get-settings

To get all config settings in json format

ctm-get-settings -F "json"

To get the settings only for the messenger module

ctm-get-settings -m "Messenger"

To get a list of the module names available in the settings configurations

ctm-get-settings |grep -v "^ "|grep -v "^$"

Associated API: get_settings

Lists all the settings of modules.

Only users with the role "System Administrator" can get settings.

Optional Arguments:

Returns: A Settings Object.

ctm-get-submission 

Gets the raw payload of a specific 'Submission' via a MongoDB query.

For query syntax, see the MongDB find() syntax: http://docs.mongodb.org/manual/reference/method/db.collection.find

Returns the submission document, or a 'not found' message.

REQUIRED PARAMETERS
    -q,--query               A query in JSON format.

Examples

To find a Submission using the 'after' property:

ctm-get-submission -q '{"after" : "abc123"}'

Associated API: get_submission

Gets a raw 'Submission' payload using a query.

Required Arguments:

If the query would return multiple submissions, the newest one is matched.

Returns: the Submission document on success, 'not found' otherwise.

ctm-get-system-log 

Get the System Log.

OPTIONAL PARAMETERS
    -i,--object_id           An Object ID filter.
    -t,--object_type         The integer representation of an internal
                                  object type. Can be used with one of the
                                  following when log_type = Object: (User =
                                  1, Asset = 2, Task = 3, Schedule = 4, Tag
                                  = 7, Image = 8, MessageTemplate = 18,
                                  Parameter = 34, Credential = 35, Domain =
                                  36, CloudAccount = 40, Cloud = 41,
                                  CloudKeyPair = 45)
    -u,--user                A user name to filter result on.
    -l,--log_type            The type of log, either Object or Security
    -a,--action              The action that triggered a log entry. One
                                  of the following: (UserLogin, UserLogout,
                                  UserLoginAttempt, UserPasswordChange,
                                  UserSessionDrop, ObjectAdd, ObjectModify,
                                  ObjectDelete, bjectView, ObjectCopy,
                                  ConfigChange)
    -f,--filter              A filter whereby the results would contain
                                  this string
    --from                   A "from" date in the format of m/d/yyyy.
    --to                     A "to" date in the format of m/d/yyyy.
    -r,--records             Maximum number of records to return,
                                  default is 100.

Examples

To get the last 100 denied login attempts

ctm-get-system-log -l "Security" -a "UserLoginAttempt"

To get any log entries attributed to the administrator user between two dates

ctm-get-system-log -u "administrator" -l "Object" --from "1/6/2014" --to "1/7/2014"

To get the last 300 task modifications

ctm-get-system-log -t 3 -r 300

Associated API: get_system_log

Gets the system log. If all arguments are omitted, will return the most recent 100 entries.

Only users with the role "System Administrator" can get the system log.

Optional Arguments:

Returns: A list of Log Entry Objects.

ctm-get-task 

Prints the properties of a Task

REQUIRED PARAMETERS
    -t,--task                The ID or Name of a Task.
OPTIONAL PARAMETERS
    -i,--include_code        Include all task step code, if
                                  output_format is "json" or "xml".

Examples

_To print the high level properties of a specific Task

ctm-get-task -t "mytask01"

To print the properties and code of the default version of a Task

ctm-get-task -t "new example" -i

Associated API: get_task

Gets a Task object.

Required Arguments:

Optional Arguments:

Returns: A Task Object.

ctm-get-task-instance 

Get the properties of a Task Instance such as status, submitted and completed dates, etc.

REQUIRED PARAMETERS
    -i,--instance            The Task Instance number.

Examples

ctm-get-task-instance -i 43669

Associated API: get_task_instance

Gets the details of a Task Instance.

Required Arguments:

Returns: A Task Instance Object.

ctm-get-task-instances 

Get a list of Task Instances and their properties (status, dates, etc.).

OPTIONAL PARAMETERS
    -f,--filter              A filter.
    -s,--status              A comma separated list of statuses.
    --from                   A "from" date.
    --to                     A "to" date.
    -r,--records             Maximum number of records to return.

Examples

To retrieve the the last 200 task instances

ctm-get-task-instances

To get all Processing and Submitted task instances, max 200

ctm-get-task-instances -s "Processing,Submitted"

To get a set of task instances between two dates

ctm-get-task-instances --from "01/14/2014" --to "01/16/2014"

To get the last 1000 task instances, overriding the default max of 200

ctm-get-task-instances -r 1000

To get the last 10 task instance for any tasks with a particular string in the name

ctm-get-task-instances -r 10 -f "mytask01"

Associated API: get_task_instances

Gets a list of Task Instances.

Optional Arguments:

Returns: A list of Task Instance Objects.

ctm-get-task-plans 

Gets a list of queued schedule execution plans for a task.

REQUIRED PARAMETERS
    -t,--task                The ID or Name of a Task.

Examples

Get all scheduled execution plans for a particular task

ctm-get-task-plans -t "mytask01"

Associated API: get_task_plans

Gets a list of the queued execution plans for a Task.

Required Arguments:

Optional Arguments:

Returns: A list of Execution Plan Objects.

ctm-get-task-schedules 

Gets a list of schedule definitions for a given task.

REQUIRED PARAMETERS
    -t,--task                The ID or Name of a Task.

Examples

To list the schedules for a particular task

ctm-get-task-schedules -t "mytask01"

Associated API: get_task_schedules

Gets a list of Schedule definitions for a Task.

Required Arguments:

Optional Arguments:

Returns: A list of Task Schedule Objects.

ctm-get-worklist 

Gets a list of pending Pipeline Instances.

OPTIONAL PARAMETERS
    -f,--filter              Limit the result to a specific key:value
                                  pair.

Examples

ctm-get-worklist -f "key:value"

Associated API: get_worklist

Gets a list of Pipeline in 'pending' status.

Optional Arguments:

Returns: A list of pending Pipeline Instances.

ctm-import-backup 

DEPRECATED: Please use ctm-import-task.

Imports a task backup file into the system. This file can include one or
                more tasks within it and must be XML or JSON formatted

REQUIRED PARAMETERS
    -f,--file                The file name of the backup file.
OPTIONAL PARAMETERS
    -c,--on_conflict         Action to take if one or more Tasks have a
                                  conflict. "replace", "cancel".

Examples

ctm-import-backup -f ~/mytask01.xml

Associated API: import_backup

Imports an XML or JSON backup file.

DEPRECATED: this function is deprecated. Use import_task instead.

Required Arguments:

Returns: A list of items in the backup file, with the success/failure of each import.

ctm-import-canvas 

Imports Canvas items from a properly formatted directory.

OPTIONAL PARAMETERS
    -i,--inputdirectory      Directory where the Canvas files exist.
                                  Current directory if omitted.
    -r,--repository          "Specify either "file" or "db" repository.
                                  "db" if omitted.
                                  Only Administrators are allowed to use the
                                  "file" option.
    --ignoreconflicts        If provided, the import process will
                                  handle Name conflicts aggressively. If
                                  Canvas items with the same
                                  Project/Component/Name exist, they will be
                                  overwritten.

Associated API: create_canvas_item

Creates a new Canvas item.

Required Arguments:

Optional Arguments:

Returns: Success or Error message.

ctm-import-catalog 

Import all Project, Pipeline, Package, and Task definitions from a catalog as JSON documents.

OPTIONAL PARAMETERS
    -i,--inputdirectory      Directory where the input files are
                                  located.  The directory must exist.
    -t,--team                Team "name" or id, To import the assets in
                                  specified team.
                                  Multiple teams can be specified using
                                  comma. E.g. "Dev Team","Test Team"
    -o,--overwrite           Valid values: true|false (default).
    -h,--humanreadable       Valid values: true (default)|false.
    -I,--import_into_team    Team "name" or id. If specified, the
                                  catalog will be imported into the
                                  specified team, rather than the teams
                                  specified in the input files.
                                  This may be useful if you wish to import
                                  items from another team or Continuum
                                  instance

Examples

To import a catalog from backup files.

ctm-import-catalog -i myinputdirectory -t "teamname or teamid"

Associated API: import_catalog

Import all Project, Pipeline, Package, and Task definitions from a catalog as a JSON document.

Optional Arguments:

Returns: A list of all Project, Pipeline, Package, and Task definitions with the name and status of import or exception.

ctm-import-package 

Imports a backup of a Package Definition..

Returns success or error.

REQUIRED PARAMETERS
    -b,--backupfile          A JSON document formatted as a Package
                                  backup.
OPTIONAL PARAMETERS
    -o,--overwrite           Valid values: true|false (default).

Associated API: import_package

Import a Package Definition from a backup file.

Required Arguments:

Optional Arguments:

If 'overwrite' is 'true' and the Definition exists, it will be replaced.

Returns: Success or error.

ctm-import-pipeline 

Imports a Pipeline Definition from a JSON document.

Returns a Pipeline Object.

REQUIRED PARAMETERS
    -b,--backupfile          A JSON document formatted as a complete
                                  Pipeline Definition backup.
OPTIONAL PARAMETERS
    -o,--overwrite           Valid values: pipeline|phases|all|none
                                  (default).

Associated API: import_pipeline

Import a Pipeline Definition.

Required Arguments:

Optional Arguments:

Returns: A Pipeline Definition Object.

ctm-import-progression 

Imports a backup of a Progression Definition..

Returns success or error.

REQUIRED PARAMETERS
    -b,--backupfile          A JSON document formatted as a Progression
                                  backup.
OPTIONAL PARAMETERS
    -o,--overwrite           Valid values: true|false (default).

Associated API: import_progression

Import a Progression Definition from a backup file.

Required Arguments:

Optional Arguments:

Returns: Success or error.

ctm-import-project 

Imports a Project Definition from a JSON document.

Returns a Project Object.

REQUIRED PARAMETERS
    -b,--backupfile          A JSON document formatted as a complete
                                  Project backup.
OPTIONAL PARAMETERS
    -o,--overwrite           Valid values: true|false (default).

Associated API: import_project

Import a Project.

Required Arguments:

Optional Arguments:

Returns: A Project Object.

ctm-import-task 

Imports a Task backup file. This file can include one or more tasks within it and must be JSON formatted.

REQUIRED PARAMETERS
    -f,--file                The file name of the backup file.
OPTIONAL PARAMETERS
    -c,--on_conflict         Action to take if one or more Tasks have a
                                  conflict. "replace", "cancel".

Examples

ctm-import-backup -f ~/mytask02.json

Associated API: import_task

Imports a Task backup file.

Required Arguments:

Optional Arguments:

NOTE: There may be multiple Tasks in a single backup file, as often Tasks have dependencies on other Tasks, so all are included.

Returns: A list of items in the backup file, with the success/failure of each import.

ctm-initiate-pipeline 

Initiate a Pipeline Definition with matching 'key' information.

Returns a Pipeline Instance Object.

REQUIRED PARAMETERS
    -d,--definition          Pipeline Definition to initiate.
    -p,--project             The Project name with which to associate
                                  this instance.
    -g,--group               Descriptive label of a group to summarize
                                  multiple instances of this
                                  definition/project.
OPTIONAL PARAMETERS
    -n,--name                An explicit name for the unique instance.
                                  (Autogenerated if omitted.)
    -j,--details             A JSON object with additional details
                                  about this instance.

Associated API: initiate_pipeline

Attempt to initiate a Pipeline Definition.

Required Arguments:

Optional Arguments:

Returns: A Pipeline Instance Object.

ctm-install-add-on 

Installs an Add-On from the VS-Exchange

Returns success or an error message.

REQUIRED PARAMETERS
    -n,--name                The name of the add-on to install from the
                                  VS-Exchange
OPTIONAL PARAMETERS
    -t,--team                The name of the team in which to install
                                  any projects, packages, pipelines, and
                                  tasks included in this add-on.
                                  Required if any any projects, packages,
                                  pipelines, or tasks exist in the add-on

Associated API: install_add_on

Installs an Add-On from the vs-exchange

Required Arguments:

Optional Arguments:

Returns: success on success, errors otherwise.

ctm-install-license 

Installs or updates the Agility Connect/Continuum license by importing a license file

REQUIRED PARAMETERS
    -i,--inputfile           Path to a license.dat file.

Examples

ctm-install-license -i "~/license.lic"

Associated API: install_license

Installs a license file.

Only users with the role "System Administrator" can install a license.

Required Arguments:

Returns: Success or Error message.

ctm-invoke-plugin 

Execute a specified Flow Plugin Function

This API call will block the thread while it waits for the Plugin Function to execute. Therefore, the timeout argument should be kept reasonably small based on the Plugin Function being executed to reduce the amount of time the thread remains blocked.

This API cannot invoke Pipeline Step Plugin Functions. Pipeline Step Plugin Functions require the context of a Step to run successfully.

Response varies based on the specified Plugin.

REQUIRED PARAMETERS
    -p,--plugin              Plugin.Module containing the desired
                                  function to invoke. (ex: github.main)
    -m,--method              Method to invoke. (ex "test_connection")
OPTIONAL PARAMETERS
    -a,--args                A JSON object containing Plugin Function
                                  specific arguments.
    -t,--team                The Team to search for the Plugin Instance
                                  to use when invoking a Plugin Function
                                  that requires an Instance. Defaults to
                                  plugins available to All Teams.
    -o,--timeout             The number of seconds to wait for the
                                  Plugin Function to execute before
                                  returning a timeout error.
                                  Defaults to 60 seconds.

Associated API: invoke_plugin

Invoke a Plugin Function.

Required Arguments:

Optional Arguments:

This API call will block the thread while it waits for the Plugin Function to execute. Therefore, the timeout argument should be kept reasonably small based on the Plugin Function being executed to reduce the amount of time the thread remains blocked. This API cannot invoke Pipeline Step Plugin Functions. Pipeline Step Plugin Functions require the context of a Step to run successfully.

Returns: Response varies depending on the Plugin Function called.

ctm-list-add-ons 

Lists all Add-Ons installed in this Continuum instance.

Returns: A list of Add-On details.

OPTIONAL PARAMETERS
    -c,--include_contents    If true, lists the names of all parts of
                                  each of the Add-Ons. Defaults to false

Associated API: list_add_ons

Lists all Add-Ons installed in this Continuum instance.

Optional Arguments:

Returns: A list of Add-On details.

ctm-list-canvas-items 

Lists Canvas Items

OPTIONAL PARAMETERS
    -p,--project             Filter by a single Canvas Project.
    -c,--component           Further filter a Project by Component.
                                  (project is required.)
    -r,--repository          Specify either "file" or "db" repository.
                                  ("db" if omitted)

Associated API: list_canvas_items

Returns a list of all elements in the Canvas feature.

Optional Arguments:

Returns: A list of all Canvas elements.

ctm-list-changes 

Lists all Changes.

OPTIONAL PARAMETERS
    -r,--project             Limit the results to a specific project.
    -g,--group               Limit the results to a specific group.
    -s,--since               Limit the results to changes after the
                                  provided timestamp.
    -m,--managed             List only the managed changes.
    -u,--unmanaged           List only the unmanaged changes, Ignored
                                  if managed flag is provided

Examples

ctm-list-changes

Associated API: list_changes

Lists all Changes.

Optional Arguments:

Returns: A list of Changes{:target="robjs"}.

ctm-list-cloud-accounts 

Lists Cloud Accounts.

OPTIONAL PARAMETERS
    -f,--filter              A string to use to filter the resulting
                                  data. Any row of data that has one field
                                  contains the string will be returned.

Examples

List all cloud accounts with AWS in the name or cloud type

ctm-list-cloud-accounts -f "AWS"

Associated API: list_cloud_accounts

Lists all Cloud Accounts.

Optional Arguments:

Returns: A list of Cloud Account Objects.

ctm-list-clouds 

Lists Cloud endpoints.

OPTIONAL PARAMETERS
    -f,--filter              A string to use to filter the resulting
                                  data. Any row of data that has one field
                                  contains the string will be returned.

Examples

List all cloud endpoints

ctm-list-clouds

List all vcloud cloud endpoints

ctm-list-clouds -f "vCloud"

Associated API: list_clouds

Lists all Clouds.

Optional Arguments:

Returns: A list of Cloud Objects.

ctm-list-commands 

Lists all installed ctm-* commands. Accepts no arguments.

ctm-list-packages 

Lists all Package Definitions.

OPTIONAL PARAMETERS
    -f,--filter              A filter.
    -l,--limit               The maximum number of items to retrieve,
                                  or 0 for unlimited. (Default is 100.)

Examples

_List all Package Definitions

ctm-list-packages

Associated API: list_packages

Lists all Package Definitions.

Optional Arguments:

Returns: A list of Package Definition Objects.

ctm-list-pipelinegroups 

Lists all Pipeline Instance Groups.

OPTIONAL PARAMETERS
    -p,--pipeline            Limit the results to a specific Pipeline.
    -r,--project             Limit the results to a specific project.
    -g,--group               Limit the results to a specific group.
    -l,--limit               The maximum number of items to retrieve,
                                  or 0 for unlimited. (Default is
                                  unlimited.)

Examples

_List all Pipeline Instance Groups

ctm-list-pipelinegroups

Associated API: list_pipelinegroups

Lists all Pipeline Instance Groups (Stories).

Optional Arguments:

Returns: A list of Pipeline Instance Group Objects.

ctm-list-pipelineinstances 

Lists all Pipeline Instances.

OPTIONAL PARAMETERS
    -d,--definition          Limit the results to a specific Pipeline
                                  Definition.
    -r,--project             Limit the results to a specific project.
    -g,--group               Limit the results to a specific group.
    -s,--since               Limit the results to Instances after the
                                  provided timestamp.
    -l,--limit               Limit the number of results.  (0 for all
                                  results, 100 if omitted.

Examples

_List all Pipeline Instances

ctm-list-pipelineinstances

Associated API: list_pipelineinstances

Lists all Pipeline Instances.

Optional Arguments:

Returns: A list of Pipeline Instance Objects.

ctm-list-pipelines 

Lists all Pipeline Definitions.

OPTIONAL PARAMETERS
    -f,--filter              A filter.
    -l,--limit               The maximum number of items to retrieve,
                                  or 0 for unlimited. (Default is
                                  unlimited.)

Examples

List all Pipelines

ctm-list-pipelines

Associated API: list_pipelines

Lists all Pipeline Definitions.

Optional Arguments:

Returns: A list of Pipeline Definition Objects.

ctm-list-processes 

Lists server processes (poller, messenger, etc.) along with heartbeat information.

Examples

ctm-list-processes

Associated API: list_processes

Lists all running processes.

Returns: A list of Process Objects.

ctm-list-progressions 

Lists all Progressions.

OPTIONAL PARAMETERS
    -f,--filter              A filter.
    -l,--limit               The maximum number of items to retrieve,
                                  or 0 for unlimited. (Default is
                                  unlimited.)

Examples

_List all Progressions

ctm-list-progressions

Associated API: list_progressions

Lists all Progressions.

Optional Arguments:

Returns: A list of [Progression Objects](api-response-objects#progression.

ctm-list-projects 

Lists all Projects.

OPTIONAL PARAMETERS
    -f,--filter              A filter.
    -l,--limit               The maximum number of items to retrieve,
                                  or 0 for unlimited. (Default is
                                  unlimited.)

Examples

_List all Projects

ctm-list-projects

Associated API: list_projects

Lists all Projects.

Optional Arguments:

Returns: A list of Project Objects.

ctm-list-tasks 

Lists Tasks

OPTIONAL PARAMETERS
    -f,--filter              A string to use to filter the resulting
                                  data. Any row of data that has one field
                                  contains the string will be returned.

Examples

List all tasks

ctm-list-tasks

_List all tasks with a particular string in the name

ctm-list-tasks -f "Test Logging Level"

Associated API: list_tasks

Lists all Tasks..

Optional Arguments:

Returns: A list of Task Objects.

The Task Objects returned to this function are streamlined - they do not contain all the properties available in the get_task endpoint.

ctm-list-users 

Lists Users, Authentication type will be set to SSO if SSO is enabled in this instance

OPTIONAL PARAMETERS
    -f,--filter              A string to use to filter the resulting
                                  data. Any row of data that has one field
                                  contains the string will be returned.
    -l,--limit               The maximum number of items to retrieve,
                                  or 0 for unlimited. (Default is
                                  unlimited.)

Examples

List all users

ctm-list-users

List all users with Administrator role

ctm-list-users -f "Administrator"

Associated API: list_users

Lists all registered Users.

Only users with the role "System Administrator" can list all registered users. If the credentials used for this API call do not have the proper permission, the call will not succeed.

Optional Arguments:

Returns: A list of User Objects.

ctm-override-control 

Given a Package Revision, a Phase and a Control Name, will override that Control if it exists and is failed.

Returns: success on success, errors otherwise.

REQUIRED PARAMETERS
    -p,--package             Name of Package
    -h,--phase               Phase containing the Activity/Control to
                                  override..
    -a,--activity            Name of Activity
    -c,--control             Name of Control.
    -e,--reason              Reason for overriding the Control.
OPTIONAL PARAMETERS
    -r,--revision            Revision of Package containing the
                                  Control. (Takes precedence over
                                  "fullversion" if both are provided.)
    -f,--full_version        Full Version label of the Package
                                  containing the Control.

Associated API: override_control

Given a Package Revision, a Phase and a Control Name, will override that Control if it exists and is failed.

Required Arguments:

Returns: success on success, errors otherwise.

ctm-powershell 

Test WinRM connections and issue commands.

OPTIONAL PARAMETERS
    -s,--server              Windows server address.
    -u,--user                Windows User with WinRM permissions.
    -p,--password            Windows User Password.
    -a,--asset               The ID or Name of an Asset to use instead
                                  of --server, --user and --password.
    -k,--kerberos            Use Kerberos (Domain) authentication.
    -c,--command             A command to execute via WinRM.

Examples

ctm-powershell -uusername -ppassword -sserver -c"write-host 'Hello World'"

Associated API: winrm_command

#INTERNAL Test connectivity or issue Windows Remote Management commands on a defined Asset.

Required Arguments:

OR

Optional Arguments:

Returns: The result of the command, or errors.

ctm-promote-revision 

Promotes a Package Revision to a particular Phase.

REQUIRED PARAMETERS
    -p,--package             Name of the Package to promote to a
                                  Progression Phase.
    -h,--phase               Name of the Phase to which the specified
                                  Package Revision will be promoted.
OPTIONAL PARAMETERS
    -r,--revision            Revision number of a Package to promote,
                                  takes precedence over "full_version".
    -f,--full_version        Optional Full Version of package to
                                  promote, optional alternative selector to
                                  "revision".
    -v,--new_version         Optional "new version" for this and all
                                  prior revisions of this Package.

Examples

ctm-promote-revision -p "Some Package Name" -r 205 -h "Regression Testing"

- or -

ctm-promote-revision -p "Some Package Name" -f "15.2.3.205" -h "Regression Testing"

Associated API: promote_revision

Promotes a Package Revision to a particular Phase.

Required Arguments:

Optional Arguments:

Returns: success on success, errors otherwise.

ctm-register-artifact 

Record a new revision of a specific Artifact.

REQUIRED PARAMETERS
    -p,--project             Name or ID of the Project where this
                                  Artifact is defined.
    -n,--name                Name of the Artifact to revise.
    -b,--branch              Branch in the repository from which this
                                  artifact was built.
OPTIONAL PARAMETERS
    -v,--version             Optional version identifier for this
                                  Artifact Revision.
    -l,--location            Optional location where this Artifact
                                  Revision can be found.
    -d,--build_data          Optional JSON object additional data about
                                  the build.

Examples

ctm-register-artifact -p "My Project" -n "Artifact One" -l "path/to/artifact" -b master

Associated API: register_artifact

Record a new revision of a specific Artifact.

Required Arguments:

Returns: success on success, errors otherwise.

ctm-remove-team 

Remove the specified Team from the Database.

REQUIRED PARAMETERS
    -t,--team                Name or ID of the Team to change. The team
                                  must not have any users associated with
                                  it.

Examples

ctm-remove-team -t "dev team" 

Associated API: remove_team

Remove an empty Team.

Only users with the following roles can remove a team: ["System Administrator", "Team Administrator"]. If the credentials used for this API call do not have the required permission, the call will not succeed.

Required Arguments:

ctm-remove-team-user 

Remove the specified User from a Team.

REQUIRED PARAMETERS
    -t,--team                Name or ID of the Team to change.
    -u,--user                Name or ID of the User to remove.
OPTIONAL PARAMETERS
    -d,--default             Users must be in at least one Team.  If
                                  the removal operation would leave this
                                  user Teamless, specify a new `Default`
                                  team for the User. Will attempt to use
                                  `Default` if omitted.

Examples

ctm-remove-team-user -t "dev team" -u "bob"

Associated API: remove_team_user

Remove a User from a Team.

Only a 'Team Administrator' can manage Team membership. If the credentials used for this API call are not a Team Administrator for the specified Team, the call will not succeed.

Required Arguments:

Optional Arguments:

NOTE: if a new Default Team is assigned, the User will be given the User role in the Default Team

ctm-rerun-pipelineinstance 

Rerun an Instance, using the saved 'initial data'.

Returns a Pipeline Instance object.

REQUIRED PARAMETERS
    -i,--pi                  Name or ID of a Pipeline Instance.

Associated API: rerun_pipelineinstance

Rerun an Instance, using the saved 'initial data'.

This creates a new Instance exactly as the provided one was started.

Required Arguments:

Returns: A Pipeline Instance Object.

ctm-reset-password 

Resets a User's login password.

OPTIONAL PARAMETERS
    -p,--password            The new password.
    -u,--user                The ID or Name of a User Account.
    -g,--generate            Generate a new, random password.

Examples

Reset a User's password to a random password which will be emailed to the user

ctm-reset-password -u "username1" bob -g

Reset a User's password to a specified password

ctm-reset-password -u "username1" -p "passw0rd"

Associated API: reset_password

Resets the password of the authenticated, or a specified User.

If a user is specified, and the authenticated user has the permission to reset other users' passwords, this will reset the password of the specified user to the provided value. Only users with the role "System Administrator" can change other users' passwords.

If no user is specified, the password of the authenticated user will be changed.

NOTE: to prevent accidental change of an Administrator's password, an extra trap is in place: the username (or id) MUST be provided, even if the authenticated user is the user being changed.

Required Arguments:

Optional Arguments:

Returns: Success message if successful, error messages on failure.

ctm-resubmit-change 

Resubmits a previous change 'Submission' to the specified Project.

Identify the submission data using a valid MongoDB query.

For query syntax, see the MongDB find() syntax: http://docs.mongodb.org/manual/reference/method/db.collection.find

Returns a success or failure.

REQUIRED PARAMETERS
    -q,--query               A query in JSON format.

Examples

To find a GitHub Webhook using the 'after' property:

ctm-resubmit-change -q '{"after" : "abc123"}'

Associated API: resubmit_change

Resubmits a change 'Submission' payload to the specified Project.

Required Arguments:

If the query would return multiple submissions, the newest one is matched.

Returns: 'true' on success, errors on failure.

ctm-retry-pipelineinstance 

Retries a failed or canceled Pipeline Instance.

Returns a Pipeline Instance object.

REQUIRED PARAMETERS
    -i,--pi                  Name or ID of a Pipeline Instance.

Associated API: retry_pipelineinstance

Attempt to retry a failed Pipeline Instance. Simply restarts it again at Phase One.

CAUTION: The Workspace data is not cleared or reset. Depending on the design of the Pipeline, this may not succeed, or might produce unexpected results.

Required Arguments:

Returns: A Pipeline Instance Object.

ctm-reversion-packagerevision 

Changes the Version of the specified (and all matching previous) Package Revisions.

REQUIRED PARAMETERS
    -p,--package             Name of the Package to promote to a
                                  Progression Phase.
    -v,--new_version         Optional "new version" for this and all
                                  prior revisions of this Package.
OPTIONAL PARAMETERS
    -r,--revision            Revision number of a Package to promote,
                                  takes precedence over "full_version".
    -f,--full_version        Optional Full Version of package to
                                  promote, optional alternative selector to
                                  "revision".
    -n,--new_full_version    Optional "new full version" for this and
                                  all prior revisions of this Package.

Examples

ctm-reversion-packagerevision -p "Some Package Name" -r 205 -v 15.1

- or -

ctm-promote-revision -p "Some Package Name" -f "15.2.3.205" -v 15.1

- or -

ctm-promote-revision -p "Some Package Name" -f "15.2.3.205" -v 15.1 -n 15.2.3.206

Associated API: reversion_packagerevision

Changes the Version of the specified (and all matching previous) Package Revisions.

Required Arguments:

Returns: success on success, errors otherwise.

ctm-run-task 

Submits a Task for execution

REQUIRED PARAMETERS
    -t,--task                The ID or Name of the Task to run.
OPTIONAL PARAMETERS
    -l,--log_level           An optional Logging level.  One of 10,20
                                  (default),30,40,50 with 10 most verbose,
                                  50 no logging
    -o,--options             A JSON object containing additional
                                  options for the Task.
    -r,--run_later           The Task will be scheduled to run at the
                                  specified date/time.  ex. "7/4/1776
                                  15:30".
    -p,--parameters          JSON or XML formatted parameters, or a
                                  path to a file containing JSON or XML
                                  parameters.
    -i,--initialdata         JSON object initial runtime data, or a
                                  path to a file containing a JSON object.

Examples

To submit a particular task

ctm-run-task -t "mytask01"

To submit a task the most verbose logging level

ctm-run-task -t "mytask01" -l 10

To submit a task logging on critical errors only

ctm-run-task -t "mytask01" -l 50

To submit a task to run one time in the future

ctm-run-task -t "mytask01" -r "1/16/2014 9:40"

Initial runtime data as a JSON string. (Notice double quotes inside, single quote outside.)

ctm-run-task -t "mytask01" -d '{"ship":"Serenity","captain":"Malcolm Reynolds"}'

Initial runtime data in a JSON file

ctm-run-task -t "mytask01" -d "~/mytask01_params.json"

Associated API: run_task

Runs a Task.

Required Arguments:

Optional Arguments:

Returns: A Task Instance Object.

ctm-schedule-tasks 

Schedules one or more Tasks using a json template file.

REQUIRED PARAMETERS
    -s,--schedulefile        The path to a json formatted schedule
                                  definition file. See the schedule_tasks
                                  API documentation for the format of the
                                  file.

Examples

ctm-schedule-tasks -s ./schedule_template.json

Associated API: schedule_tasks

Schedules one or more Tasks.

Required Arguments:

Schedule definition format:

All lists are zero based integers.

The Task Schedule Object response from the get_task_schedules command in JSON format can provide schedule definition examples for this command.

[
    {
        "Task" : *task name*,
        "Version" : *optional*,
        "Months": "*" or [list of months],
        "DaysOrWeekdays": "Days" = days of the month, "Weekdays" = days of the week (default),
        "Days": "*" or [list of days],
        "Hours": "*" or [list of hours],
        "Minutes": "*" or [list of minutes]
    },
    {
        ...
    }
]

Returns: Nothing if successful, error messages on failure.

ctm-send-message 

Sends a message to an email address using the messenger.

REQUIRED PARAMETERS
    -t,--to                  Comma-separated Users or addresses.
    -s,--subject             Subject of the message.
    -m,--message             Content of the message.
OPTIONAL PARAMETERS
    -c,--cc                  Comma-separated Users or addresses to CC.
    -b,--bcc                 Comma-separated Users or addresses to BCC.

Examples

To send an email to an email address

ctm-send-message -t "bob.thomas@example.com" -s "hello world" -m "this is a test message"

To send an email to a list of email addresses with a blind copy

ctm-send-message -t "bob.thomas@example.com,tom.thumb@example.com" -b "hellen.hunt@example.com -s "hello world" -m "this is a test message"

Associated API: send_message

Sends a message to a registered user. Message will be 'From' the authenticated API user.

The 'to' argument accepts both email addresses AND Continuum Users. Each item in the 'to' list will try to look up a Continuum User, and if it doesn't match, will assume the entry is an email address.

Required Arguments:

Optional Arguments:

Returns: Success message if successful, error message on failure.

ctm-set-pi-description 

Sets pipeline instance description

REQUIRED PARAMETERS
    -i,--pi                  Pipeline instance ID or name
    -d,--description         Key name to set

Associated API: set_pi_description

Set the description of a specific Pipeline Instance

Required Arguments:

Returns: 'true' on success, errors on failure.

ctm-set-pi-global-summary 

Sets pipeline instance global summary data

REQUIRED PARAMETERS
    -i,--pi                  Pipeline instance ID or name
    -k,--key                 Key name to set
    -v,--value               Value to set

Associated API: set_pi_global_summary

Set global summary data on a pipeline instance

Required Arguments:

Returns: 'true' on success, errors on failure.

Example using curl:

curl http://continuum-server.example.com:8080/api/set_pi_data?token=5752fb9abb288013973fabf4&key=hello&value=world&pi=57acb49a320c7a41bf32958a

ctm-set-pipelinegroup-number 

Set the autonumber root on Pipeline Instance Group. (Used to issue ascending numbers to Instances in the Group.)

Requires the '_id' of the Pipeline Instance Group and the new number value to set.

Returns success or failure.

REQUIRED PARAMETERS
    -i,--pg                  ID of a Pipeline Instance Group.
    -n,--newnumber           New Number to set.

Associated API: set_pipelinegroup_number

Set the autonumber root on Pipeline Instance Group. (Used to issue ascending numbers to Instances in the Group.)

Required Arguments:

Returns: 'true' on success, errors on failure.

ctm-set-project-directives 

Sets a project's directives from a JSON document.

Returns {"result": "success"} on success.

REQUIRED PARAMETERS
    -d,--directivesfile      A JSON document containing a project_id
                                  and directives.

Associated API: set_project_directives

Set the directives of an existing project with id project_id.

The parameter directives must be present, but its value can be null or an empty list. Any existing directives will be removed from the project before the given directives are added. Therefore, if directives is null or [], the project will be updated to no longer have any directives.

Currently, the following directive types are supported:

Required Arguments:

Each directive consists of a dictionary with the following shape:

{
  "type": "jira_workitem_lookup",
  "when": "always",
  "details": {}
}

Example payload:

{
  "project_id": "5fda00c4c78ea1fe8779cf8e",
  "directives": [
    {
      "type": "jira_workitem_lookup",
      "when": "always",
      "details": {
        "instance_name": ""
      }
    },
    {
      "type": "assign_to_pipeline",
      "when": "always",
      "details": {
        "project": "",
        "group": "a group",
        "definition": "a definition"
      }
    }
  ]
}

Returns: success on success, errors otherwise.

ctm-stop-task 

Cancels a task instance in a runnning status

REQUIRED PARAMETERS
    -i,--instance            The Task Instance ID to stop.

Examples

ctm-stop-task -i 43675

Associated API: stop_task

Stops a running Task Instance.

Required Arguments:

Returns: Nothing if successful, error messages on failure.

ctm-test-messagehub 

Sends a test alert message to the UI.

REQUIRED PARAMETERS
    -s,--server              URL of the Agile Connect/Continuum server.
                                  Use "wss" if server is running in SSL
                                  mode, otherwise use "ws".  Use the port as
                                  configured, or the default of 8083.

Examples

To send an email to an email address

ctm-test-messagehub -u ws://10.0.0.1:8083

ctm-testbamboo 

Test Bamboo connectivity

OPTIONAL PARAMETERS
    -i,--instance            Bamboo instance name in the Continuum
                                  configuration. Optional, do not use if
                                  testing default Bamboo instance.
    -t,--team                The Team to search for the Plugin Instance
                                  to use. Defaults to plugins available to
                                  All Teams.

Examples

ctm-testbamboo -i instancename

Associated API: test_plugin_connection

Tests connectivity to a Plugin instance defined in the Continuum configuration.

Required Arguments:

One of:

Optional Arguments:

Returns: A success message or error message

ctm-testbitbucket 

Test BitBucket connectivity

OPTIONAL PARAMETERS
    -i,--instance            Instance name in the Continuum
                                  configuration. Optional, not necessary if
                                  testing the default instance.
    -t,--team                The Team to search for the Plugin Instance
                                  to use. Defaults to plugins available to
                                  All Teams.

Examples

ctm-testbitbucket -i instancename

Associated API: test_plugin_connection

Tests connectivity to a Plugin instance defined in the Continuum configuration.

Required Arguments:

One of:

Optional Arguments:

Returns: A success message or error message

ctm-testgitlab 

Test GitLab connectivity

OPTIONAL PARAMETERS
    -i,--instance            Instance name in the Continuum
                                  configuration. Optional, not necessary if
                                  testing the default instance.
    -t,--team                The Team to search for the Plugin Instance
                                  to use. Defaults to plugins available to
                                  All Teams.

Examples

ctm-testgitlab -i instancename

Associated API: test_plugin_connection

Tests connectivity to a Plugin instance defined in the Continuum configuration.

Required Arguments:

One of:

Optional Arguments:

Returns: A success message or error message

ctm-testhipchat 

Test HipChat Server connectivity

OPTIONAL PARAMETERS
    -i,--instance            HipChat instance name in the Continuum
                                  configuration. Optional, do not use if
                                  testing default HipChat instance.
    -t,--team                The Team to search for the Plugin Instance
                                  to use. Defaults to plugins available to
                                  All Teams.

Examples

ctm-testhipchat -i instancename

Associated API: test_plugin_connection

Tests connectivity to a Plugin instance defined in the Continuum configuration.

Required Arguments:

One of:

Optional Arguments:

Returns: A success message or error message

ctm-testjenkins 

Test Jenkins connectivity

OPTIONAL PARAMETERS
    -i,--instance            Jenkins instance name in the Continuum
                                  configuration. Optional, do not use if
                                  testing default Jenkins instance.
    -t,--team                The Team to search for the Plugin Instance
                                  to use. Defaults to plugins available to
                                  All Teams.

Examples

ctm-testjenkins -i instancename

Associated API: test_plugin_connection

Tests connectivity to a Plugin instance defined in the Continuum configuration.

Required Arguments:

One of:

Optional Arguments:

Returns: A success message or error message

ctm-testjira 

Test Jira connectivity

OPTIONAL PARAMETERS
    -i,--instance            Jira instance name in the Continuum
                                  configuration. Optional, do not use if
                                  testing default Jira instance.
    -t,--team                The Team to search for the Plugin Instance
                                  to use. Defaults to plugins available to
                                  All Teams.

Examples

ctm-testjira -i instancename

Associated API: test_plugin_connection

Tests connectivity to a Plugin instance defined in the Continuum configuration.

Required Arguments:

One of:

Optional Arguments:

Returns: A success message or error message

ctm-testoctopus 

Test Octopus connectivity

OPTIONAL PARAMETERS
    -i,--instance            Octopus instance name in the Continuum
                                  configuration. Optional, do not use if
                                  testing default Octopus instance.
    -t,--team                The Team to search for the Plugin Instance
                                  to use. Defaults to plugins available to
                                  All Teams.

Examples

ctm-testoctopus -i instancename

Associated API: test_plugin_connection

Tests connectivity to a Plugin instance defined in the Continuum configuration.

Required Arguments:

One of:

Optional Arguments:

Returns: A success message or error message

ctm-testopenshift 

Test OpenShift connectivity

OPTIONAL PARAMETERS
    -i,--instance            Instance name in the Continuum
                                  configuration. Optional, not necessary if
                                  testing the default instance.
    -t,--team                The Team to search for the Plugin Instance
                                  to use. Defaults to plugins available to
                                  All Teams.

Examples

ctm-testopenshift -i instancename

Associated API: test_plugin_connection

Tests connectivity to a Plugin instance defined in the Continuum configuration.

Required Arguments:

One of:

Optional Arguments:

Returns: A success message or error message

ctm-testsonarqube 

Test Sonarqube connectivity

OPTIONAL PARAMETERS
    -i,--instance            Sonarqube instance name in the Continuum
                                  configuration. Optional, do not use if
                                  testing default Sonarqube instance.
    -t,--team                The Team to search for the Plugin Instance
                                  to use. Defaults to plugins available to
                                  All Teams.

Examples

ctm-testsonarqube -i instancename

Associated API: test_plugin_connection

Tests connectivity to a Plugin instance defined in the Continuum configuration.

Required Arguments:

One of:

Optional Arguments:

Returns: A success message or error message

ctm-testteamcity 

Test TeamCity connectivity

OPTIONAL PARAMETERS
    -i,--instance            TeamCity instance name in the Continuum
                                  configuration. Optional, do not use if
                                  testing default TeamCity instance.
    -t,--team                The Team to search for the Plugin Instance
                                  to use. Defaults to plugins available to
                                  All Teams.

Examples

ctm-testteamcity -i instancename

Associated API: test_plugin_connection

Tests connectivity to a Plugin instance defined in the Continuum configuration.

Required Arguments:

One of:

Optional Arguments:

Returns: A success message or error message

ctm-testversionone 

Test VersionOne connectivity

OPTIONAL PARAMETERS
    -i,--instance            VersionOne instance name in the Continuum
                                  configuration. Optional, do not use if
                                  testing default VersionOne instance.
    -t,--team                The Team to search for the Plugin Instance
                                  to use. Defaults to plugins available to
                                  All Teams.

Examples

ctm-testversionone -i instancename

Associated API: test_plugin_connection

Tests connectivity to a Plugin instance defined in the Continuum configuration.

Required Arguments:

One of:

Optional Arguments:

Returns: A success message or error message

ctm-uninstall-add-on 

Uninstalls an Add-On from the VS-Exchange

Returns success or an error message.

REQUIRED PARAMETERS
    -n,--name                The name of the Add-On to uninstall from
                                  Continuum

Associated API: uninstall_add_on

Uninstalls an Add-On from Continuum

Required Arguments:

Returns: success on success, errors otherwise.

ctm-untag-object 

Removes a security Tag from an object.

REQUIRED PARAMETERS
    -t,--tag                 The name of the Tag.
    -o,--object_id           The ID of the object.
    -y,--object_type         The numeric object type of the object.
                                  (User = 1, Asset = 2, Task = 3)

Examples

To untag a task using task uuid and the task object type

ctm-untag-object -t "development" -o "7f17e600-794f-11e3-bb4c-c8bcc89d4845" -y 3

Associated API: remove_object_tag

Removes a Tag from an object.

Only users with the following roles can remove a tag from an object: ["System Administrator", "Team Administrator"].

Required Arguments:

Returns: Success message if successful, error message on failure.

ctm-update-user 

Updates a User account, Authentication type will be set to SSO if SSO is enabled in this instance

REQUIRED PARAMETERS
    -u,--user                The ID or Name of a User account.
OPTIONAL PARAMETERS
    -n,--name                The full name of the user.
    -r,--role                The users role.  (Valid values:
                                  Administrator, Developer, User)
                                  Valid Values: Administrator|Developer|User
    -t,--teams               A list of teams the user belongs to, along
                                  with a role for each team. Teams and roles
                                  are separated by a colon. Team/role pairs
                                  are separated by commas.
    --is-sys-admin           Whether the user should have system
                                  administrator privileges. (Valid values:
                                  True or False)
    --is-shared-asset-mgr    Whether the user should have shared asset
                                  manager privileges. (Valid values: True or
                                  False)
    -e,--email               Email address for the user.  Required if
                                  "password" is omitted.
    -a,--authtype            "local" or "ldap".  Default is "local" if
                                  omitted.
                                  Valid Values: local|ldap
    -f,--forcechange         Require user to change password. Default
                                  is "true" (1) if omitted. (Valid values: 0
                                  or 1).
                                  Valid Values: 0|1
    -s,--status              Status of the new account. Default is
                                  "enabled" if omitted. (Valid values:
                                  enabled, disabled, locked)
                                  Valid Values: enabled|disabled|locked
    -x,--expires             Expiration date for this account.  Must be
                                  in mm/dd/yyyy format.
    -g,--groups              A list of groups the user belongs to.
                                  Group names cannot contain spaces. Comma
                                  delimited list.
    -c,--contributors        Usernames in source control management
                                  systems related to an user. Comma
                                  delimited list.
    -p,--password            The new password.
    --generate               Generate a new, random password.

Examples

ctm-update-user -u "dave.thomas" -s "disabled"  --force

Associated API: update_user

Updates a user account.

Only users with the role "System Administrator" can update users. If the credentials used for this API call do not have the proper permission, the call will not succeed.

Properties will only be updated if the option is provided. Omitted properties will not be changed.

NOTE: the "username" of a user cannot be changed.

If a user has 'locked' their account by numerous failed login attempts, the flag is reset by setting any property. It's easiest to just set the status to 'enabled'.

Required Arguments:

Optional Arguments:

Returns: A User Object.

ctm-version 

Displays the Version by request from the API.

Examples

ctm-version

Associated API: version

Returns: The Continuum version.

ctm-winrm 

Test WinRM connections and issue commands.

OPTIONAL PARAMETERS
    -s,--server              Windows server address.
    -u,--user                Windows User with WinRM permissions.
    -p,--password            Windows User Password.
    -a,--asset               The ID or Name of an Asset to use instead
                                  of --server, --user and --password.
    -k,--kerberos            Use Kerberos (Domain) authentication.
    -c,--command             A command to execute via WinRM.

Examples

ctm-winrm -uusername -ppassword -sserver -c"dir c:"

Associated API: winrm_command

#INTERNAL Test connectivity or issue Windows Remote Management commands on a defined Asset.

Required Arguments:

OR

Optional Arguments:

Returns: The result of the command, or errors.