Policy > Networking > Network Services > Advanced Load Balancing > Alb Error Page Profiles

Create or update a ALBErrorPageProfile

If a ALBErrorPageProfile with the alb-ErrorPageProfile-id is not
already present, create a new ALBErrorPageProfile. If it already exists,
update the ALBErrorPageProfile. 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-error-page-profiles/<alb-errorpageprofile-id>
Request Headers:
n/a
Query Parameters:
n/a
Request Body:
ALBErrorPageProfile+

Example Request:

{ "error_pages": [ { "enable": true, "error_page_body_path": "/infra/alb-error-page-bodies/Custom-Error-Page", "index": 0, "match": { "match_criteria": "IS_IN", "status_codes": [ 401 ] } } ], "name": "test-error-page-1" }

Successful Response:

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

Example Response:

{ "_create_time": 1598508264959, "_create_user": "admin", "_last_modified_time": 1598508264965, "_last_modified_user": "admin", "_protection": "NOT_PROTECTED", "_revision": 0, "_system_owned": false, "display_name": "test-error-page-1", "error_pages": [ { "enable": true, "error_page_body_path": "/infra/alb-error-page-bodies/Custom-Error-Page", "index": 0, "match": { "match_criteria": "IS_IN", "status_codes": [ 401 ] } } ], "id": "test-error-page-1", "marked_for_delete": false, "name": "test-error-page-1", "overridden": false, "parent_path": "/infra", "path": "/infra/alb-error-page-profiles/test-error-page-1", "relative_path": "test-error-page-1", "resource_type": "ALBErrorPageProfile", "unique_id": "132a93b7-485a-4032-9e96-f1c732374cef" }

Required Permissions:

crud

Feature:

policy_lb

Additional Errors: