Comments (8)
Just released the latest version with the new total
count. @jigar-arc10 can you confirm it's working as expected?
ex: https://api.cloudmos.io/providers/akash18ga02jzaq8cw52anyhzkwta5wygufgu6zsz6xc/deployments/0/10
from cloudmos.
Hey Jigar, so I found that the nodes currently support filtering leases for a provider:
The deployments one doesn't work because providers aren't on it, so this is the one we can do. However, we don't have everything that the node has to return in the list. We only index what's relevant to calculating the stats, but not all the extra data like the endpoints, attributes, etc.
So my question to you; what's your plan exactly in terms of implementation? Do you have to have a list of deployments with a bit of informations and rest in the detail page?
from cloudmos.
This API only gives us leases and does not give us more information about deployments inside that lease.
We are putting this information on the list page, and we also have a lease detail page where we will need to show deployment details like URL and port and other significant information that you are showing right now in Cloudmos.
from cloudmos.
We will make an API endpoint to list the deployments done on a provider, and the rest of the information can be queried from the node directly on the detail page here for example: https://akash-api.polkachu.com/akash/deployment/v1beta3/deployments/info?id.owner=akash1p2e73vphy9umsx02y6xqr49yeu0dn9s3pytkvk&id.dseq=13911176
from cloudmos.
We will implement a provider deployments api endpoint with the following json response:
{
"deployments":[
{
"owner":"akash12qyc26j04dlyr4zwcsu8u3nmp85hcqv0r36syk",
"provider":"akash1lwzjtsqkuytusa98py77cflhqxl3z7v7ur5632",
"dseq":"10038327",
"gseq":1,
"oseq":1,
"state":"active",
"created_at":"9985874",
"escrow_account":{
"balance":{
"denom":"uakt",
"amount":"0.920000000000000000"
},
"transferred":{
"denom":"uakt",
"amount":"1.900000000000000000"
},
"settled_at":"9986019"
},
"lease_count":1,
"leases":[
{
"state":"closed",
"price":{
"denom":"uakt",
"amount":"27.510400000000000000"
},
"escrow_payment":{
"rate":{
"denom":"uakt",
"amount":"44.864000000000000000"
},
"balance":{
"denom":"uakt",
"amount":"0.920000000000000000"
},
"withdrawn":{
"denom":"uakt",
"amount":"1330441"
}
},
"created_at":"9985874",
"closed_on":"9986019"
}
]
}
]
}```
from cloudmos.
Just deployed the api v2.11.1
with the new endpoints:
/providers/<provider>/deployments/<offset>/<limit>
/providers/<provider>/deployments/<offset>/<limit>/active
/providers/<provider>/deployments/<offset>/<limit>/closed
ex: https://api.cloudmos.io/providers/akash18ga02jzaq8cw52anyhzkwta5wygufgu6zsz6xc/deployments/0/10
@jigar-arc10 Please let us know if it is working as expected
from cloudmos.
Awesome! The API looks very good, and we are working to incorporate it into the list shown in the dashboard.
@Redm4x I have a request - Can you add the total number of leases in all three APIs so we can do better at pagination and show how many pages there are?
from cloudmos.
@jigar-arc10 Good idea, will add that to the endpoint and tag you once it's deployed 👍
from cloudmos.
Related Issues (20)
- UX improvement: Deployments List
- Improve SDL Builder UX HOT 2
- Improve GPU deployment experience HOT 4
- Cloudmos Rebrand (To Akash Console) HOT 13
- Akash Template Marketplace (or SDL Registry)
- Add Cosmokit Integration HOT 3
- Audited button leads to Error page HOT 3
- Refactor and improve Cloudmos API HOT 9
- Show GPU models in bids HOT 1
- Remove dependency on local storage HOT 3
- Module not found error in cloudmos/api HOT 1
- Add metamask support to cosmoskit HOT 5
- Optimize Workflow for USDC based deployment HOT 3
- Support AMD GPUs
- Create DeploymentDetails API for Praetor to use in Dashboard HOT 3
- Cosmos-kit wallet disconnects HOT 1
- Akashlytics rebrand to Akash Stats HOT 2
- SDL Builder: mount point discarded if volume name != "data" HOT 1
- SDL Builder - template from URL
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cloudmos.