{"openapi":"3.1.0","info":{"title":"Apizie","version":"2.0.0","description":"One API key, one envelope, many public data sources."},"servers":[{"url":"https://www.apizie.tech"}],"security":[{"ApiKeyAuth":[]}],"paths":{"/v1/cloud:aliyun-sasrasp/describe-attack-protection-count":{"post":{"operationId":"cloud_aliyun_sasrasp_describe_attack_protection_count","summary":"Queries the attack prevention counters","description":"POST /","tags":["cloud"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["StartTimestamp","EndTimestamp"],"properties":{"endpoint":{"type":"string","enum":["https://sasrasp.ap-southeast-1.aliyuncs.com","https://sasrasp.cn-hangzhou.aliyuncs.com"],"default":"https://sasrasp.ap-southeast-1.aliyuncs.com","description":"Regional endpoint, for example https://sasrasp.ap-southeast-1.aliyuncs.com"},"StartTimestamp":{"type":"integer","description":"The start time, in milliseconds (UNIX timestamp)"},"EndTimestamp":{"type":"integer","description":"The end time, in milliseconds (UNIX timestamp)"},"AgentType":{"type":"string","description":"The type of agent to query"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/cloud:aliyun-sasrasp/describe-attacks":{"post":{"operationId":"cloud_aliyun_sasrasp_describe_attacks","summary":"Queries the details of attack information on the attack alert page","description":"POST /","tags":["cloud"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["StartTimestamp","EndTimestamp"],"properties":{"endpoint":{"type":"string","enum":["https://sasrasp.ap-southeast-1.aliyuncs.com","https://sasrasp.cn-hangzhou.aliyuncs.com"],"default":"https://sasrasp.ap-southeast-1.aliyuncs.com","description":"Regional endpoint, for example https://sasrasp.ap-southeast-1.aliyuncs.com"},"Lang":{"type":"string","description":"The language type of the request and response messages. Valid values: zh: Chinese. en: English"},"Region":{"type":"string","description":"The region. Only cn-hangzhou is supported"},"AgentType":{"type":"string","description":"The type of the agent to retrieve. Only sas is supported"},"ApplicationId":{"type":"string","description":"The application ID. You can call the [DescribeSasApplications](~~DescribeSasApplications~~) operation to obtain this parameter"},"StartTimestamp":{"type":"integer","description":"The start time. The value is a UNIX timestamp in milliseconds"},"EndTimestamp":{"type":"integer","description":"The end time. The value is a UNIX timestamp in milliseconds"},"PageNumber":{"type":"integer","description":"The page number. Default value: 1"},"PageSize":{"type":"integer","description":"The number of entries per page. Default value: 10"},"UnionId":{"type":"string","description":"The unionId (employee ID) of the creator"},"AttackUrl":{"type":"string","description":"The request URL"},"AttackType":{"type":"string","description":"The attack type. Valid values: file_read: Arbitrary file read. sql: SQL injection. xxe: XML external entity (XXE) injection. ssrf:…"},"HandlerType":{"type":"string","description":"The handling method. Valid values: monitor: Monitor. block: Block"},"Severity":{"type":"string","description":"The severity level of the attack. Valid values: low: Low. medium: Medium. high: High"},"Hostname":{"type":"string","description":"The hostname"},"Ip":{"type":"string","description":"The IP address in the alert event"},"AttackHostId":{"type":"string","description":"The ID of the attacked host"},"RaspType":{"type":"string","description":"The application language. Valid values: java: Java. php: PHP"},"Pid":{"type":"string","description":"The process ID"},"Remote":{"type":"string","description":"The IP address of the attacker"},"HandleStatus":{"type":"integer","description":"The handling status. Valid values: 0: Unhandled. 1: Handled"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/cloud:aliyun-sasrasp/version":{"post":{"operationId":"cloud_aliyun_sasrasp_version","summary":"version","description":"POST /","tags":["cloud"],"parameters":[],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","required":[],"properties":{"endpoint":{"type":"string","enum":["https://sasrasp.ap-southeast-1.aliyuncs.com","https://sasrasp.cn-hangzhou.aliyuncs.com"],"default":"https://sasrasp.ap-southeast-1.aliyuncs.com","description":"Regional endpoint, for example https://sasrasp.ap-southeast-1.aliyuncs.com"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}}},"components":{"securitySchemes":{"ApiKeyAuth":{"type":"apiKey","in":"header","name":"x-api-key"}},"schemas":{"RunEnvelope":{"type":"object","required":["project","data","timestamp"],"properties":{"project":{"type":"string","example":"dev-tools:hash"},"data":{},"timestamp":{"type":"string","format":"date-time"}}},"ErrorEnvelope":{"type":"object","properties":{"content":{},"message":{"type":"string"},"errors":{"type":"array","items":{}},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"responses":{"Error":{"description":"Invalid key, plan gate, rate limit or upstream failure","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}}