update_link_routing_rule
¶
update_link_routing_rule(
gateway_id: GatewayId,
link_id: LinkId,
rule_id: RuleId,
priority: RulePriority,
conditions: RuleCondition,
*,
config_overrides: Optional[RTBFabricClientConfig] = None,
client_token: Optional[str] = None,
) -> UpdateLinkRoutingRuleResponse
Updates a routing rule for a link.
Parameters:
-
gateway_id(GatewayId) –The unique identifier of the gateway.
-
link_id(LinkId) –The unique identifier of the link.
-
rule_id(RuleId) –The unique identifier of the routing rule.
-
priority(RulePriority) –The updated priority of the routing rule. Lower numbers are evaluated first. Valid values are 1 to 1000. Priority must be unique among non-deleted rules within a link.
-
conditions(RuleCondition) –The updated conditions for the routing rule. All specified fields must match for the rule to apply. At least one condition field must be set.
-
client_token(Optional[str], default:None) –A unique, case-sensitive identifier for the request. The SDK generates one when you don't.
Raises:
-
AccessDeniedException–The request could not be completed because you do not have sufficient access to perform this action.
-
ConflictException–The request could not be completed because of a conflict in the current state of the resource.
-
InternalServerException–The request could not be completed because of an internal server error. Try your call again.
-
ResourceNotFoundException–The request could not be completed because the resource does not exist.
-
ThrottlingException–The request was denied due to request throttling.
-
ValidationException–The request could not be completed because it fails satisfy the constraints specified by the service.
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
Update a link routing rule Update the conditions of a routing rule
>>> client.update_link_routing_rule(gateway_id='rtb-gw-12345678', link_id='link-87654321', rule_id='rule-abc123def456', priority=20, conditions={'hostHeader': 'api.customer.com', 'pathPrefix': '/openrtb/'})
Source code in docs_src/capo_rtbfabric/_services/rtb_fabric.py
1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 | |