Class: Account

Account

new Account()

Account resource
Source:

Methods

createSshKey(attributes, callbackopt)

Create a ssh key object.
Parameters:
Name Type Attributes Description
attributes object The attributes with wich to create the ssh key. See the official docs for valid attributes.
callback requestCallback <optional>
callback that handles the response
Source:

deleteSshKey(id, callbackopt)

Delete the identified ssh key object.
Parameters:
Name Type Attributes Description
id number The id of the ssh key to delete
callback requestCallback <optional>
callback that handles the response
Source:

get(callbackopt)

Get the account object.
Parameters:
Name Type Attributes Description
callback requestCallback <optional>
callback that handles the response
Source:

getSshKey(id, callbackopt)

Get the identified ssh key object.
Parameters:
Name Type Attributes Description
id number The id of the ssh key to retrieve
callback requestCallback <optional>
callback that handles the response
Source:

listSshKeys(page or queryObjectopt, perPageopt, callbackopt)

List ssh key objects.
Parameters:
Name Type Attributes Description
page or queryObject number | object <optional>
page number to retrieve or key value pairs of query parameters
perPage number <optional>
number of result per page to retrieve
callback listRequestCallback <optional>
callback that handles the response
Source:

updateSshKey(id, attributes, callbackopt)

Update the identified ssh key object.
Parameters:
Name Type Attributes Description
id number The id of the ssh key to update
attributes object The attributes with which to update the ssh key. See the official docs for valid attributes.
callback requestCallback <optional>
callback that handles the response
Source: