You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: scaleway-async/scaleway_async/lb/v1/api.py
+14Lines changed: 14 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -1512,6 +1512,7 @@ async def create_frontend(
1512
1512
lb_id: str,
1513
1513
backend_id: str,
1514
1514
enable_http3: bool,
1515
+
enable_access_logs: bool,
1515
1516
zone: Optional[ScwZone] =None,
1516
1517
name: Optional[str] =None,
1517
1518
timeout_client: Optional[str] =None,
@@ -1526,6 +1527,7 @@ async def create_frontend(
1526
1527
:param lb_id: Load Balancer ID (ID of the Load Balancer to attach the frontend to).
1527
1528
:param backend_id: Backend ID (ID of the backend the frontend should pass traffic to).
1528
1529
:param enable_http3: Defines whether to enable HTTP/3 protocol on the frontend.
1530
+
:param enable_access_logs: Defines wether to enable access logs on the frontend.
1529
1531
:param zone: Zone to target. If none is passed will use default zone from the config.
1530
1532
:param name: Name for the frontend.
1531
1533
:param timeout_client: Maximum allowed inactivity time on the client side.
@@ -1542,6 +1544,7 @@ async def create_frontend(
1542
1544
lb_id="example",
1543
1545
backend_id="example",
1544
1546
enable_http3=False,
1547
+
enable_access_logs=False,
1545
1548
)
1546
1549
"""
1547
1550
@@ -1557,6 +1560,7 @@ async def create_frontend(
1557
1560
lb_id=lb_id,
1558
1561
backend_id=backend_id,
1559
1562
enable_http3=enable_http3,
1563
+
enable_access_logs=enable_access_logs,
1560
1564
zone=zone,
1561
1565
name=nameorrandom_name(prefix="lbf"),
1562
1566
timeout_client=timeout_client,
@@ -1616,6 +1620,7 @@ async def update_frontend(
1616
1620
certificate_id: Optional[str] =None,
1617
1621
certificate_ids: Optional[List[str]] =None,
1618
1622
connection_rate_limit: Optional[int] =None,
1623
+
enable_access_logs: Optional[bool] =None,
1619
1624
) ->Frontend:
1620
1625
"""
1621
1626
Update a frontend.
@@ -1630,6 +1635,7 @@ async def update_frontend(
1630
1635
:param certificate_id: Certificate ID, deprecated in favor of certificate_ids array.
1631
1636
:param certificate_ids: List of SSL/TLS certificate IDs to bind to the frontend.
1632
1637
:param connection_rate_limit: Rate limit for new connections established on this frontend. Use 0 value to disable, else value is connections per second.
1638
+
:param enable_access_logs: Defines wether to enable access logs on the frontend.
1633
1639
:return: :class:`Frontend <Frontend>`
1634
1640
1635
1641
Usage:
@@ -1662,6 +1668,7 @@ async def update_frontend(
1662
1668
certificate_id=certificate_id,
1663
1669
certificate_ids=certificate_ids,
1664
1670
connection_rate_limit=connection_rate_limit,
1671
+
enable_access_logs=enable_access_logs,
1665
1672
),
1666
1673
self.client,
1667
1674
),
@@ -4553,6 +4560,7 @@ async def create_frontend(
4553
4560
lb_id: str,
4554
4561
backend_id: str,
4555
4562
enable_http3: bool,
4563
+
enable_access_logs: bool,
4556
4564
region: Optional[ScwRegion] =None,
4557
4565
name: Optional[str] =None,
4558
4566
timeout_client: Optional[str] =None,
@@ -4566,6 +4574,7 @@ async def create_frontend(
4566
4574
:param lb_id: Load Balancer ID (ID of the Load Balancer to attach the frontend to).
4567
4575
:param backend_id: Backend ID (ID of the backend the frontend should pass traffic to).
4568
4576
:param enable_http3: Defines whether to enable HTTP/3 protocol on the frontend.
4577
+
:param enable_access_logs: Defines wether to enable access logs on the frontend.
4569
4578
:param region: Region to target. If none is passed will use default region from the config.
4570
4579
:param name: Name for the frontend.
4571
4580
:param timeout_client: Maximum allowed inactivity time on the client side.
@@ -4582,6 +4591,7 @@ async def create_frontend(
4582
4591
lb_id="example",
4583
4592
backend_id="example",
4584
4593
enable_http3=False,
4594
+
enable_access_logs=False,
4585
4595
)
4586
4596
"""
4587
4597
@@ -4599,6 +4609,7 @@ async def create_frontend(
4599
4609
lb_id=lb_id,
4600
4610
backend_id=backend_id,
4601
4611
enable_http3=enable_http3,
4612
+
enable_access_logs=enable_access_logs,
4602
4613
region=region,
4603
4614
name=nameorrandom_name(prefix="lbf"),
4604
4615
timeout_client=timeout_client,
@@ -4659,6 +4670,7 @@ async def update_frontend(
4659
4670
certificate_id: Optional[str] =None,
4660
4671
certificate_ids: Optional[List[str]] =None,
4661
4672
connection_rate_limit: Optional[int] =None,
4673
+
enable_access_logs: Optional[bool] =None,
4662
4674
) ->Frontend:
4663
4675
"""
4664
4676
Update a frontend.
@@ -4672,6 +4684,7 @@ async def update_frontend(
4672
4684
:param certificate_id: Certificate ID, deprecated in favor of certificate_ids array.
4673
4685
:param certificate_ids: List of SSL/TLS certificate IDs to bind to the frontend.
4674
4686
:param connection_rate_limit: Rate limit for new connections established on this frontend. Use 0 value to disable, else value is connections per second.
4687
+
:param enable_access_logs: Defines wether to enable access logs on the frontend.
0 commit comments