Globals / "modules/keys" / Keys
-
↳ Keys
+ new Keys(pageSize
: number, requestHelper
: RequestHelper): Keys
Overrides BaseModule.constructor
Defined in modules/keys.ts:11
Name | Type |
---|---|
pageSize |
number |
requestHelper |
RequestHelper |
Returns: Keys
▸ add(addKeyRequest
: AddKeyRequest): Promise<any>
Defined in modules/keys.ts:65
Add a new SSH Key to an account
Name | Type | Description |
---|---|---|
addKeyRequest |
AddKeyRequest | the configuration of the SSH Key |
Returns: Promise<any>
Promise
▸ delete(identifier
: string): Promise<any>
Defined in modules/keys.ts:98
Delete an SSH Key
Name | Type | Description |
---|---|---|
identifier |
string | the ID or Fingerprint of the SSH Key you wish to delete |
Returns: Promise<any>
Promise
▸ getAll(tagName
: string, includeAll?
: boolean, page?
: number, pageSize?
: number): Promise<any>
Defined in modules/keys.ts:25
Get all SSH Keys
Name | Type | Default value |
---|---|---|
tagName |
string | - |
includeAll |
boolean | false |
page |
number | 1 |
pageSize |
number | this.pageSize |
Returns: Promise<any>
Promise
▸ getByFingerprint(fingerprint
: string): Promise<any>
Defined in modules/keys.ts:54
Get a specific SSH Key using its fingerprint
Name | Type | Description |
---|---|---|
fingerprint |
string | the fingerprint of the SSH Key to retrieve |
Returns: Promise<any>
Promise
▸ getById(keyId
: number): Promise<any>
Defined in modules/keys.ts:43
Get a specific SSH Key using its identifier
Name | Type | Description |
---|---|---|
keyId |
number | the identifier of the SSH Key |
Returns: Promise<any>
Promise
▸ rename(identifier
: string, newName
: string): Promise<any>
Defined in modules/keys.ts:81
Rename an SSH Key
Name | Type | Description |
---|---|---|
identifier |
string | the ID or Fingerprint of the SSH Key to rename |
newName |
string | the new name to set on the SSH Key |
Returns: Promise<any>
Promise