Methods summary
public static
SoapClient
|
#
_getSoapClient( mixed $parameters = array() )
Gets the singleton SoapClient which is used to connect to the TransIP
Api.
Gets the singleton SoapClient which is used to connect to the TransIP
Api.
Parameters
- $parameters
mixed $parameters Parameters.
Returns
SoapClient
The SoapClient object to which we can connect to the TransIP API
|
protected static
string
|
#
_sign( mixed $parameters )
Calculates the hash to sign our request with based on the given
parameters.
Calculates the hash to sign our request with based on the given
parameters.
Parameters
- $parameters
mixed $parameters The parameters to sign.
Returns
string Base64 encoded signing hash.
|
protected static
string
|
#
_sha512Asn1( string $data )
Creates a digest of the given data, with an asn1 header.
Creates a digest of the given data, with an asn1 header.
Parameters
- $data
string $data The data to create a digest of.
Returns
string The digest of the data, with asn1 header.
|
protected static
string
|
#
_encodeParameters( mixed $parameters, string $keyPrefix = null )
Encodes the given paramaters into a url encoded string based upon RFC
3986.
Encodes the given paramaters into a url encoded string based upon RFC
3986.
Parameters
- $parameters
mixed $parameters The parameters to encode.
- $keyPrefix
string $keyPrefix Key prefix.
Returns
string The given parameters encoded according to RFC 3986.
|
protected static
string
|
#
_urlencode( string $string )
Our own function to encode a string according to RFC 3986 since. PHP <
5.3.0 encodes the ~ character which is not allowed.
Our own function to encode a string according to RFC 3986 since. PHP <
5.3.0 encodes the ~ character which is not allowed.
Parameters
- $string
string $string The string to encode.
Returns
string The encoded string according to RFC 3986.
|
public static
Transip_Product[]
|
|
public static
Transip_Product[]
|
|
public static
Transip_Product[]
|
#
getActiveAddonsForVps( string $vpsName )
Get all the Active Addons for Vps
Get all the Active Addons for Vps
Parameters
- $vpsName
string $vpsName The name of the VPS
Returns
|
public static
Transip_Product[]
|
#
getAvailableUpgrades( string $vpsName )
Get available VPS upgrades for a specific Vps
Get available VPS upgrades for a specific Vps
Parameters
- $vpsName
string $vpsName The name of the VPS
Returns
|
public static
Transip_Product[]
|
#
getAvailableAddonsForVps( string $vpsName )
Get available Addons for Vps
Get available Addons for Vps
Parameters
- $vpsName
string $vpsName The name of the VPS
Returns
|
public static
Transip_Product[]
|
#
getCancellableAddonsForVps( string $vpsName )
Get cancellable addons for specific Vps
Get cancellable addons for specific Vps
Parameters
- $vpsName
string $vpsName The name of the Vps
Returns
|
public static
|
#
orderVps( string $productName, string[] $addons, string $operatingSystemName, string $hostname )
Order a VPS with optional Addons
Order a VPS with optional Addons
Parameters
- $productName
string $productName Name of the product
- $addons
string[] $addons array with additional addons
- $operatingSystemName
string $operatingSystemName The name of the operatingSystem to install
- $hostname
string $hostname The name for the host
Throws
|
public static
|
#
orderVpsInAvailabilityZone( string $productName, string[] $addons, string $operatingSystemName, string $hostname, string $availabilityZone )
Order a VPS with optional Addons
Order a VPS with optional Addons
Parameters
- $productName
string $productName Name of the product
- $addons
string[] $addons array with additional addons
- $operatingSystemName
string $operatingSystemName The name of the operatingSystem to install
- $hostname
string $hostname The name for the host
- $availabilityZone
string $availabilityZone The availability zone the vps should be created in
Throws
|
public static
|
#
cloneVps( string $vpsName )
Clone a VPS
Parameters
- $vpsName
string $vpsName The vps name
Throws
|
public static
|
#
cloneVpsToAvailabilityZone( string $vpsName, string $availabilityZone )
Clone a VPS
Parameters
- $vpsName
string $vpsName The vps name
- $availabilityZone
string $availabilityZone The availability zone the clone should be created in.
Throws
|
public static
|
#
orderAddon( string $vpsName, string[] $addons )
Order addons to a VPS
Parameters
- $vpsName
string $vpsName The name of the VPS
- $addons
string[] $addons Array with Addons
Throws
ApiException on error
|
public static
|
|
public static
|
#
upgradeVps( string $vpsName, string $upgradeToProductName )
upgrade a Vps
Parameters
- $vpsName
string $vpsName The name of the VPS
- $upgradeToProductName
string $upgradeToProductName The name of the product to upgrade to
Throws
ApiException on error
|
public static
|
#
cancelVps( string $vpsName, string $endTime )
Cancel a Vps
Parameters
- $vpsName
string $vpsName The vps to cancel
- $endTime
string $endTime The time to cancel the vps (VpsService::CANCELLATIONTIME_END (end of
contract)
Throws
ApiException on error
|
public static
|
#
cancelAddon( string $vpsName, string $addonName )
Cancel a Vps Addon
Parameters
- $vpsName
string $vpsName The vps to cancel
- $addonName
string $addonName name of the addon
Throws
ApiException on error
|
public static
|
#
cancelPrivateNetwork( string $privateNetworkName, string $endTime )
Cancel a PrivateNetwork
Parameters
- $privateNetworkName
string $privateNetworkName the name of the private network to cancel
- $endTime
string $endTime The time to cancel the vps (VpsService::CANCELLATIONTIME_END (end of
contract)
Throws
ApiException on error
|
public static
Transip_PrivateNetwork[]
|
#
getPrivateNetworksByVps( string $vpsName )
Get Private networks for a specific vps
Get Private networks for a specific vps
Parameters
- $vpsName
string $vpsName The name of the VPS
Returns
|
public static
Transip_PrivateNetwork[]
|
#
getAllPrivateNetworks( )
Get all Private networks in your account
Get all Private networks in your account
Returns
|
public static
|
#
addVpsToPrivateNetwork( string $vpsName, string $privateNetworkName )
Add VPS to a private Network
Add VPS to a private Network
Parameters
- $vpsName
string $vpsName The name of the VPS
- $privateNetworkName
string $privateNetworkName The name of the privateNetwork to add to
|
public static
|
#
removeVpsFromPrivateNetwork( string $vpsName, string $privateNetworkName )
Remove VPS from a private Network
Remove VPS from a private Network
Parameters
- $vpsName
string $vpsName The name of the VPS
- $privateNetworkName
string $privateNetworkName The name of the private Network
|
public static
array
|
#
getTrafficInformationForVps( string $vpsName )
Get Traffic information by vpsName for this contractPeriod
Get Traffic information by vpsName for this contractPeriod
Parameters
- $vpsName
string $vpsName The name of the VPS
Returns
array The traffic information for this VPS
Throws
ApiException on error
|
public static
array
|
|
public static
|
#
start( string $vpsName )
Start a Vps
Parameters
- $vpsName
string $vpsName The vps name
Throws
ApiException on error
|
public static
|
#
stop( string $vpsName )
Stop a Vps
Parameters
- $vpsName
string $vpsName The vps name
Throws
ApiException on error
|
public static
|
#
reset( string $vpsName )
Reset a Vps
Parameters
- $vpsName
string $vpsName The vps name
Throws
ApiException on error
|
public static
|
#
createSnapshot( string $vpsName, string $description )
Create a snapshot
Parameters
- $vpsName
string $vpsName The vps name
- $description
string $description The snapshot description
Throws
ApiException on error
|
public static
|
#
revertSnapshot( string $vpsName, string $snapshotName )
Revert a snapshot
Parameters
- $vpsName
string $vpsName The vps name
- $snapshotName
string $snapshotName The snapshot name
Throws
ApiException on error
|
public static
|
#
revertSnapshotToOtherVps( string $sourceVpsName, string $snapshotName, string $destinationVpsName )
Revert a snapshot to another VPS
Revert a snapshot to another VPS
Parameters
- $sourceVpsName
string $sourceVpsName The name of the VPS where the snapshot is made
- $snapshotName
string $snapshotName The snapshot name
- $destinationVpsName
string $destinationVpsName The name of the VPS where the snapshot should be reverted to
Throws
ApiException on error
|
public static
|
#
removeSnapshot( string $vpsName, string $snapshotName )
Remove a snapshot
Parameters
- $vpsName
string $vpsName The vps name
- $snapshotName
string $snapshotName The snapshot name
Throws
ApiException on error
|
public static
|
#
revertVpsBackup( string $vpsName, integer $vpsBackupId )
Revert a vps backup
Parameters
- $vpsName
string $vpsName The vps name
- $vpsBackupId
integer $vpsBackupId The backup id
Throws
ApiException on error
|
public static
Transip_Vps
|
#
getVps( string $vpsName )
Get a Vps by name
Parameters
- $vpsName
string $vpsName The vps name
Returns
|
public static
Transip_Vps[]
|
|
public static
Transip_Snapshot[]
|
#
getSnapshotsByVps( string $vpsName )
Get all Snapshots for a vps
Get all Snapshots for a vps
Parameters
- $vpsName
string $vpsName The name of the VPS
Returns
|
public static
Transip_VpsBackup[]
|
#
getVpsBackupsByVps( string $vpsName )
Get all VpsBackups for a vps
Get all VpsBackups for a vps
Parameters
- $vpsName
string $vpsName The name of the VPS
Returns
|
public static
Transip_OperatingSystem[]
|
|
public static
|
#
installOperatingSystem( string $vpsName, string $operatingSystemName, string $hostname )
Install an operating system on a vps
Install an operating system on a vps
Parameters
- $vpsName
string $vpsName The name of the VPS
- $operatingSystemName
string $operatingSystemName The name of the operating to install
- $hostname
string $hostname preinstallable Only
|
public static
|
#
installOperatingSystemUnattended( string $vpsName, string $operatingSystemName, string $base64InstallText )
Install an operating system on a vps with a unattended installfile
Install an operating system on a vps with a unattended installfile
Parameters
- $vpsName
string $vpsName The name of the VPS
- $operatingSystemName
string $operatingSystemName The name of the operating to install
- $base64InstallText
string $base64InstallText base64_encoded preseed/kickstart text
Throws
ApiException
|
public static
string[]
|
#
getIpsForVps( string $vpsName )
Get Ips for a specific Vps
Get Ips for a specific Vps
Parameters
- $vpsName
string $vpsName The name of the Vps
Returns
string[] $ipAddresses Array of ipAddresses
|
public static
string[]
|
#
getAllIps( )
Get All ips
Returns
string[] $ipAddresses Array of ipAddresses
|
public static
|
#
addIpv6ToVps( string $vpsName, string $ipv6Address )
Add Ipv6 Address to Vps
Parameters
- $vpsName
string $vpsName The name of the VPS
- $ipv6Address
string $ipv6Address The Ipv6 Address from your range
Throws
ApiException on error
|
public static
|
#
updatePtrRecord( string $ipAddress, string $ptrRecord )
Update PTR record (reverse DNS) for an ipAddress
Update PTR record (reverse DNS) for an ipAddress
Parameters
- $ipAddress
string $ipAddress The IP Address to update (ipv4 or ipv6)
- $ptrRecord
string $ptrRecord The PTR Record to update to
Throws
ApiException on error
|
public static
|
#
setCustomerLock( string $vpsName, boolean $enabled )
Enable or Disable a Customer Lock for a Vps
Enable or Disable a Customer Lock for a Vps
Parameters
- $vpsName
string $vpsName The name of the Vps
- $enabled
boolean $enabled Enable (true) or Disable (false) the lock
Throws
ApiException on error
|
public static
|
#
handoverVps( string $vpsName, string $targetAccountname )
Handover a VPS to another TransIP User
Handover a VPS to another TransIP User
Parameters
- $vpsName
string $vpsName The name of the Vps
- $targetAccountname
string $targetAccountname the target account name
Throws
ApiException on error
|
public static
Transip_AvailabilityZone[]
|
|
public static
|
#
convertVpsBackupToSnapshot( string $vpsName, string $description, integer $vpsBackupId )
Convert a backup to a Snapshot
Convert a backup to a Snapshot
Parameters
- $vpsName
string $vpsName The vps name
- $description
string $description The snapshot description
- $vpsBackupId
integer $vpsBackupId The selected backup id
Throws
ApiException on error
|