heroku-client
Version:
A wrapper for the Heroku v3 API
111 lines (67 loc) • 2 kB
Markdown
Add-ons represent add-ons that have been provisioned for an app.
`heroku.apps({app_id_or_name}).addons().create({attributes}, {callback});`
Method | Path | Expected Status(es)
--- | --- | ---
POST | /apps/{app_id_or_name}/addons | 201
- config
- plan:id
- plan:name
`heroku.apps({app_id_or_name}).addons().list({callback});`
Method | Path | Expected Status(es)
--- | --- | ---
GET | /apps/{app_id_or_name}/addons | 200, 206
`heroku.apps({app_id_or_name}).addons({addon_id}).info({callback});`
Method | Path | Expected Status(es)
--- | --- | ---
GET | /apps/{app_id_or_name}/addons/{addon_id} | 200
`heroku.apps({app_id_or_name}).addons({addon_id}).update({attributes}, {callback});`
Method | Path | Expected Status(es)
--- | --- | ---
PATCH | /apps/{app_id_or_name}/addons/{addon_id} | 200
- config
- plan:id
- plan:name
`heroku.apps({app_id_or_name}).addons({addon_id}).delete({callback});`
Method | Path | Expected Status(es)
--- | --- | ---
DELETE | /apps/{app_id_or_name}/addons/{addon_id} | 200
*Additional add-on service specific configuration.*
Example | Serialized? | Type
--- | --- | ---
`[object Object]` | false | object
*When add-on was created.*
Example | Serialized? | Type
--- | --- | ---
`2012-01-01T12:00:00Z` | true | datetime
*Unique identifier of this add-on.*
Example | Serialized? | Type
--- | --- | ---
`01234567-89ab-cdef-0123-456789abcdef` | true | uuid
*Unique identifier for plan.*
Example | Serialized? | Type
--- | --- | ---
`01234567-89ab-cdef-0123-456789abcdef` | true | uuid
*Unique name for plan.*
Example | Serialized? | Type
--- | --- | ---
`heroku-postgresql:dev` | true | string
*When add-on was updated.*
Example | Serialized? | Type
--- | --- | ---
`2012-01-01T12:00:00Z` | true | datetime