Comments (4)
Hi,
Sorry but an instance state is not related to the state of the backend object.
Even if stopped, in your case, the VM is still provisioned. So the instance is available.
States are part of a state machine which is hard coded by design. It's not possible to add or update state.
from squest.
I close this one.
You need to use day 2 operations and set your custom state in the instance specs.
You can also add a custom link in your instance that would propose to "start" or "stop" the VM.
Have fun with Squest !
from squest.
Hey,
By saying "custom states", do you refer to the edit menu of an instance and choosing an other state ?
According to your previous message, these states can't be edited and an instance state can't be updated with the Squest API, is that what you mean ?
Lastly, what do you mean by "custom link in your instance" ? Do you refer to the customizable support button ?
from squest.
No the "custom state" would be just a data placed into the instance spec. Nothing related to the real "Squest instance state" like "AVAILABLE".
Those links are then shown in the instance details page.
So you could have a button that show the current "custom state" of your VM like "Powered off". And the URL behind this button could point to a day 2 operations that power on the VM.
You could have one button named "Power on" with a when condition set to spec['vm_state'] == 'off'
and another button named "Stop VM" with a when condition set to spec['vm_state'] == 'on'
from squest.
Related Issues (20)
- Inheritance of Organization workflow for Teams HOT 1
- Need info state in approval workflow
- Reset all submitted request when workflow is changed HOT 1
- Feature: save filters HOT 1
- Sort survey fields by order instead by name HOT 1
- Feature: jinja templating in doc HOT 1
- Error 500 when requesting a service
- Resource groups/Graph don't update when using API HOT 5
- Feature: as un admin, edit step of a request workflow. HOT 2
- Graph consumption no calculated automatically when using bulk delete from the UI HOT 1
- error 500 when transition is unauthorised HOT 1
- django fsm new major version
- Feature: Bulk update operation on instances of the same type
- Credential id not sent to awx when set HOT 3
- feature: add "when" condition on day 2 operation
- Instance doc: add ordering
- Kubernetes - django error during installation HOT 5
- Wait until Django deployment available step HOT 1
- Feature: Helm based deployment
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 squest.