piolink_yhoh / piolink_yhoh.pask_test / 1.0.5 / module / pask_prest Configuring PAS-K setting by using the PREST API. | "added in version" 2.10 of piolink_yhoh.pask_test" Authors: Yohan Oh (@piolink-yhoh)piolink_yhoh.pask_test.pask_prest (1.0.5) — module
Install with ansible-galaxy collection install piolink_yhoh.pask_test:==1.0.5
collections: - name: piolink_yhoh.pask_test version: 1.0.5
You can configure PAS-K setting by using the PREST API.
--- - name: Prest Test hosts: all connection: local collections: - piolink_yhoh.pask_test tasks: - name: Configure terminal setting pask_prest : prest_ip: "{{ansible_host}}" prest_port: "{{ansible_port}}" user_id: "{{user_id}}" user_pw: "{{user_pw}}" uri: "/prestapi/v2/conf/terminal" data: > { "timeout" : "60", "length" : "80" } method: "put"
uri: description: - Enter the uri to use PREST API. required: true type: str data: description: - Enter the body data to use PREST API. - The data must be in json format. type: str method: description: - Enter the method of PREST API. - The value should be 'get', 'post', 'put' or 'delete'. type: str user_id: description: - Enter the PAS-K user id. required: true type: str user_pw: description: - Enter the PAS-K user password. required: true type: str prest_ip: description: - Enter the PAS-K IP address. required: true type: str prest_port: description: - Enter the port number of PAS-K used for PREST-API. required: true type: str