NSX-T Data Center REST API
Create or update a ALBHTTPPolicySet
If a ALBHTTPPolicySet with the alb-HTTPPolicySet-id is notalready 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:
{ "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" } } ] } }Successful Response:
Response Code:
200 OK
Response Headers:
Content-type: application/json
Response Body:
ALBHTTPPolicySet+