Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Page Properties
hiddentrue
idmettleci-cli

Namespace

datastage

Command

cleanup-projects

Plugin Name

datastage

Plugin File

dm-dsadmin-plugin.jar

Credentials

IS/DS

...

Include Page
datastage cleanup-projects command syntax
datastage cleanup-projects command syntax

Example

Code Block
languagebash
datastage$> cleanup-projects      Usage:mettleci datastage cleanup-projects [options]
      \
 Options:         * -domain              Services Tier (required)
        * -password
             Password (required)
        * -pattern
             Search pattern for existing projects, sorted in natural order
             (required)
      my-services.datamigrators.io:59445 \
   -username isadmin \
   -retainpassword isadminpwd \
           Number of projects matching the search pattern to be retained,
             counting backwards from the end (optional)
             Default: 0
        * -server
             Engine Tier (required)
        * -username
             User Name (required)

eg:
$> command-shell.sh datastage cleanup-projects -domain test2-svcs-server my-engine.datamigrators.io:59445 -username isadmin -password isadminpwd -server test2-engn.datamigrators.io \
   -pattern Test[0-9] \
   -retain 1
Listing projects:
  - ANALYZERPROJECT
  - DataClick
  - dfd_test
  - dstage1
  - Test1
    - matches pattern
  - Test2
    - matches pattern
  - Test4
    - matches pattern
  - SWPensionStrategy
  - wwi_prod
Cleaning up old projects, retaining 1 most recent projects
 * Delete 'test2-engn.datamigrators.io/Test4' - SKIPPED
Deleting project: SNTest2
 * Delete 'test2-engn.datamigrators.io/Test2' - COMPLETED
Deleting project: SNTest1
 * Delete 'test2-engn.datamigrators.io/Test1' - COMPLETED

...