ApplicationObject's refreshall limits to 50 results

Đang mở
#602 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
35/100
Loại issue
Tài liệu
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
python
Lĩnh vực
api, documentation

Hướng nghiên cứu

Start with examples/bulk_address_objects.py, linked in the issue, and review how ApplicationObject.refreshall is presented there. Document the 50-object pagination behavior and the supported way to retrieve additional objects, if one is available in the SDK. The documentation is done when users can understand the limit and how to fetch all results.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

documentation

Documentation link

https://github.com/PaloAltoNetworks/pan-os-python/blob/develop/examples/bulk_address_objects.py

Describe the problem

The documentation does not mention that the Panorama SDK paginates Application objects with a default limit of 50, and the pan-os-sdk does not automatically handle pagination.

As a result, calling:

objects = ApplicationObject.refreshall(panorama)

returns only 50 application objects, even when more exist.

There is also no documented method in the SDK (such as chunk_size or limit) to override the limit or to auto-paginate, which leads to confusion.

Is it possible to fetch all the objects using pagination or any other approach ?

Ngôn ngữ chính
Python
Star
402
Fork
199
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

Mở trong Codespaces

Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của PaloAltoNetworks/pan-os-python

Tất cả issue của PaloAltoNetworks/pan-os-python

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.