Service.Customer

Customer methods.

Summary
Service.CustomerCustomer methods.
Functions
CP_WizardControl Panel wizard
requestCancellationCreate a cancellation request for a customer
createKeyCreate an API Key for the customer
revokeKeyRevoke an API Key for the customer
getKeysList all customer Keys
createKeyACLAssociate an ACL with the key
updateKeyACLUpdate a field on the ACL
deleteKeyACLDelete a key ACL
listRolesList all customer roles
getUsernameGet Customer Username
changePasswordChange the customer password
changePINChange the customer PIN
changeEmailChange the customer email address
setSettingsSet a list of settings on the Customer
getSettingsGet all the settings associated with the Customer
addIpAddressAdd address to the Customer
getIpAddressesGet Addresses associated with Customer
getDetailedIpAddressesGet address details for a Customer
freeIpAddressFree an Address from the customer
createFTPUserCreate a Customer-controlled FTP user
listFTPUsersList FTP users
updateFTPUserUpdate an FTP user
destroyFTPUserDelete an FTP user
currentBillableBandwidthFetch the latest billable bandwidth amount
listNoticesFetch all the notices associated with the customer (or global)
acknowledgeNoticeSet the acknowledged flag of a customer notice
createContactCreate a contact
destroyContactDelete a contact
createContactMethodAssociate a contact method with a contact
destroyContactMethodDelete a contact method
createContactMethodNoticeAssociate a notice type with a contact method
destroyContactMethodNoticeDelete a contact method notice association
listContactNoticeTypesList contact notice types
listContactMethodsList contact methods
listContactsList contacts and related objects

Functions

CP_Wizard

Control Panel wizard

Parameters

customerIdno docs (idx: 1, type: Types.CustomerId)
siteNameno docs (idx: 2, type: Types.SiteName)
siteHostnameno docs (idx: 3, type: Types.Hostname)
containerNameno docs (idx: 4, type: Types.ContainerName)
containerTypeno docs (idx: 8, type: Types.ContainerTypeId)
containerOSIdno docs (idx: 10, type: Types.OSId)
containerDiskSpaceno docs (idx: 11, type: Types.ContainerDiskSpace)
containerSizeno docs (idx: 12, type: Types.ContainerSize)
environmentNamesno docs (idx: 6, type: Thrift.list (Types.EnvironmentName))
aliasNamesno docs (idx: 7, type: Thrift.list (Types.SiteAlias), optional)
createDNSno docs (idx: 9, type: Thrift.bool, optional)

Returns

Thrift.void

Throws

Exceptions.InvalidArguments (idx: 1)

Roles

  • customer

requestCancellation

Create a cancellation request for a customer

Parameters

idno docs (idx: 1, type: Types.CustomerId)
reasonno docs (idx: 2, type: Thrift.string)

Returns

Thrift.void

Throws

Exceptions.InvalidArguments (idx: 1)

Roles

  • customer

createKey

Create an API Key for the customer

Parameters

idno docs (idx: 1, type: Types.CustomerId)
typeno docs (idx: 2, type: Types.APIKeyType, role: internal, optional)

Returns

Types.APIKey

Throws

Exceptions.InvalidArguments (idx: 1)

Roles

  • customer

revokeKey

Revoke an API Key for the customer

Parameters

idno docs (idx: 1, type: Types.APIKeyId)

Returns

Thrift.void

Throws

Exceptions.InvalidArguments (idx: 1)

Roles

  • customer

getKeys

List all customer Keys

Parameters

idno docs (idx: 1, type: Types.CustomerId)
typeno docs (idx: 2, type: Types.APIKeyType, optional)

Returns

Types.APIKeys

Throws

Exceptions.InvalidArguments (idx: 1)

Roles

  • customer

createKeyACL

Associate an ACL with the key

Parameters

idno docs (idx: 1, type: Types.APIKeyId)
addressno docs (idx: 2, type: Types.IPAddress)
cidrno docs (idx: 3, type: Types.CIDRMask)

Returns

Types.APIKeyACL

Throws

Exceptions.InvalidArguments (idx: 1)

Roles

  • customer

updateKeyACL

Update a field on the ACL

Parameters

idno docs (idx: 1, type: Types.APIKeyACLId)
addressno docs (idx: 2, type: Types.IPAddress, optional)
cidrno docs (idx: 3, type: Types.CIDRMask, optional)

Returns

Types.APIKeyACL

Throws

Exceptions.InvalidArguments (idx: 1)

Roles

  • customer

deleteKeyACL

Delete a key ACL

Parameters

idno docs (idx: 1, type: Types.APIKeyACLId)

Returns

Thrift.void

Throws

Exceptions.InvalidArguments (idx: 1)

Roles

  • customer

listRoles

List all customer roles

Parameters

idno docs (idx: 1, type: Types.CustomerId)

Returns

Thrift.list (Types.Role)

