broadcom.ca7.dataset_create_dataset_trigger (2.0.7) — module

Create Dataset Trigger definition

| "added in version" 1.0.0 of broadcom.ca7"

Authors: Daniel Remta <daniel.remta@broadcom.com> (@broadcom)

| supported by Broadcom

This plugin has a corresponding action plugin.

Install collection

Install with ansible-galaxy collection install broadcom.ca7:==2.0.7


Add to requirements.yml

  collections:
    - name: broadcom.ca7
      version: 2.0.7

Description

Create Dataset Trigger.

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Create a Dataset Trigger definition DATA.SET.NAME with schid 42 for Triggered job JOBA
  broadcom.ca7.dataset_create_dataset_trigger:
    dataset_name: DATA.SET.NAME
    schid: 42
    triggered_job: JOBA
    triggered_job_due_out_time: 0830

Inputs

    
host:
    description:
    - Host name of the CA7 API service that is running on the mainframe system.
    required: true
    type: str

port:
    description:
    - Port for the CA7 API service that is running on the mainframe system.
    required: true
    type: int

user:
    description:
    - User name for authenticating connections to the CA7 API service that is running
      on the mainframe system.
    required: true
    type: str

schid:
    description:
    - (Optional) Specifies for which schedule ID of the triggering dataset the triggered-job
      is scheduled.
    - 'Note: If the data set is one that is tracked with use of SASSXDSN (externally tracked
      data sets), the schid field must be 000 for the trigger to work'
    - 'Default: 0 (all schedule IDs)'
    - 'Limits: 1 to 3 numeric characters from 0 through 999.'
    required: false
    type: str

password:
    description:
    - Password for authenticating connections to the CA7 API service that is running on
      the mainframe system.
    required: true
    type: str

protocol:
    choices:
    - http
    - https
    description:
    - Specifies protocol to use for CA7 connection (http or https).
    required: true
    type: str

base_path:
    description:
    - The base path for your Zowe API Mediation Layer instance. Specify this option to
      prepend the base path to all resources when making REST requests. Do not specify
      this option if you are not using an Zowe API Mediation Layer.
    required: false
    type: str

cert_file:
    description:
    - The file path to a certificate file to use for authentication.
    - ''
    - 'Note: The CLI does not support certificate files that require a password. For more
      information, search Troubleshooting PEM Certificates in Zowe Docs.'
    required: false
    type: path

dataset_name:
    description:
    - (Required if dataset-number is omitted) Specifies the data set name whose creation/update
      causes triggering of a job.
    - 'Note: For VSAM files, specify the cluster name.'
    - 'Limits: 1 to 44 alphanumeric characters.'
    required: false
    type: str

cert_key_file:
    description:
    - The file path to a certificate key file to use for authentication.
    required: false
    type: path

triggered_job:
    description:
    - Specifies the job name that the completion of the triggering dataset triggers.
    - 'Limits: 1 to 8 alphanumeric characters.'
    required: true
    type: str

dataset_number:
    description:
    - (Required if dataset-name is omitted) Specifies the existing data set number whose
      creation causes triggering. The number is the value that CA 7 assigned to the data
      set.
    - 'Limits: 1 to 8 numeric characters.'
    required: false
    type: str

reject_unauthorized:
    default: true
    description:
    - Reject self-signed certificates.
    required: false
    type: bool

triggered_job_schid:
    description:
    - (Optional) Denotes a replacement schedule ID to use when the triggered-job is placed
      into the request queue.
    - 'Default: 0 (no replacement)'
    - 'Limits: 1 to 3 numeric characters from 0 through 999'
    - 'Note: If triggered-job-schid is used, it replaces the schid value of the triggered
      job. Any jobs triggered (by triggered-job or data sets it creates) use this triggered-job-schid
      for their schedule ID unless they also have a triggered-job-schid value.'
    required: false
    type: str

triggered_job_lead_time:
    description:
    - (Optional) Specifies the elapsed lead time for triggered-job rounded to 10-minute
      increments. This parameter specifies the lead or processing time necessary to ensure
      triggered-job meets its due-out time.
    - 'Default: 0000'
    - 'Limits: 4 numeric characters that are specified as hhmm, where hh can be 00 through
      24.'
    - The mm can be 00 through 59, the highest value being 2400.
    required: false
    type: str

triggered_job_queue_time:
    description:
    - (Required if triggered-job-due-out-time is omitted) Specifies the elapsed queue
      time of triggered-job rounded down to 10-minute increments.
    - If this parameter is used, triggered-job-due-out-time must be omitted because due-out
      time is then calculated as deadline time plus runtime.
    - Deadline time is calculated as current date/time plus queue time.
    - 'Limits: 4 numeric characters that are specified as hhmm, where hh can be 00 through
      24.'
    - The mm can be 00 through 59, the highest value being 2400.
    required: false
    type: str

triggered_job_submit_time:
    description:
    - (Optional) Imposes a submit time of day requirement on triggered-job. When used,
      the job is not submitted before this time.
    - The triggered-job-submit-time is always rounded down to 15-minute increments.
    - 'Default: 0 (no specific submit time requirement)'
    - 'Limits: 4 numeric characters that are specified as hhmm, where hh can be 00 through
      24 and mm can be 00 through 59, the highest value being 2400.'
    - 'Note: If triggered-job-queue-time is used, the date for the submit time requirement
      is the same as the deadline start date.'
    - ''
    - If triggered-job-due-out-time is used and the triggered-job-submit-time is less
      than the triggered-job-due-out-time, the date for the triggered-job-submit-time
      is the same as the deadline start date. Otherwise, the triggered-job-submit-time
      date is the previous day.
    required: false
    type: str

triggered_job_due_out_time:
    description:
    - (Required if triggered-job-queue-time is omitted) Specifies the due-out time of
      day of the triggered-job rounded down to 10-minute increments.
    - If this parameter is used, triggered-job-queue-time must be omitted.
    - 'Limits: 4 numeric characters that are specified as hhmm, where hh can be 00 through
      24 and mm can be 00 through 59, the highest value being 2400. If specified, the
      lowest value is 10.'
    - 'Note: If used and the due-out-time of the triggering job is after the triggered-job-due-out-time,
      the following calendar day is assumed.'
    required: false
    type: str

Outputs

data:
  description: Data from the module execution (a data structure). The items of this
    dict are set as individual return values on the top level as well.
  elements: dict
  returned: when returned data is a dictionary
  type: list
error:
  contains:
    additional_details:
      description: Detailed message about the failure.
      type: str
    msg:
      description: Short description of the result or failure.
      type: str
    request:
      description: HTTP method used to invoke API service request.
      returned: API request failed
      type: str
    resource:
      description: URI of the resource of the API service request.
      returned: API request failed
      type: str
  description: More details about why the action has failed. If the failure is when
    calling an API service, the response contains the connection parameters.
  returned: error
  type: complex
failed:
  description: A boolean that indicates if the task was failed or not.
  returned: always
  type: bool
list:
  description: Data from the module execution (a list of data structures).
  elements: dict
  returned: when returned data is a list
  type: list
msg:
  description: Short description of the result or failure.
  returned: sometimes
  type: str
rc:
  description: Exit code of the module, successful exit code is 0, failure is typically
    1 or higher.
  returned: always
  type: int
stderr:
  description: Details of the error.
  returned: error
  type: str
stdout:
  description: Summary of the result.
  returned: success
  type: str