Policy > Networking > Network Services > Advanced Load Balancing > Alb HTTP Policy Sets

Create or update a ALBHTTPPolicySet

If a ALBHTTPPolicySet with the alb-HTTPPolicySet-id is not
already present, create a new ALBHTTPPolicySet. If it already exists,
update the ALBHTTPPolicySet. This is a full replace.
This API is only available when using VMware NSX-T.

Request:

Method:
PUT
URI Path(s):
/policy/api/v1/infra/alb-http-policy-sets/<alb-httppolicyset-id>
Request Headers:
n/a
Query Parameters:
n/a
Request Body:
ALBHTTPPolicySet+

Example Request:

{ "http_request_policy": { "rules": [ { "enable": true, "index": 0, "name": "rule-1", "redirect_action": { "keep_query": true, "path": { "tokens": [ { "end_index": 1, "start_index": 1, "str_value": "string", "type": "URI_TOKEN_TYPE_STRING" } ], "type": "URI_PARAM_TYPE_TOKENIZED" }, "port": 80, "protocol": "HTTP", "status_code": "HTTP_REDIRECT_STATUS_CODE_302" } } ] }, "name": "test-http_policy-set" }

Successful Response:

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

Example Response:

{ "_create_time": 1598511584700, "_create_user": "admin", "_last_modified_time": 1598511584713, "_last_modified_user": "admin", "_protection": "NOT_PROTECTED", "_revision": 0, "_system_owned": false, "display_name": "test-http_policy-set", "http_request_policy": { "rules": [ { "enable": true, "index": 0, "name": "rule-1", "redirect_action": { "keep_query": true, "path": { "tokens": [ { "end_index": 1, "start_index": 1, "str_value": "string", "type": "URI_TOKEN_TYPE_STRING" } ], "type": "URI_PARAM_TYPE_TOKENIZED" }, "port": 80, "protocol": "HTTP", "status_code": "HTTP_REDIRECT_STATUS_CODE_302" } } ] }, "id": "test-http_policy-set", "is_internal_policy": false, "marked_for_delete": false, "name": "test-http_policy-set", "overridden": false, "parent_path": "/infra", "path": "/infra/alb-http-policy-sets/test-http_policy-set", "relative_path": "test-http_policy-set", "resource_type": "ALBHTTPPolicySet", "unique_id": "b0da846c-5038-419b-87f9-dffe1f9aa6f8" }

Required Permissions:

crud

Feature:

policy_lb

Additional Errors: