-
Notifications
You must be signed in to change notification settings - Fork 8
Resources: Locations
Danny Li edited this page Feb 4, 2018
·
2 revisions
The Locations
resource does not have any special methods.
The Location
object has the following methods:
<?php
use Exploriment\HetznerCloud;
// retrieve the location
$location = HetznerCloud\Locations::find(1);
// returns the location ID (int)
$location->getId();
// returns the location name (string)
$location->getName();
// returns the location description (string)
$location->getDescription();
// returns the location country (string)
$location->getCountry();
// returns the city closest to the location (string)
$location->getCity();
// returns the latitude of the city closest to the location (float)
$location->getLatitude();
// returns the longitude of the city closest to the location (float)
$location->getLongitude();
by Exploriment.io
- README.md
-
Resources introduction
- Actions
-
Servers
::findAction
::create
::getMetrics
::rename
::start
-
::powerOn
(alias) ::reboot
-
::restart
(alias) ::reset
::shutdown
-
::stop
(alias) ::powerOff
::resetPassword
::enableRescue
::disableRescue
::createImage
::rebuild
::changeType
::enableBackups
::disableBackups
::attachIso
::detachIso
::changeDnsPtr
::changeProtection
::requestConsole
::delete
- FloatingIps
- SshKeys
- ServerTypes
- Locations
- Datacenters
- Images
- ISOs