heroku-client
Version:
A wrapper for the Heroku v3 API
146 lines (89 loc) • 2.66 kB
Markdown
Dynos encapsulate running processes of an app on Heroku.
`heroku.apps({app_id_or_name}).dynos().create({attributes}, {callback});`
Method | Path | Expected Status(es)
--- | --- | ---
POST | /apps/{app_id_or_name}/dynos | 201
- attach
- size
- command
`heroku.apps({app_id_or_name}).dynos().list({callback});`
Method | Path | Expected Status(es)
--- | --- | ---
GET | /apps/{app_id_or_name}/dynos | 200, 206
`heroku.apps({app_id_or_name}).dynos({dyno_id_or_name}).info({callback});`
Method | Path | Expected Status(es)
--- | --- | ---
GET | /apps/{app_id_or_name}/dynos/{dyno_id_or_name} | 200
`heroku.apps({app_id_or_name}).dynos({dyno_id_or_name}).delete({callback});`
Method | Path | Expected Status(es)
--- | --- | ---
DELETE | /apps/{app_id_or_name}/dynos/{dyno_id_or_name} | 200
*Whether to stream output or not.*
Example | Serialized? | Type
--- | --- | ---
`true` | false | boolean
*A url to stream output from for attached processes or null for non-attached processes.*
Example | Serialized? | Type
--- | --- | ---
`rendezvous://rendezvous.runtime.heroku.com:5000/{rendezvous-id}` | true | string
*Command used to start this process.*
Example | Serialized? | Type
--- | --- | ---
`bash` | true | string
*When domain was created.*
Example | Serialized? | Type
--- | --- | ---
`2012-01-01T12:00:00Z` | true | datetime
*Unique identifier of this dyno.*
Example | Serialized? | Type
--- | --- | ---
`01234567-89ab-cdef-0123-456789abcdef` | true | uuid
*The name of this process on this app.*
Example | Serialized? | Type
--- | --- | ---
`run.1` | true | string
*The unique identifier of the release this process was started with.*
Example | Serialized? | Type
--- | --- | ---
`01234567-89ab-cdef-0123-456789abcdef` | true | uuid
*The unique version of the release this process was started with.*
Example | Serialized? | Type
--- | --- | ---
`456` | true | number
*Dyno size (default: 1).*
Example | Serialized? | Type
--- | --- | ---
`1` | true | number
### `state`
*Current status of process (either: crashed, down, idle, starting, or up).*
Example | Serialized? | Type
--- | --- | ---
`up` | true | string
### `type`
*Type of process.*
Example | Serialized? | Type
--- | --- | ---
`run` | true | string
### `updated_at`
*When process last changed state.*
Example | Serialized? | Type
--- | --- | ---
`2012-01-01T12:00:00Z` | true | datetime