Policy > Security > North South Security > Gateway Firewall > Tls Inspection > Tls Rules

Update TLS rule

Update the TLS rule.
Create new rule if a rule with the rule-id is not already present.
Performance Note: If you want to edit several rules in a TLS policy,
prefer below mentioned API for optimal performance.
Pass all the rules which you wish to edit as embedded rules to it.
Use this API - PATCH (or PUT)
/infra/tls-inspection-policies/<policy-id>

Request:

Method:
PUT
URI Path(s):
/policy/api/v1/infra/tls-inspection-policies/<policy-id>/rules/<rule-id>
Request Headers:
n/a
Query Parameters:
n/a
Request Body:
TlsRule+

Example Request:

PUT https://<policy-mgr>/policy/api/v1/infra/tls-inspection-policies/default/rules/rule1 { "sequence_number": 0, "source_groups": [ "/infra/domains/default/groups/source1", ], "services": ["/infra/services/HTTP"], "logged": false, "destination_groups": [ "/infra/domains/default/groups/destination1", ], "scope": [ "/infra/tier-0s/pepsi" ], "tls_profile": "/infra/tls-inspection-action-profiles/external-1", "_revision": 1 }

Successful Response:

Response Code:
200 OK
Response Headers:
Content-type: application/json
Response Body:
TlsRule+

Example Response:

{ "resource_type": "TlsRule", "description": "rule1", "id": "rule1", "display_name": "rule1", "path": "/infra/tls-inspection-policies/default/rules/rule1", "parent_path": "/infra/tls-inspection-policies/default", "relative_path": "rule1", "sequence_number": 0, "source_groups": [ "/infra/domains/default/groups/source1", ], "logged": false, "destination_groups": [ "/infra/domains/default/groups/destination1", ], "scope": [ "/infra/tier-0s/coke" ], "services": [ "/infra/services/HTTP" ], "context_profiles": [ "/infra/context-profiles/HTTP", "/infra/context-profiles/HTTP2" ], "_create_user": "admin", "_create_time": 1516386404233, "_last_modified_user": "admin", "_last_modified_time": 1516431370604, "_system_owned": false, "_protection": "NOT_PROTECTED", "_revision": 2 }

Required Permissions:

crud

Feature:

policy_edge_tls

Additional Errors: