Skip to content
This repository has been archived by the owner on Jun 17, 2024. It is now read-only.

Latest commit

 

History

History
68 lines (52 loc) · 2.2 KB

File metadata and controls

68 lines (52 loc) · 2.2 KB

DataStage assets

<- Back to the overview

Exports

The export will be generate an ISX file that could be separately processed through the istool command-line.

export:
  datastage:
    - into: <path>
      from_project: <string>
      including_objects:
        - type: <string>
          changes_in_last_hours: <int>
          only_with_conditions:
            - { property: "<string>", operator: "<string>", value: "<value>" }
            - ...
        - ...
    - ...

In addition to the file into which to extract the assets, at least one type should be specified under including_objects. Each type must be one of dsjob, routine, shared_container, table_definition or parameter_set.

  • only_with_conditions are purely optional and are currently always AND'd (all conditions must be met). Any conditions specified should be within the context of the specified asset type.
  • changes_in_last_hours is also optional; if used, specify the number of hours prior to the playbook running from which to identify (and extract) any changes of the specified type.

Ingests

ingest:
  datastage:
    - from: <path>
      into_project: <string>
      with_options:
        overwrite: <boolean>
    - ...

The only required parameters for the ingest are the file from which to load the assets and the into_project project name into which to load them.

The options under with_options are all optional:

  • overwrite specifies whether to overwrite any existing assets with the same identities.

Note that because design-time lineage depends on the resolution of job parameters, parameter_sets should be ingested before any other DataStage asset types to ensure that eg. dsjob ingest picks up the design time parameters for appropriate design-time lineage.

Examples

export:
  datastage:
    - into: cache/ds_dstage1_jobs_changes_in_last48hrs.isx
      from_project: dstage1
      including_objects:
        - type: dsjob
          changes_in_last_hours: 48

ingest:
  datastage:
    - from: cache/ds_dstage1_jobs_changes_in_last48hrs.isx
      into_project: dstage1
      with_options:
        overwrite: True

<- Back to the overview