{"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-opt/get-open-status":{"post":{"operationId":"cloud_aliyun_opt_get_open_status","summary":"Retrieves the activation status of all services in Optimization Solver, currently including the mathematical…","description":"POST /","tags":["cloud"],"parameters":[],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","required":[],"properties":{"endpoint":{"type":"string","enum":["https://opt.cn-beijing.aliyuncs.com","https://opt.us-east-1.aliyuncs.com"],"default":"https://opt.us-east-1.aliyuncs.com","description":"Regional endpoint, for example https://opt.us-east-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"}},"/v1/cloud:aliyun-opt/get-order-info":{"post":{"operationId":"cloud_aliyun_opt_get_order_info","summary":"Retrieves information about purchased Optimization Solver licenses","description":"POST /","tags":["cloud"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["RelService","ResourceType"],"properties":{"endpoint":{"type":"string","enum":["https://opt.cn-beijing.aliyuncs.com","https://opt.us-east-1.aliyuncs.com"],"default":"https://opt.us-east-1.aliyuncs.com","description":"Regional endpoint, for example https://opt.us-east-1.aliyuncs.com"},"RelService":{"type":"string","description":"The category of the purchased Optimization Solver license. The following category is supported: `MP`: mathematical programming"},"ResourceType":{"type":"integer","enum":["1"],"description":"The version of the purchased solver. Only the following value is supported: `1`: local runtime edition"},"ListReleased":{"type":"string","description":"Specifies whether to include released instances"}}}}}},"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-opt/get-order-usage":{"post":{"operationId":"cloud_aliyun_opt_get_order_usage","summary":"Retrieves the license usage","description":"POST /","tags":["cloud"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["RelService","ResourceType","LicenseKey"],"properties":{"endpoint":{"type":"string","enum":["https://opt.cn-beijing.aliyuncs.com","https://opt.us-east-1.aliyuncs.com"],"default":"https://opt.us-east-1.aliyuncs.com","description":"Regional endpoint, for example https://opt.us-east-1.aliyuncs.com"},"RelService":{"type":"string","description":"The category of the Optimization Solver license that you purchased. Valid values: `MP`: mathematical programming"},"ResourceType":{"type":"integer","enum":["1"],"description":"The version of the solver that you purchased. Only one value is supported: `1`: on-premises runtime edition"},"LicenseKey":{"type":"string","description":"The LicenseKey of the solver"},"TimeRange":{"type":"integer","description":"The time range. Valid values: `1`: one day before and after `2`: one week before and after `3`: one month before and after"}}}}}},"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-opt/version":{"post":{"operationId":"cloud_aliyun_opt_version","summary":"version","description":"POST /","tags":["cloud"],"parameters":[],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","required":[],"properties":{"endpoint":{"type":"string","enum":["https://opt.cn-beijing.aliyuncs.com","https://opt.us-east-1.aliyuncs.com"],"default":"https://opt.us-east-1.aliyuncs.com","description":"Regional endpoint, for example https://opt.us-east-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"}}}}}}}