{"openapi":"3.1.0","info":{"title":"Apizie","version":"2.0.0","description":"One API key, one envelope, many public data sources."},"servers":[{"url":"https://zieapi.vercel.app"}],"security":[{"ApiKeyAuth":[]}],"paths":{"/v1/cloud:aliyun-ddosdiversion/config-net-status":{"post":{"operationId":"cloud_aliyun_ddosdiversion_config_net_status","summary":"Configures the advertising of a CIDR block","description":"POST /","tags":["cloud"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["SaleId","Net","Status"],"properties":{"endpoint":{"type":"string","enum":["https://ddosdiversion.cn-hongkong.aliyuncs.com"],"default":"https://ddosdiversion.cn-hongkong.aliyuncs.com","description":"Regional endpoint, for example https://ddosdiversion.cn-hongkong.aliyuncs.com"},"SaleId":{"type":"string","description":"The ID of the anti-DDoS diversion instance"},"Net":{"type":"string","description":"The CIDR block of the anti-DDoS diversion instance"},"Status":{"type":"string","enum":["enable","disable"],"description":"The status of the CIDR block. Valid values: enable: advertises the CIDR block. disable: withdraws the advertising of the CIDR block"},"Regions":{"type":"string","description":"The regions in which the CIDR block needs to be advertised or withdrawn from advertising. If you leave this parameter empty, the CIDR…"},"SubNets":{"type":"string","description":"The subnet CIDR blocks of the CIDR block (JSON-encoded)"}}}}}},"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-ddosdiversion/list-instance":{"post":{"operationId":"cloud_aliyun_ddosdiversion_list_instance","summary":"Queries instances","description":"POST /","tags":["cloud"],"parameters":[],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","required":[],"properties":{"endpoint":{"type":"string","enum":["https://ddosdiversion.cn-hongkong.aliyuncs.com"],"default":"https://ddosdiversion.cn-hongkong.aliyuncs.com","description":"Regional endpoint, for example https://ddosdiversion.cn-hongkong.aliyuncs.com"},"SaleId":{"type":"string","description":"The ID of the Anti-DDoS Diversion instance"},"Name":{"type":"string","description":"The name of the instance"},"Status":{"type":"string","description":"The status of the instance. Valid values: normal: The instance is running normally. expired: The instance has expired. deleting: The…"},"Page":{"type":"integer","description":"The number of the page to return. Default value: 1"},"Num":{"type":"integer","description":"The number of entries to return. Default value: 100"}}}}}},"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-ddosdiversion/query-net-list":{"post":{"operationId":"cloud_aliyun_ddosdiversion_query_net_list","summary":"Queries the CIDR blocks of an anti-DDoS diversion instance","description":"POST /","tags":["cloud"],"parameters":[],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","required":[],"properties":{"endpoint":{"type":"string","enum":["https://ddosdiversion.cn-hongkong.aliyuncs.com"],"default":"https://ddosdiversion.cn-hongkong.aliyuncs.com","description":"Regional endpoint, for example https://ddosdiversion.cn-hongkong.aliyuncs.com"},"SaleId":{"type":"string","description":"The ID of the anti-DDoS diversion instance"},"Net":{"type":"string","description":"The CIDR block of the anti-DDoS diversion instance. If no extended CIDR blocks are configured for the anti-DDoS diversion instance, this…"},"Mode":{"type":"string","enum":["manual","netflow-auto","beaver-auto"],"description":"The scheduling mode. Valid values: manual: manual scheduling. netflow-auto: automatic scheduling"},"MainNet":{"type":"string","description":"The primary CIDR block of the anti-DDoS diversion instance for which an extended CIDR block is configured. If no extended CIDR blocks are…"},"Page":{"type":"integer","description":"The page number. Default value: 1"},"Num":{"type":"integer","description":"The number of entries per page. Default value: 100"}}}}}},"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-ddosdiversion/version":{"post":{"operationId":"cloud_aliyun_ddosdiversion_version","summary":"version","description":"POST /","tags":["cloud"],"parameters":[],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","required":[],"properties":{"endpoint":{"type":"string","enum":["https://ddosdiversion.cn-hongkong.aliyuncs.com"],"default":"https://ddosdiversion.cn-hongkong.aliyuncs.com","description":"Regional endpoint, for example https://ddosdiversion.cn-hongkong.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"}}}}}}}