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

Update TLS policy

Update the TLS policy. This is a full replace.
All the rules are replaced.
Performance Note: If you want to edit several rules in a TLS policy,
use this API. It will perform better than several individual rule APIs.
Just pass all the rules which you wish to edit as embedded rules to it.

Request:

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

Example Request:

PUT https://<policy-mgr>/policy/api/v1/infra/tls-inspection-policies/default { "category": "SharedPreRules", "rules": [ { "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" ], "tls_profile": "/infra/tls-inspection-action-profiles/external-1", "_revision": 3 } ], "_revision": 4 }

Successful Response:

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

Example Response:

{ "resource_type": "TlsPolicy", "id": "default", "display_name": "default", "path": "/infra/tls-inspection-policies/default" "parent_path": "/infra", "relative_path": "default", "category": "SharedPreRules", "rules": [ { "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" ], "tls_profile": "/infra/tls-inspection-action-profiles/external-1", "_create_user": "admin", "_create_time": 1516386404233, "_last_modified_user": "admin", "_last_modified_time": 1516431370604, "_system_owned": false, "_protection": "NOT_PROTECTED", "_revision": 3 } ], "sequence_number": 0, "internal_sequence_number": 20000, "_create_user": "admin", "_create_time": 1516295469775, "_last_modified_user": "admin", "_last_modified_time": 1516432061797, "_system_owned": false, "_protection": "NOT_PROTECTED", "_revision": 5 }

Required Permissions:

crud

Feature:

policy_edge_tls

Additional Errors: