heroku-client
Version:
A wrapper for the Heroku v3 API
94 lines (56 loc) • 1.76 kB
Markdown
Keys represent public SSH keys associated with an account and are used to authorize users as they are performing git operations.
`heroku.account().keys().create({attributes}, {callback});`
Method | Path | Expected Status(es)
--- | --- | ---
POST | /account/keys | 201
#### Required Attributes
- public_key
### `list`
`heroku.account().keys().list({callback});`
Method | Path | Expected Status(es)
--- | --- | ---
GET | /account/keys | 200
### `info`
`heroku.account().keys({key_id_or_fingerprint}).info({callback});`
Method | Path | Expected Status(es)
--- | --- | ---
GET | /account/keys/{key_id_or_fingerprint} | 200
`heroku.account().keys({key_id_or_fingerprint}).delete({callback});`
Method | Path | Expected Status(es)
--- | --- | ---
DELETE | /account/keys/{key_id_or_fingerprint} | 200
*When key was created.*
Example | Serialized? | Type
--- | --- | ---
`2012-01-01T12:00:00Z` | true | datetime
*Email address provided in key contents.*
Example | Serialized? | Type
--- | --- | ---
`username@example.com` | true | string
*A unique identifying string based on contents.*
Example | Serialized? | Type
--- | --- | ---
`17:63:a4:ba:24:d3:7f:af:17:c8:94:82:7e:80:56:bf` | true | string
*Unique identifier of this key.*
Example | Serialized? | Type
--- | --- | ---
`01234567-89ab-cdef-0123-456789abcdef` | true | uuid
*Full public_key as uploaded.*
Example | Serialized? | Type
--- | --- | ---
`ssh-rsa AAAAB3NzaC1ycVc/../839Uv username@example.com` | true | string
*When key was updated.*
Example | Serialized? | Type
--- | --- | ---
`2012-01-01T12:00:00Z` | true | datetime