piolink_yhoh.pask_test.pask_prest (1.0.5) — module

Configuring PAS-K setting by using the PREST API.

| "added in version" 2.10 of piolink_yhoh.pask_test"

Authors: Yohan Oh (@piolink-yhoh)

Install collection

Install with ansible-galaxy collection install piolink_yhoh.pask_test:==1.0.5


Add to requirements.yml

  collections:
    - name: piolink_yhoh.pask_test
      version: 1.0.5

Description

You can configure PAS-K setting by using the PREST API.


Requirements

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
---
- 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"

Inputs

    
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