{"openapi":"3.1.0","info":{"title":"ALPS Accounting APIs","version":"0.4.0-fix"},"paths":{"/compute/usage/day":{"get":{"tags":["Compute"],"summary":"Get Usage Day","operationId":"get_usage_day_usage_day","security":[{"APIAuthDependency":[]},{"HTTPBearer":[]}],"parameters":[{"name":"account","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"Optional Account identifier list to search for","title":"Account"},"description":"Optional Account identifier list to search for"},{"name":"username","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"Optional Username list to search for","title":"Username"},"description":"Optional Username list to search for"},{"name":"cluster","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"Optional cluster list to search for","title":"Cluster"},"description":"Optional cluster list to search for"},{"name":"from","in":"query","required":true,"schema":{"type":"string","format":"date","description":"Start usageDate (YYYY-MM-DD)","title":"From"},"description":"Start usageDate (YYYY-MM-DD)"},{"name":"to","in":"query","required":true,"schema":{"type":"string","format":"date","description":"End usageDate (YYYY-MM-DD)","title":"To"},"description":"End usageDate (YYYY-MM-DD)"}],"responses":{"200":{"description":"Compute Usage per day","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetComputeUsageDayRawResponse"}}}},"4XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponseError"}}},"description":"Client Error"},"5XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponseError"}}},"description":"Server Error"}}}},"/compute/usage/month":{"get":{"tags":["Compute"],"summary":"Get Usage Month","operationId":"get_usage_month_usage_month","security":[{"APIAuthDependency":[]},{"HTTPBearer":[]}],"parameters":[{"name":"account","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"Optional Account identifier list to search for","title":"Account"},"description":"Optional Account identifier list to search for"},{"name":"username","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"Optional Username list to search for","title":"Username"},"description":"Optional Username list to search for"},{"name":"cluster","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"Optional cluster list to search for","title":"Cluster"},"description":"Optional cluster list to search for"},{"name":"from","in":"query","required":true,"schema":{"type":"string","description":"UsageDate start month (YYYY-MM)","title":"From"},"description":"UsageDate start month (YYYY-MM)"},{"name":"to","in":"query","required":true,"schema":{"type":"string","description":"UsageDate end month (YYYY-MM)","title":"To"},"description":"UsageDate end month (YYYY-MM)"}],"responses":{"200":{"description":"Compute Usage per month","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetComputeUsageMonthRawResponse"}}}},"4XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponseError"}}},"description":"Client Error"},"5XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponseError"}}},"description":"Server Error"}}}},"/storage/usage/day":{"get":{"tags":["Storage"],"summary":"Get Storage Day All","operationId":"get_storage_day_all_usage_day","security":[{"APIAuthDependency":[]},{"HTTPBearer":[]}],"parameters":[{"name":"account","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"Project to search for","title":"Account"},"description":"Project to search for"},{"name":"customerName","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"Customer to search for","title":"Customername"},"description":"Customer to search for"},{"name":"filesystemName","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"Capstor/Iopstor","title":"Filesystemname"},"description":"Capstor/Iopstor"},{"name":"dataType","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"Select store,archive,user or scratch data-storage type.","title":"Datatype"},"description":"Select store,archive,user or scratch data-storage type."},{"name":"path","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"Path list to search for","title":"Path"},"description":"Path list to search for"},{"name":"date","in":"query","required":true,"schema":{"type":"string","format":"date","description":"UsageDate date (YYYY-MM-DD)","title":"Date"},"description":"UsageDate date (YYYY-MM-DD)"}],"responses":{"200":{"description":"Storage Usage of the specified day given path","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetStorageUsageDayResponse"}}}},"4XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponseError"}}},"description":"Client Error"},"5XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponseError"}}},"description":"Server Error"}}}},"/storage/usage/month":{"get":{"tags":["Storage"],"summary":"Get Storage Month All","operationId":"get_storage_month_all_usage_month","security":[{"APIAuthDependency":[]},{"HTTPBearer":[]}],"parameters":[{"name":"account","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"Project to search for","title":"Account"},"description":"Project to search for"},{"name":"customerName","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"Customer to search for","title":"Customername"},"description":"Customer to search for"},{"name":"filesystemName","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"Capstor/Iopstor","title":"Filesystemname"},"description":"Capstor/Iopstor"},{"name":"dataType","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"Select store,archive,user or scratch data-storage type. Default store","title":"Datatype"},"description":"Select store,archive,user or scratch data-storage type. Default store"},{"name":"path","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"Path list to search for","title":"Path"},"description":"Path list to search for"},{"name":"month","in":"query","required":true,"schema":{"type":"string","description":"UsageDate month (YYYY-MM)","title":"Month"},"description":"UsageDate month (YYYY-MM)"}],"responses":{"200":{"description":"Storage Usage of the specified month given the path","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetStorageUsageMonthResponse"}}}},"4XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponseError"}}},"description":"Client Error"},"5XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponseError"}}},"description":"Server Error"}}}}},"components":{"schemas":{"ApiResponseError":{"properties":{"errorType":{"$ref":"#/components/schemas/ApiResponseErrorType","default":"error"},"message":{"type":"string","title":"Message"},"data":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Data"}},"additionalProperties":true,"type":"object","required":["message"],"title":"ApiResponseError"},"ApiResponseErrorType":{"type":"string","enum":["error","validation"],"title":"ApiResponseErrorType"},"ComputeUsageDayRaw":{"properties":{"id":{"type":"integer","title":"Id"},"username":{"type":"string","title":"Username"},"updated":{"type":"string","format":"date-time","title":"Updated"},"userId":{"type":"integer","title":"Userid"},"account":{"type":"string","title":"Account"},"cluster":{"type":"string","title":"Cluster"},"usageDate":{"type":"string","format":"date","title":"Usagedate"},"nodeHours":{"type":"number","title":"Nodehours"},"cpuHours":{"type":"number","title":"Cpuhours"},"jobCount":{"type":"integer","title":"Jobcount"},"totalElapsedTime":{"type":"integer","title":"Totalelapsedtime"},"totalNodeCount":{"type":"integer","title":"Totalnodecount"}},"additionalProperties":true,"type":"object","required":["id","username","updated","userId","account","cluster","usageDate","nodeHours","cpuHours","jobCount","totalElapsedTime","totalNodeCount"],"title":"ComputeUsageDayRaw"},"ComputeUsageMonthRaw":{"properties":{"id":{"type":"integer","title":"Id"},"updated":{"type":"string","format":"date-time","title":"Updated"},"username":{"type":"string","title":"Username"},"userId":{"type":"integer","title":"Userid"},"account":{"type":"string","title":"Account"},"cluster":{"type":"string","title":"Cluster"},"usageDate":{"type":"string","format":"date","title":"Usagedate"},"nodeHours":{"type":"number","title":"Nodehours"},"cpuHours":{"type":"number","title":"Cpuhours"},"jobCount":{"type":"integer","title":"Jobcount"},"totalElapsedTime":{"type":"integer","title":"Totalelapsedtime"},"totalNodeCount":{"type":"integer","title":"Totalnodecount"}},"additionalProperties":true,"type":"object","required":["id","updated","username","userId","account","cluster","usageDate","nodeHours","cpuHours","jobCount","totalElapsedTime","totalNodeCount"],"title":"ComputeUsageMonthRaw"},"GetComputeUsageDayRawResponse":{"properties":{"compute":{"items":{"$ref":"#/components/schemas/ComputeUsageDayRaw"},"type":"array","title":"Compute"}},"additionalProperties":true,"type":"object","required":["compute"],"title":"GetComputeUsageDayRawResponse"},"GetComputeUsageMonthRawResponse":{"properties":{"compute":{"items":{"$ref":"#/components/schemas/ComputeUsageMonthRaw"},"type":"array","title":"Compute"}},"additionalProperties":true,"type":"object","required":["compute"],"title":"GetComputeUsageMonthRawResponse"},"GetStorageUsageDayResponse":{"properties":{"storage":{"items":{"$ref":"#/components/schemas/StorageUsageDay"},"type":"array","title":"Storage"}},"additionalProperties":true,"type":"object","required":["storage"],"title":"GetStorageUsageDayResponse"},"GetStorageUsageMonthResponse":{"properties":{"storage":{"items":{"$ref":"#/components/schemas/StorageUsageMonth"},"type":"array","title":"Storage"}},"additionalProperties":true,"type":"object","required":["storage"],"title":"GetStorageUsageMonthResponse"},"StorageUsageDay":{"properties":{"id":{"type":"integer","title":"Id"},"updated":{"type":"string","format":"date-time","title":"Updated"},"spaceUsed":{"type":"integer","title":"Spaceused"},"spaceCurrency":{"type":"string","title":"Spacecurrency"},"spaceHardQuota":{"type":"integer","title":"Spacehardquota"},"spaceSoftQuota":{"type":"integer","title":"Spacesoftquota"},"inodesSoftQuota":{"type":"integer","title":"Inodessoftquota"},"inodesHardQuota":{"type":"integer","title":"Inodeshardquota"},"inodesUsed":{"type":"integer","title":"Inodesused"},"usageDate":{"type":"string","format":"date","title":"Usagedate"},"username":{"type":"string","title":"Username"},"tenant":{"type":"string","title":"Tenant"},"customerName":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Customername"},"account":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Account"},"dataType":{"type":"string","title":"Datatype"},"filesystemName":{"type":"string","title":"Filesystemname"},"systemName":{"type":"string","title":"Systemname"},"path":{"type":"string","title":"Path"},"gid":{"type":"integer","title":"Gid"},"uid":{"type":"integer","title":"Uid"},"aggregationPeriod":{"type":"string","title":"Aggregationperiod"}},"additionalProperties":true,"type":"object","required":["id","updated","spaceUsed","spaceCurrency","spaceHardQuota","spaceSoftQuota","inodesSoftQuota","inodesHardQuota","inodesUsed","usageDate","username","tenant","dataType","filesystemName","systemName","path","gid","uid","aggregationPeriod"],"title":"StorageUsageDay"},"StorageUsageMonth":{"properties":{"id":{"type":"integer","title":"Id"},"updated":{"type":"string","format":"date-time","title":"Updated"},"spaceUsed":{"type":"integer","title":"Spaceused"},"spaceCurrency":{"type":"string","title":"Spacecurrency"},"spaceHardQuota":{"type":"integer","title":"Spacehardquota"},"spaceSoftQuota":{"type":"integer","title":"Spacesoftquota"},"inodesSoftQuota":{"type":"integer","title":"Inodessoftquota"},"inodesHardQuota":{"type":"integer","title":"Inodeshardquota"},"inodesUsed":{"type":"integer","title":"Inodesused"},"usageDate":{"type":"string","format":"date","title":"Usagedate"},"username":{"type":"string","title":"Username"},"tenant":{"type":"string","title":"Tenant"},"customerName":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Customername"},"account":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Account"},"dataType":{"type":"string","title":"Datatype"},"filesystemName":{"type":"string","title":"Filesystemname"},"systemName":{"type":"string","title":"Systemname"},"path":{"type":"string","title":"Path"},"gid":{"type":"integer","title":"Gid"},"uid":{"type":"integer","title":"Uid"},"aggregationPeriod":{"type":"string","title":"Aggregationperiod"}},"additionalProperties":true,"type":"object","required":["id","updated","spaceUsed","spaceCurrency","spaceHardQuota","spaceSoftQuota","inodesSoftQuota","inodesHardQuota","inodesUsed","usageDate","username","tenant","dataType","filesystemName","systemName","path","gid","uid","aggregationPeriod"],"title":"StorageUsageMonth"}},"securitySchemes":{"APIAuthDependency":{"type":"oauth2","flows":{"clientCredentials":{"scopes":{},"tokenUrl":"https://auth.cscs.ch/auth/realms/firecrest-clients/protocol/openid-connect/token"}}},"HTTPBearer":{"type":"http","scheme":"bearer"}}}}