Update Http Response Rules
Update HTTP response rules of a Virtual Service.
Request
URI
PUT
https://{api_host}/cloudapi/1.0.0/loadBalancer/virtualServices/{virtualServiceId}/httpPolicy/responseRules
COPY
Path Parameters
string
virtualServiceId
Required
virtualServiceId
string
virtualServiceId
Required
virtualServiceId
Request Body
EdgeVirtualServiceHttpResponseRules 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"
],
"cookieMatch": {
"matchCriteria": "string",
"key": "string",
"value": "string"
},
"locationHeaderMatch": {
"matchCriteria": "string",
"value": [
"string"
]
},
"requestHeaderMatch": [
{
"matchCriteria": "string",
"value": [
"string"
],
"key": "string"
}
],
"responseHeaderMatch": [
{
"matchCriteria": "string",
"value": [
"string"
],
"key": "string"
}
],
"statusCodeMatch": {
"matchCriteria": "string",
"statusCodes": [
"200",
"302",
"400-450"
]
}
},
"headerActions": [
{
"action": "string",
"name": "string",
"value": "string"
}
],
"rewriteLocationHeaderAction": {
"protocol": "string",
"host": "string",
"port": 0,
"path": "string",
"keepQuery": false
}
}
]
}
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
Availability
Added in 38.0
On This Page
Edge Gateway Load Balancer Virtual Service Operations
POST
Apply Virtual Service Waf Recommendations
DELETE
Delete Virtual Service
GET
Get Http Request Rules
GET
Get Http Response Rules
GET
Get Http Security Rules
GET
Get Virtual Service
GET
Get Virtual Service Http Log Details
GET
Get Virtual Service Http Log Summaries
GET
Get Virtual Service L4 Log Summaries
GET
Get Virtual Service Waf Allowlist
GET
Get Virtual Service Waf Config
GET
Get Virtual Service Waf Crs Info
GET
Get Virtual Service Waf Recommendations
GET
Get Virtual Service Waf Signature Group
GET
Get Virtual Service Waf Signature Groups
GET
Get Virtual Service Waf Signatures
POST
Reset Virtual Service Waf Config
POST
Reset Virtual Service Waf Signature Groups
PUT
Update Http Request Rules
PUT
Update Http Response Rules
PUT
Update Http Security Rules
PUT
Update Virtual Service
PUT
Update Virtual Service Waf Allowlist
PUT
Update Virtual Service Waf Config
PUT
Update Virtual Service Waf Signature Group
PUT
Update Virtual Service Waf Signatures
POST
Upgrade Virtual Service Waf Crs Config