Throws

Exceptions.InvalidArguments (idx: 1)

Roles

  • customer

getUsername

Get Customer Username

Parameters

idno docs (idx: 1, type: Types.CustomerId)

Returns

Types.CustomerUsername

Throws

Exceptions.InvalidArguments (idx: 1)

Roles

  • customer

changePassword

Change the customer password

Parameters

idno docs (idx: 1, type: Types.CustomerId)
passwordno docs (idx: 2, type: Thrift.string)

Returns

Thrift.void

Throws

Exceptions.InvalidArguments (idx: 1)

Roles

  • customer

changePIN

Change the customer PIN

Parameters

idno docs (idx: 1, type: Types.CustomerId)
pinno docs (idx: 2, type: Thrift.string)

Returns

Thrift.void

Throws

Exceptions.InvalidArguments (idx: 1)

Roles

  • customer

changeEmail

Change the customer email address

Parameters

idno docs (idx: 1, type: Types.CustomerId)
emailno docs (idx: 2, type: Types.EmailAddress)

Returns

Thrift.void

Throws

Exceptions.InvalidArguments (idx: 1)

Roles

  • customer

setSettings

Set a list of settings on the Customer

Parameters

idthe ID of the Customer (idx: 1, type: Types.CustomerId)
settingsa list of the settings (idx: 2, type: Types.SettingList)

Returns

Thrift.void

Throws

Exceptions.InvalidArguments (idx: 1)

Roles

  • customer

getSettings

Get all the settings associated with the Customer

Parameters

idthe ID of the Customer (idx: 1, type: Types.CustomerId)

Returns

Types.SettingList

Throws

Exceptions.InvalidArguments (idx: 1)

Roles

  • customer

addIpAddress

Add address to the Customer

Parameters

idno docs (idx: 1, type: Types.CustomerId)
addressno docs (idx: 2, type: Types.IPAddress, role: internal, optional)

Returns

Types.IPAddress

Throws

Exceptions.InvalidArguments (idx: 1)

Roles

  • customer

getIpAddresses

Get Addresses associated with Customer

Parameters

idno docs (idx: 1, type: Types.CustomerId)

Returns

Thrift.list (Types.IPAddress)

Throws

Exceptions.InvalidArguments (idx: 1)

Roles

  • customer

getDetailedIpAddresses

Get address details for a Customer

Parameters

idno docs (idx: 1, type: Types.CustomerId)

Returns

Thrift.list (Types.IPAddressDetails)

Throws

Exceptions.InvalidArguments (idx: 1)

Roles

  • customer

freeIpAddress

Free an Address from the customer

Parameters

idno docs (idx: 1, type: Types.CustomerId)
addressno docs (idx: 2, type: Types.IPAddress)

Returns

Thrift.void

Throws

Exceptions.InvalidArguments (idx: 1)

Roles

  • customer

createFTPUser

Create a Customer-controlled FTP user

Parameters

customerIdno docs (idx: 1, type: Types.CustomerId)
nameno docs (idx: 2, type: Types.CustomerName)
usernameno docs (idx: 3, type: Types.CustomerUsername)
passwordno docs (idx: 4, type: Thrift.string)
relativeRootno docs (idx: 5, type: Thrift.string, utf8)
typeno docs (idx: 6, type: Types.FTPUserType)
siteIdno docs (idx: 7, type: Types.SiteId, optional)
environmentIdno docs (idx: 8, type: Types.EnvironmentId, optional)

Returns

Types.FTPUser

Throws

Exceptions.InvalidArguments (idx: 1)

Roles

  • customer

listFTPUsers

List FTP users

Parameters

idno docs (idx: 1, type: Types.CustomerId)
siteIdno docs (idx: 7, type: Types.SiteId, optional)
environmentIdno docs (idx: 8, type: Types.EnvironmentId, optional)

Returns

Thrift.list (Types.FTPUser)

Throws

Exceptions.InvalidArguments (idx: 1)

Roles

  • customer

updateFTPUser

Update an FTP user

Parameters

idno docs (idx: 1, type: Types.FTPUserId)
nameno docs (idx: 2, type: Types.CustomerName, optional)
usernameno docs (idx: 3, type: Types.CustomerUsername, optional)
passwordno docs (idx: 4, type: Thrift.string, optional)
relativeRootno docs (idx: 5, type: Thrift.string, optional, utf8)
typeno docs (idx: 6, type: Types.FTPUserType, optional)
siteIdno docs (idx: 7, type: Types.SiteId, optional)
environmentIdno docs (idx: 8, type: Types.EnvironmentId, optional)

Returns

Thrift.void

Throws

Exceptions.InvalidArguments (idx: 1)

Roles

  • customer

destroyFTPUser

Delete an FTP user

Parameters

idno docs (idx: 1, type: Types.FTPUserId)

Returns

Thrift.void

Throws

