"description":"It is used to indicate nonspecific success. The response body contains a representation of the resource.",
"headers":{},
"content":{
"application/json":{
"schema":{
"$ref":"#/components/schemas/TrafficRule"
},
"examples":{
"TrafficRule":{
"value":{
"trafficRuleId":"TrafficRule123",
"serName":"ExampleService",
"filterType":"FLOW",
"priority":1,
"trafficFilter":[
{
"srcAddress":[
"192.168.2.0/24",
"192.168.3.0/24"
],
"dstAddress":[
"192.127.4.100/32"
],
"dstPort":[
"80"
]
}
],
"action":"FORWARD_DECAPSULATED",
"dstInterface":{
"interfaceType":"IP",
"dstIpAddress":"20.1.1.1"
},
"state":"ACTIVE"
}
}
}
}
}
},
"400":{
"$ref":"#/components/responses/Error.400"
"description":"Bad Request. It is used to indicate that incorrect parameters were passed to the request.",
"headers":{},
"content":{
"application/problem+json":{
"schema":{
"$ref":"#/components/schemas/ProblemDetails"
}
},
"text/plain":{
"schema":{
"type":"object",
"description":"Empty schema",
"contentMediaType":"text/plain"
}
}
}
},
"403":{
"$ref":"#/components/responses/Error.403"
"description":"Forbidden. The operation is not allowed given the current status of the resource.",
"headers":{},
"content":{
"application/problem+json":{
"schema":{
"$ref":"#/components/schemas/ProblemDetails"
}
}
}
},
"404":{
"$ref":"#/components/responses/Error.404"
"description":"Not Found. It is used when a client provided a URI that cannot be mapped to a valid resource URI.",
"headers":{},
"content":{
"application/problem+json":{
"schema":{
"$ref":"#/components/schemas/ProblemDetails"
}
},
"text/plain":{
"schema":{
"type":"object",
"description":"Empty schema",
"contentMediaType":"text/plain"
}
}
}
},
"412":{
"$ref":"#/components/responses/Error.412"
"description":"Precondition Failed. It is used when a condition has failed during conditional requests, e.g. when using ETags to avoid write conflicts.",