Code Monkey home page Code Monkey logo

Comments (4)

Sispheor avatar Sispheor commented on September 28, 2024

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.

Sispheor avatar Sispheor commented on September 28, 2024

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.

TheToto318 avatar TheToto318 commented on September 28, 2024

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.

Sispheor avatar Sispheor commented on September 28, 2024

No the "custom state" would be just a data placed into the instance spec. Nothing related to the real "Squest instance state" like "AVAILABLE".

Custom link doc here

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.