This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
require '/path/to/rackspace.php'; | |
$DOMAIN_EMAIL = 'something@example.com'; | |
// establish our credentials | |
$cloud = new OpenCloud\Rackspace(RACKSPACE_US, | |
array('username' => $USERNAME, 'apiKey' => $APIKEY )); | |
// connect to the DNS service | |
$dns = $cloud->DNS(); | |
// get a list of domains | |
$dlist = $dns->DomainList(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"access": { | |
"token": { | |
"id": "25aa39d9-a823-4e37-8036-5e9XX7ae9015", | |
"expires": "2012-06-05T11:26:53.000-05:00", | |
"tenant": { | |
"id": "555111", | |
"name": "555111" | |
} | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"endpoints": [ | |
{ | |
"region": "DFW", | |
"tenantId": "555111", | |
"publicURL": "https:\/\/dfw.servers.api.rackspacecloud.com\/v2\/555111", | |
"versionInfo": "https:\/\/dfw.servers.api.rackspacecloud.com\/v2", | |
"versionList": "https:\/\/dfw.servers.api.rackspacecloud.com\/", | |
"versionId": "2" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"endpoints": [ | |
{ | |
"region": "DFW", | |
"tenantId": "555111", | |
"publicURL": "https:\/\/dfw.servers.api.rackspacecloud.com\/v2\/555111", | |
"versionInfo": "https:\/\/dfw.servers.api.rackspacecloud.com\/v2", | |
"versionList": "https:\/\/dfw.servers.api.rackspacecloud.com\/", | |
"versionId": "2" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"access": { | |
"token": { | |
"id": "25aa39d9-a823-4e37-8036-5e9XX7ae9015", | |
"expires": "2012-06-05T11:26:53.000-05:00", | |
"tenant": { | |
"id": "555111", | |
"name": "555111" | |
} | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
require '/path/to/rackspace.php'; | |
$DOMAIN_EMAIL = 'something@example.com'; | |
// establish our credentials | |
$cloud = new OpenCloud\Rackspace(RACKSPACE_US, | |
array('username' => $USERNAME, 'apiKey' => $APIKEY )); | |
// connect to the DNS service | |
$dns = $cloud->DNS(); | |
// get a list of domains | |
$dlist = $dns->DomainList(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"auth": { | |
"passwordCredentials": { | |
"username": "Foo", | |
"password": "Bar" | |
}, | |
"tenantName": "666999" | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"auth": { | |
"RAX-KSKEY:apiKeyCredentials": { | |
"username": "username", | |
"apiKey": "some-api-key-value", | |
"tenantName": "9099293" | |
} | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# unload old database | |
mysqldump -h {hostname} -u {user} -p{password} {database} >tempfile.dump | |
# load the new one | |
mysql -h {clouddbhost} -u {user} -p{password} {database} <tempfile.dump |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
define('RAXSDK_OBJSTORE_NAME','cloudFiles'); | |
define('RAXSDK_OBJSTORE_REGION','DFW'); | |
require_once( 'lib/raxconnection.inc' ); | |
require_once( 'lib/objectstore.inc' ); | |
// create a connection to rackspace | |
$conn = new RaxConnection( | |
'https://identity.api.rackspacecloud.com/v2.0/', | |
array( | |
'username' => ' YOUR USERNAME ', |
NewerOlder