Create Api Filter
Create an API filter.
{
"id": "urn:vcloud:apiFilter:xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"externalSystem": {
"name": "string",
"id": "string"
},
"urlMatcher": {
"urlPattern": "string",
"urlScope": "string"
},
"responseContentType": "string"
}
The unique id of the api filter.
The UrlMatcher consists of urlPattern and urlScope which together identify a URL which will be serviced by an external system. For example, if you want the external system to service all requests matching '/ext-api/custom/.', the URL Matcher object should be: { "urlPattern": "/custom/.", "urlScope": "EXT_API" } It is important to note that in the case of EXT_UI_TENANT urlScope, the tenant name is not part of the urlPattern. The urlPattern will match the request after the tenant name - if request is "/ext-ui/tenant/testOrg/custom/test", the pattern will match against "/custom/test".
The responseContentType is expressed as a MIME Content-Type string. Responses whose Content-Type attribute has a value that matches this string are routed to the service. responseContentType is mutually exclusive with urlMatcher.
OK
{
"id": "urn:vcloud:apiFilter:xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"externalSystem": {
"name": "string",
"id": "string"
},
"urlMatcher": {
"urlPattern": "string",
"urlScope": "string"
},
"responseContentType": "string"
}
The unique id of the api filter.
The UrlMatcher consists of urlPattern and urlScope which together identify a URL which will be serviced by an external system. For example, if you want the external system to service all requests matching '/ext-api/custom/.', the URL Matcher object should be: { "urlPattern": "/custom/.", "urlScope": "EXT_API" } It is important to note that in the case of EXT_UI_TENANT urlScope, the tenant name is not part of the urlPattern. The urlPattern will match the request after the tenant name - if request is "/ext-ui/tenant/testOrg/custom/test", the pattern will match against "/custom/test".
The responseContentType is expressed as a MIME Content-Type string. Responses whose Content-Type attribute has a value that matches this string are routed to the service. responseContentType is mutually exclusive with urlMatcher.