Creating a Task
Create a runbook task for patch management in Fleet Application Management.
Note
The tasks that you create using this process are shared tasks and can be used by any runbook.
The tasks that you create using this process are shared tasks and can be used by any runbook.
About Discovery Output Template
The following are the details of the discovery output template attributes in Fleet Application Management.
- targets: It contains targets for a specific product. A discovery runbook can return several targets for a product or product stack.
- product: It's an optional attribute for a product's discovery runbook and mandatory for a product stack's discovery runbook because a stack can return several targets for different products. Therefore, Fleet Application Management needs to know the target belongs to which product of the stack. If you don't specify the product attribute for its discovery runbook, Fleet Application Management uses the product associated with the runbook to map the target to the product.
- target_name: The target's home directory.
- version: The version of the product.
- properties: The properties of the product. Use these in the condition builder of the patching runbook to conditionally execute the task.
- components: The components associated with the product. Use these in the condition builder of the patching runbook to conditionally execute a task.
- component (properties): The properties of the component. Use these in the condition builder of the patching runbook to conditionally execute a task.
- resource_name: The name of the Compute instance (optional).
- installed_patches: It contains patches already installed on the target.
- available_patches: It contains patches available for installation on the target (optional).
Use the oci fleet-apps-management fleet-apps-management-runbooks task-record create command and required parameters to create a runbook task:
oci fleet-apps-management fleet-apps-management-runbooks task-record create [OPTIONS]
For a complete list of flags and variable options for Fleet Application Management CLI commands, see the CLI for Fleet Application Management.
Run the CreateTaskRecord operation to create a runbook task.