sa_delete_dynamic_resource – Role deletes a dynamic resource
Synopsis
The IBM Z System Automation collection provides an Ansible role, referred to as sa_delete_dynamic_resource, to delete a dynamic resource instance.
Parameters
- sa_service_hostname
Specifies the IBM Z System Automation Operations REST server host name.
required: Truetype: str- sa_service_port
Specifies the port to which the IBM Z Automation Operations REST service is bound.
required: Truetype: str- sa_service_protocol
Specifies the protocol that is configured for the IBM Z Automation Operations REST server.
required: Truetype: strdefault: HTTPS- sa_rest_api_timeout
Specifies the socket level timeout for the REST API call in seconds.
required: Falsetype: intdefault: 30- username
Specifies the NetView user.
required: Truetype: str- password
Specifies the password for above user.
required: Truetype: str- subsystem
Specifies the exact name (subsystem name) of the resource.
The maximum length for this value is 11.
required: Truetype: str- system
Specifies the system for the resource.
The maximum length for this value is 8.
required: Truetype: str
Examples
- name: delete an SA resource
hosts: sampleHost
gather_facts: no
collections:
- ibm.ibm_zos_sysauto
vars_files:
- vars.yaml
vars_prompt:
- name: username
prompt: "Enter your username"
private: no
- name: password
prompt: "Enter your password"
private: yes
tasks:
- include_role:
name: sa_delete_dynamic_resource
Notes
Note
The given example assumes that you have an inventory file hosts and host vars sampleHost.yaml with appropriate values to identify the target IBM Z System Automation Operations REST server end points.
Also a vars.yaml which stores the required values for the dynamic resource that you want to delete is required.