## zowe › ca7 › job-definition › update-corequisite-resource

Modify Corequisite Resource

#### Usage

zowe ca7 job-definition update-corequisite-resource [options]

#### Required Options

- `--job-name` | `--jn` (string)

  - Specifies the job name on which the indicated function is performed.
    Limits: 1 to 8 alphanumeric characters

- `--resource-name` | `--rn` (string)

  - Specifies the resource name being connected to the job.
    Limits: 1 to 44 characters, the first character must be nonblank, and no embedded blanks
    Exception: If the resource connection is made to a resource count resource,
    the resource name can be from 1 to 39 characters followed by a / (slash) and
    a 1 through 4 numeric value indicating the number of occurrences for the resource that the job uses.

#### Options

- `--schid` (string)

  - (Optional) Specifies the schedule ID (of this job) for which a user requirement is applied.
    A zero default cannot be specified for one connection and a nonzero schedule ID used for
    a subsequent connection to the same job with the same user requirement description.
    An attempt to make such a connection results in an error message that is issued.
    Default: 0, which indicates that the requirement holds for all schedule IDs
    Limits: 1 to 3 numeric characters from 0 through 999

- `--ready-when` | `--rw` (string)

  - Determines how VRM manages resource availability at job submission and job/step completion.
    Default: A
    Valid values are:
    A
    Specifies the job is submitted only if the resource is active (as established by the PRSQA command).I
    Specifies the job is submitted only if the resource is not active.

#### CA7 Connection Options

- `--host` | `-H` (string)

  - Host name of the CA7 API service that is running on the mainframe system.

- `--port` | `-P` (number)

  - Port for the CA7 API service that is running on the mainframe system.

- `--user` | `-u` (string)

  - User name for authenticating connections to the CA7 API service that is running on the mainframe system.

- `--password` | `--pass` | `--pw` (string)

  - Password for authenticating connections to the CA7 API service that is running on the mainframe system.

- `--base-path` | `--bp` (string)

  - The base path for your 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 API mediation layer.

- `--protocol` | `-o` (string)

  - Specifies protocol to use for CA7 connection (http or https).

    Allowed values: http, https

#### Profile Options

- `--ca7-profile` | `--ca7-p` (string)

  - The name of a (ca7) profile to load for this command execution.

- `--base-profile` | `--base-p` (string)

  - The name of a (base) profile to load for this command execution.

#### Base Connection Options

- `--reject-unauthorized` | `--ru` (boolean)

  - Reject self-signed certificates.

    Default value: true

- `--token-type` | `--tt` (string)

  - The type of token to get and use for the API. Omit this option to use the default token type, which is provided by 'zowe auth login'.

- `--token-value` | `--tv` (string)

  - The value of the token to pass to the API.

- `--cert-file` (local file path)

  - 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.

- `--cert-key-file` (local file path)

  - The file path to a certificate key file to use for authentication

#### Examples

- Updates a job named JOBA with resource name RESOURCE.NAME, schedule id 42 and job is submitted only if the resource is not active:

  - `zowe ca7 job-definition update-corequisite-resource --jn JOBA --rn RESOURCE.NAME --schid 42 --rw I`