Skip to content

Issue with zscaler.zpacloud.zpa_application_segment_info results #74

@ngf-davef-devops

Description

@ngf-davef-devops

Describe the bug

The zscaler.zpacloud.zpa_application_segment_info module does not return the full list of application segments, only a partial list.

When a specific name is given to the module, the success depends on where in the UI that name sits.

Expected behavior

When queried without a specific application segment name, the module should return a full list of results; and when given a specific valid name, it should return the info for that segment.

Current behavior

Running the example code to list all application segments produces a partial list of the current segments but the results appear to be limited to items found on the first page of the UI.

Running the example code with the name of an application segment found on the first page of the UI results in success, and displays the expected result. If the name of the application segment is found on other pages (in our tenant, we have three pages of application segments), then the module fails and specifies what it considers to be valid names, which only appear on page one of the UI.

Possible solution

Looking through the previous issues, I see issue #69, which appears to be similar in nature?

Steps to reproduce

  1. Install prerequisites and collection as described
  2. Configure API credentials as required
  3. Run example code below to receive a partial list of application segments:
- name: Retrieve Details of All Application Segments  
  zscaler.zpacloud.zpa_application_segment_info:  
    provider: "{{ zpa_cloud }}"
  1. Run the example code below to fail / succeed depending on where in the UI the application segment name falls
- name: Retrieve Details of a Specific Application Segments by Name  
    zscaler.zpacloud.zpa_application_segment_info:  
      provider: "{{ zpa_cloud }}"  
      name: "Example Application Segment"  
    register: app_segment_info  
  
- name: App Connector Groups by Name  
   ansible.builtin.debug:  
     msg: "{{ app_segment_info }}"

Context

Unable to use the Ansible collection to manage ZPA. We'd prefer to be able to integrate our ZPA management activities into our ansible workflow, rather than spawning separate toolsets.

Your Environment

  • Collection: 2.0.6
  • Python: 3.12.3
  • Ansible: core 2.18.6
  • Zscaler SDK Python Library: 1.6.0

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

Projects

Status

🚀 Shipped

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions