{"definitions":{"f5xc_event_filter":{"description":"EventFilter","properties":{"sec_event_filter":{"description":"filter on security event type","enum":["waf_sec_event","malicious_user_sec_event"],"type":"string"},"src_ip":{"description":"filter on source IP","type":"string"}},"required":["sec_event_filter"],"tags":["Input"]},"f5xc_event_start_time":{"description":"EventStartTime","properties":{"day":{"type":"integer"},"hour":{"default":0,"description":"timezone='Europe/London'","type":"integer"},"minute":{"default":0,"type":"integer"},"month":{"type":"integer"},"year":{"type":"integer"}},"required":["year","month","day"],"tags":["Input"]},"f5xc_namespace":{"description":"Namespace","properties":{"api_key":{"default":"None","description":"API KEY set as a Credential. If no api_key set by default, api_key must be set for each namespace. If api_key is set in a namespace, it overrides default api_key.","type":"string"},"event_filter":{"$ref":"#/definitions/f5xc_event_filter","description":"filter to apply before fetching events","schema":null,"type":"object"},"event_start_time":{"$ref":"#/definitions/f5xc_event_start_time","description":"starting time of event timestamps to be fetch from F5XC","schema":null,"type":"object"},"name":{"description":"name of Namespace","type":"string"}},"required":["name","api_key"],"tags":["Input"]},"f5xc_tenant":{"description":"Tenant","properties":{"api_key":{"default":"None","description":"API KEY set as a Credential for a Namespace by default","type":"string"},"name":{"description":"short name of Tenant in F5 XC portal URI","type":"string"},"namespaces":{"items":{"$ref":"#/definitions/f5xc_namespace","schema":null,"type":"object"},"type":"array"}},"required":["name","namespaces"],"tags":["Input"]},"http_server":{"description":"Configure a http(s) server","properties":{"host":{"description":"FQDN or IP address","type":"string"},"path":{"default":"/","description":"path","type":"string"},"port":{"description":"custom listening port","type":"integer"},"protocol":{"default":"http","enum":["http","https"],"type":"string"},"token":{"default":"f5-xc-logstream","description":"Bearer token","type":"string"}},"required":["host"]},"logcollector":{"description":"Configure remote logging servers. At least one type of logcollector is required","properties":{"http":{"items":{"$ref":"#/definitions/http_server","schema":null,"type":"object"},"type":"array"},"syslog":{"items":{"$ref":"#/definitions/syslog_server","schema":null,"type":"object"},"type":"array"}},"required":["syslog","http"]},"syslog_server":{"description":"Configure a syslog server","properties":{"ip_address":{"description":"ipv4 address","example":"1.1.1.1","pattern":"^\\d{1,3}.\\d{1,3}.\\d{1,3}.\\d{1,3}$","type":"string"},"port":{"default":514,"description":"port listener","type":"integer"}},"required":["ip_address","port"]}},"info":{"description":"powered by Flasgger","termsOfService":"/tos","title":"A swagger API","version":"0.0.1"},"paths":{"/declare":{"get":{"responses":{"200":{"schema":{"properties":{"f5xc_tenant":{"$ref":"#/definitions/f5xc_tenant","schema":null,"type":"object"},"logcollector":{"$ref":"#/definitions/logcollector","schema":null,"type":"object"}},"required":["f5xc_tenant","logcollector"]}}},"summary":"Get LogStream current declaration","tags":["Global"]},"post":{"consumes":["application/json"],"parameters":[{"in":"body","name":"body","schema":{"properties":{"f5xc_tenant":{"$ref":"#/definitions/f5xc_tenant","schema":null,"type":"object"},"logcollector":{"$ref":"#/definitions/logcollector","schema":null,"type":"object"}},"required":["f5xc_tenant","logcollector"]}}],"responses":{"200":{"description":"Deployment done"}},"summary":"Configure LogStream in one declaration","tags":["Global"]}},"/engine":{"get":{"responses":{"200":{"schema":{"properties":{"status":{"description":"status","type":"string"},"threads":{"description":"number of running threads","type":"integer"}},"required":["status"]}}},"summary":"Get engine status","tags":["LogStream"]},"post":{"consumes":["application/json"],"parameters":[{"in":"body","name":"body","schema":{"properties":{"action":{"description":"Start/Stop engine","enum":["start","stop","restart"],"type":"string"}},"required":["action"]}}],"responses":{"200":{"description":"Action done"}},"summary":"Start/Stop engine","tags":["LogStream"]}}},"swagger":"2.0"}