Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Error using FlowLogCaptureFilterRuleDetails

Đang mở
#652 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ó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
25/100
Loại issue
Lỗi
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Đình trệ
Công nghệ
python
Lĩnh vực
api, cloud, networking

Hướng nghiên cứu

Bắt đầu từ core_client.update_capture_filter và tài liệu được liên kết về FlowLogCaptureFilterRuleDetails và UpdateCaptureFilterDetails. Tái hiện request bằng các phiên bản SDK và Python được nêu, bật hướng dẫn logging OCI được tham chiếu và so sánh các yêu cầu của thao tác; được xem là hoàn tất khi xác định được một vấn đề đã được ghi nhận trong request hoặc thu thập đủ bằng chứng cho tuyến dịch vụ/hỗ trợ.

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

Mô tả

Networking

I'm trying to modify the sampling rate on all Capture Filters across my tenancy but it's not working. See details below.

Link to Function
https://docs.oracle.com/en-us/iaas/tools/python/2.126.4/api/core/models/oci.core.models.FlowLogCaptureFilterRuleDetails.html#oci.core.models.FlowLogCaptureFilterRuleDetails

Sample Code

core_client = oci.core.VirtualNetworkClient(config)
cf_example = "ocid1.capturefilter.oc1.eu-frankfurt-1.amaaaaaaww2hzvaajbm5445qz57sl5x6ireqfogmz2ds62zw2h2hpxtuamka"

update_capture_filter_response = core_client.update_capture_filter(
capture_filter_id=cf_example,
update_capture_filter_details=oci.core.models.UpdateCaptureFilterDetails(
                              display_name="PrivateSubnet2-cf_aa",
                              flow_log_capture_filter_rules=[oci.core.models.FlowLogCaptureFilterRuleDetails(
                                                             sampling_rate=86872)]))
print(update_capture_filter_response.data)

Error
oci.exceptions.TransientServiceError: {'target_service': 'virtual_network', 'status': 500, 'code': 'InternalError', 'opc-request-id': '8E4529356EB546E6A85DACE4BD26AB43/B59BE8CC8BCDC54DB06389CC8F6383F6/256BDF0A97F27DB1AC9A7064DDF4135F', 'message': 'Internal error occurred', 'operation_name': 'update_capture_filter', 'timestamp': '2024-05-27T14:00:49.573169+00:00', 'client_version': 'Oracle-PythonSDK/2.127.0', 'request_endpoint': 'PUT https://iaas.eu-frankfurt-1.oraclecloud.com/20160918/captureFilters/ocid1.capturefilter.oc1.eu-frankfurt-1.amaaaaaaww2hzvaajbm5445qz57sl5x6ireqfogmz2ds62zw2h2hpxtuamka', 'logging_tips': 'To get more info on the failing request, refer to https://docs.oracle.com/en-us/iaas/tools/python/latest/logging.html for ways to log the request/response details.', 'troubleshooting_tips': "See https://docs.oracle.com/iaas/Content/API/References/apierrors.htm#apierrors_500__500_internalerror for more information about resolving this error. Also see https://docs.oracle.com/iaas/api/#/en/iaas/20160918/CaptureFilter/UpdateCaptureFilter for details on this operation's requirements. If you are unable to resolve this virtual_network issue, please contact Oracle support and provide them this full error message."}

OCI Version in Python

(oci_sdk_env) PS C:\Users\wgibbs\source\oci> pip show oci
Name: oci
Version: 2.127.0
Summary: Oracle Cloud Infrastructure Python SDK
Home-page: https://docs.oracle.com/en-us/iaas/tools/python/latest/index.html
Author: Oracle
Author-email: joe.levy@oracle.com
License: Universal Permissive License 1.0 or Apache License 2.0
Location: c:\users\wgibbs\source\oci\oci_sdk_env\lib\site-packages
Requires: certifi, circuitbreaker, cryptography, pyOpenSSL, python-dateutil, pytz
Required-by:

Python Version

python.exe --version
Python 3.8.5
Ngôn ngữ chính
Python
Star
474
Fork
321
Merge trung bình
23 phút
Pull request đã merge (30 ngày)
4

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

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 oracle/oci-python-sdk

Tất cả issue của oracle/oci-python-sdk

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.