Exceptions.InvalidArguments (idx: 1)

Roles

  • customer

currentBillableBandwidth

Fetch the latest billable bandwidth amount

Parameters

customerIdno docs (idx: 1, type: Types.CustomerId)

Returns

Types.ResourceHistoricalUsage

Throws

Exceptions.InvalidArguments (idx: 1)

Roles

  • customer

listNotices

Fetch all the notices associated with the customer (or global)

Parameters

customerIdno docs (idx: 1, type: Types.CustomerId)
sinceIgnore notices that were created or updated before this time (idx: 2, type: Types.UnixTime, optional)

Returns

Thrift.list (Types.CustomerNotice)

Throws

Exceptions.InvalidArguments (idx: 1)

Roles

  • customer

acknowledgeNotice

Set the acknowledged flag of a customer notice

Parameters

noticeIdno docs (idx: 1, type: Types.CustomerNoticeId)

Returns

Thrift.void

Throws

Exceptions.InvalidArguments (idx: 1)

Roles

  • customer

createContact

Create a contact

Parameters

customerIdno docs (idx: 1, type: Types.CustomerId)
nameno docs (idx: 2, type: Thrift.string)

Returns

Types.CustomerContactId

Throws

Exceptions.InvalidArguments (idx: 1)

Roles

  • customer

destroyContact

Delete a contact

Parameters

contactIdno docs (idx: 1, type: Types.CustomerContactId)

Returns

Thrift.void

Throws

Exceptions.InvalidArguments (idx: 1)

Roles

  • customer

createContactMethod

Associate a contact method with a contact

Parameters

contactIdno docs (idx: 1, type: Types.CustomerContactId)
methodIdno docs (idx: 2, type: Types.ContactMethodId)
optionsno docs (idx: 3, type: Thrift.map (Thrift.string => Thrift.string), optional)

Returns

Types.CustomerContactMethodId

Throws

Exceptions.InvalidArguments (idx: 1)

Roles

  • customer

destroyContactMethod

Delete a contact method

Parameters

contactMethodIdno docs (idx: 1, type: Types.CustomerContactMethodId)

Returns

Thrift.void

Throws

Exceptions.InvalidArguments (idx: 1)

Roles

  • customer

createContactMethodNotice

Associate a notice type with a contact method

Parameters

contactMethodIdno docs (idx: 1, type: Types.CustomerContactMethodId)
noticeTypeIdno docs (idx: 2, type: Types.ContactNoticeTypeId)
optionsno docs (idx: 3, type: Thrift.map (Thrift.string => Thrift.string), optional)

Returns

Types.CustomerContactMethodNoticeId

Throws

Exceptions.InvalidArguments (idx: 1)

Roles

  • customer

destroyContactMethodNotice

Delete a contact method notice association

Parameters

contactMethodNoticeIdno docs (idx: 1, type: Types.CustomerContactMethodNoticeId)

Returns

Thrift.void

Throws

Exceptions.InvalidArguments (idx: 1)

Roles

  • customer

listContactNoticeTypes

List contact notice types

Returns

Thrift.list (Types.ContactNoticeType)

Throws

Exceptions.InvalidArguments (idx: 1)

Roles

  • customer

listContactMethods

List contact methods

Returns

Thrift.list (Types.ContactMethod)

Throws

Exceptions.InvalidArguments (idx: 1)

Roles

  • customer

listContacts

List contacts and related objects

Parameters

customerIdno docs (idx: 1, type: Types.CustomerId)

Returns

Thrift.list (Types.Contact)

Throws

Exceptions.InvalidArguments (idx: 1)

Roles

  • customer
Base type Thrift.i16
Base type Thrift.string
Base type Thrift.string
Base type Thrift.string
Base type Thrift.i16
Base type Thrift.i16
Base type Thrift.i16
A Thrift built-in type.
Base type Thrift.string
Base type Thrift.string
A Thrift built-in type.
A Thrift built-in type.
A Thrift built-in type.
Structure representing an API key
Base type Thrift.i32
Base type Thrift.list (Types.APIKey)
Base type Thrift.string
Base type Thrift.i16
Structure of an API key’s ACL entry
Base type Thrift.i32
Base type Thrift.string
Base type Thrift.string
Base type Thrift.string
Base type Thrift.map (Types.SettingKey => Types.SettingValue)
Generic, typed struct for all Customer-referenced address details
Base type Thrift.string
Base type Thrift.i16
Base type Thrift.i16
A single Customer-controlled FTP user
Base type Thrift.i32
Moment in time resource usage for a container.
Base type Thrift.i32
A customer notice of an time-sensitive issue
Base type Thrift.i32
Base type Thrift.i32
Base type Thrift.i32
A Thrift built-in type.
Base type Thrift.i32
Base type Thrift.i32
Base type Thrift.i32
Contact stuff /// A contact notice type
A contact method type
Customer contact and related data
Close