Update Http Security Rules

Update Http Security Rules

Update HTTP security rules of a Virtual Service.

Request
URI
PUT
https://{api_host}/cloudapi/1.0.0/loadBalancer/virtualServices/{virtualServiceId}/httpPolicy/securityRules
COPY
Path Parameters
string
virtualServiceId
Required

virtualServiceId


Request Body
EdgeVirtualServiceHttpSecurityRules of type(s) application/json
Required
{
    "values": [
        {
            "name": "string",
            "active": false,
            "logging": false,
            "matchCriteria": {
                "clientIpMatch": {
                    "matchCriteria": "string",
                    "addresses": [
                        "string"
                    ]
                },
                "servicePortMatch": {
                    "matchCriteria": "string",
                    "ports": [
                        0
                    ]
                },
                "methodMatch": {
                    "matchCriteria": "string",
                    "methods": [
                        "string"
                    ]
                },
                "protocol": "string",
                "pathMatch": {
                    "matchCriteria": "string",
                    "matchStrings": [
                        "string"
                    ]
                },
                "queryMatch": [
                    "string"
                ],
                "headerMatch": [
                    {
                        "matchCriteria": "string",
                        "value": [
                            "string"
                        ],
                        "key": "string"
                    }
                ],
                "cookieMatch": {
                    "matchCriteria": "string",
                    "key": "string",
                    "value": "string"
                }
            },
            "allowOrCloseConnectionAction": "string",
            "rateLimitAction": {
                "count": 0,
                "period": 0,
                "closeConnectionAction": "string",
                "redirectAction": {
                    "statusCode": 0
                },
                "localResponseAction": {
                    "statusCode": 0,
                    "contentType": "string",
                    "content": "string"
                }
            },
            "redirectToHttpsAction": {
                "port": 0
            },
            "localResponseAction": {
                "statusCode": 0,
                "contentType": "string",
                "content": "string"
            }
        }
    ]
}
array of object
values
Optional
Constraints: maxItems: 100

Defines a HTTP security rule. It consists of a match criteria along with the actions to execute once the criteria is satisfied. If the match criteria is not set, defined actions will be be executed for all requests.

Authentication
This operation uses the following authentication methods.
Responses
202

The request have been accepted and the task to monitor the request is in the Location header.

Operation doesn't return any data structure

Code Samples
COPY
                    curl -X PUT -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '{}' https://{api_host}/cloudapi/1.0.0/loadBalancer/virtualServices/{virtualServiceId}/httpPolicy/securityRules