Zend Framework
1.12
|
Public Member Functions | |
__construct ($subscriptionId, $certificatePath, $certificatePassphrase, Zend_Service_WindowsAzure_RetryPolicy_RetryPolicyAbstract $retryPolicy=null) | |
Creates a new Zend_Service_SqlAzure_Management instance. | |
setHttpClientChannel ($adapterInstance= 'Zend_Http_Client_Adapter_Socket') | |
Set the HTTP client channel to use. | |
getHttpClientChannel () | |
Retrieve HTTP client channel. | |
getSubscriptionId () | |
Returns the Windows Azure subscription ID. | |
getLastRequestId () | |
Returns the last request ID. | |
getBaseUrl () | |
Get base URL for creating requests. | |
createServer ($administratorLogin, $administratorPassword, $location) | |
The Create Server operation adds a new SQL Azure server to a subscription. | |
listServers () | |
The Get Servers operation enumerates SQL Azure servers that are provisioned for a subscription. | |
dropServer ($serverName) | |
The Drop Server operation drops a SQL Azure server from a subscription. | |
setAdministratorPassword ($serverName, $administratorPassword) | |
The Set Server Administrator Password operation sets the administrative password of a SQL Azure server for a subscription. | |
createFirewallRule ($serverName, $ruleName, $startIpAddress, $endIpAddress) | |
The Set Server Firewall Rule operation updates an existing firewall rule or adds a new firewall rule for a SQL Azure server that belongs to a subscription. | |
listFirewallRules ($serverName) | |
The Get Server Firewall Rules operation retrieves a list of all the firewall rules for a SQL Azure server that belongs to a subscription. | |
deleteFirewallRule ($serverName, $ruleName) | |
The Delete Server Firewall Rule operation deletes a firewall rule from a SQL Azure server that belongs to a subscription. | |
createFirewallRuleForMicrosoftServices ($serverName, $allowAccess) | |
Creates a firewall rule for Microsoft Services. | |
Static Public Member Functions | |
static | urlencode ($value) |
URL encode function. | |
static | createQueryStringFromArray ($queryString) |
Builds a query string from an array of elements. | |
Public Attributes | |
const | URL_MANAGEMENT = "https://management.database.windows.net:8443" |
Management service URL. | |
const | OP_OPERATIONS = "operations" |
Operations. | |
const | OP_SERVERS = "servers" |
const | OP_FIREWALLRULES = "firewallrules" |
Protected Member Functions | |
_performRequest ($path= '/', $queryString= '', $httpVerb=Zend_Http_Client::GET, $headers=array(), $rawData=null) | |
Perform request using Zend_Http_Client channel. | |
_parseResponse (Zend_Http_Response $response=null) | |
Parse result from Zend_Http_Response. | |
_getErrorMessage (Zend_Http_Response $response, $alternativeError= 'Unknown error.') | |
Get error message from Zend_Http_Response. | |
Protected Attributes | |
$_apiVersion = '1.0' | |
$_subscriptionId = '' | |
$_certificatePath = '' | |
$_certificatePassphrase = '' | |
$_httpClientChannel = null | |
$_retryPolicy = null | |
$_lastRequestId = null | |
__construct | ( | $subscriptionId, | |
$certificatePath, | |||
$certificatePassphrase, | |||
Zend_Service_WindowsAzure_RetryPolicy_RetryPolicyAbstract | $retryPolicy = null |
||
) |
Creates a new Zend_Service_SqlAzure_Management instance.
string | $subscriptionId | Subscription ID |
string | $certificatePath | Management certificate path (.PEM) |
string | $certificatePassphrase | Management certificate passphrase |
Zend_Service_WindowsAzure_RetryPolicy_RetryPolicyAbstract | $retryPolicy | Retry policy to use when making requests |
|
protected |
Get error message from Zend_Http_Response.
Zend_Http_Response | $response | Repsonse |
string | $alternativeError | Alternative error message |
|
protected |
Parse result from Zend_Http_Response.
Zend_Http_Response | $response | Response from HTTP call |
Zend_Service_WindowsAzure_Exception |
|
protected |
Perform request using Zend_Http_Client channel.
string | $path | Path |
string | $queryString | Query string |
string | $httpVerb | HTTP verb the request will use |
array | $headers | x-ms headers to add |
mixed | $rawData | Optional RAW HTTP data to be sent over the wire |
createFirewallRule | ( | $serverName, | |
$ruleName, | |||
$startIpAddress, | |||
$endIpAddress | |||
) |
The Set Server Firewall Rule operation updates an existing firewall rule or adds a new firewall rule for a SQL Azure server that belongs to a subscription.
string | $serverName | Server name. |
string | $ruleName | Firewall rule name. |
string | $startIpAddress | Start IP address. |
string | $endIpAddress | End IP address. |
Zend_Service_SqlAzure_Management_Exception |
createFirewallRuleForMicrosoftServices | ( | $serverName, | |
$allowAccess | |||
) |
Creates a firewall rule for Microsoft Services.
This is required if access to SQL Azure is required from other services like Windows Azure.
string | $serverName | Server name. |
boolean | $allowAccess | Allow access from other Microsoft Services? |
Zend_Service_SqlAzure_Management_Exception |
|
static |
Builds a query string from an array of elements.
array | Array of elements |
createServer | ( | $administratorLogin, | |
$administratorPassword, | |||
$location | |||
) |
The Create Server operation adds a new SQL Azure server to a subscription.
string | $administratorLogin | Administrator login. |
string | $administratorPassword | Administrator password. |
string | $location | Location of the server. |
Zend_Service_SqlAzure_Management_Exception |
deleteFirewallRule | ( | $serverName, | |
$ruleName | |||
) |
The Delete Server Firewall Rule operation deletes a firewall rule from a SQL Azure server that belongs to a subscription.
string | $serverName | Server name. |
string | $ruleName | Rule name. |
Zend_Service_SqlAzure_Management_Exception |
dropServer | ( | $serverName | ) |
The Drop Server operation drops a SQL Azure server from a subscription.
string | $serverName | Server to drop. |
Zend_Service_SqlAzure_Management_Exception |
getBaseUrl | ( | ) |
Get base URL for creating requests.
getHttpClientChannel | ( | ) |
Retrieve HTTP client channel.
getLastRequestId | ( | ) |
Returns the last request ID.
getSubscriptionId | ( | ) |
Returns the Windows Azure subscription ID.
listFirewallRules | ( | $serverName | ) |
The Get Server Firewall Rules operation retrieves a list of all the firewall rules for a SQL Azure server that belongs to a subscription.
string | $serverName | Server name. |
Zend_Service_SqlAzure_Management_Exception |
listServers | ( | ) |
The Get Servers operation enumerates SQL Azure servers that are provisioned for a subscription.
Zend_Service_SqlAzure_Management_Exception |
setAdministratorPassword | ( | $serverName, | |
$administratorPassword | |||
) |
The Set Server Administrator Password operation sets the administrative password of a SQL Azure server for a subscription.
string | $serverName | Server to set password for. |
string | $administratorPassword | Administrator password. |
Zend_Service_SqlAzure_Management_Exception |
setHttpClientChannel | ( | $adapterInstance = 'Zend_Http_Client_Adapter_Socket' | ) |
Set the HTTP client channel to use.
Zend_Http_Client_Adapter_Interface | string | $adapterInstance | Adapter instance or adapter class name. |
|
static |
URL encode function.
string | $value | Value to encode |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
const OP_FIREWALLRULES = "firewallrules" |
const OP_OPERATIONS = "operations" |
Operations.
const OP_SERVERS = "servers" |
const URL_MANAGEMENT = "https://management.database.windows.net:8443" |
Management service URL.