Checks whether the hostname is available.
Checks whether the hostname is available.
Method | Request URI | HTTP Version |
---|---|---|
GET |
https://service-endpoint/services/webspaces/web/ishostnameavailable/{subDomain} |
HTTP/1.1 |
Sample Request
The Request body is empty.
Sample XML Response
Copy Code | |
---|---|
<boolean xmlns="http://schemas.microsoft.com/2003/10/Serialization/">true</boolean> |
Sample JSON Response
Copy Code | |
---|---|
true |
Checks whether the hostname is reserved or not allowed.
Checks whether the hostname is reserved or not allowed.
Method | Request URI | HTTP Version |
---|---|---|
GET |
https://service-endpoint/services/webspaces/web/ishostnamereservedornotallowed/{subDomain} |
HTTP/1.1 |
Sample Request
The Request body is empty.
Sample XML Response
Copy Code | |
---|---|
<boolean xmlns="http://schemas.microsoft.com/2003/10/Serialization/">true</boolean> |
Sample JSON Response
Copy Code | |
---|---|
true |
Returns all the sites for a given subscription.
Returns all the sites for a given subscription.
Method | Request URI | HTTP Version |
---|---|---|
GET |
https://service-endpoint/services/webspaces/web/subscriptions/{subscriptionName}/sites |
HTTP/1.1 |
Sample Request
The Request body is empty.
Sample XML Response
Copy Code | |
---|---|
<Sites xmlns="http://schemas.microsoft.com/windowsazure"> <Site> <AdminEnabled>true</AdminEnabled> <AvailabilityState>Normal</AvailabilityState> <Enabled>true</Enabled> <EnabledHostNames> <string xmlns="http://schemas.microsoft.com/2003/10/Serialization/Arrays">String content</string> <string xmlns="http://schemas.microsoft.com/2003/10/Serialization/Arrays">String content</string> </EnabledHostNames> <HostNameSslStates> <HostNameSslState> <Name>String content</Name> <SslState>Disabled</SslState> <Thumbprint>String content</Thumbprint> <ToUpdate>true</ToUpdate> </HostNameSslState> <HostNameSslState> <Name>String content</Name> <SslState>Disabled</SslState> <Thumbprint>String content</Thumbprint> <ToUpdate>true</ToUpdate> </HostNameSslState> </HostNameSslStates> <HostNames> <string xmlns="http://schemas.microsoft.com/2003/10/Serialization/Arrays">String content</string> <string xmlns="http://schemas.microsoft.com/2003/10/Serialization/Arrays">String content</string> </HostNames> <Name>String content</Name> <Owner>String content</Owner> <RepositorySiteName>String content</RepositorySiteName> <SSLCertificates> <Certificate> <ExpirationDate>1999-05-31T11:20:00</ExpirationDate> <FriendlyName>String content</FriendlyName> <HostNames> <string xmlns="http://schemas.microsoft.com/2003/10/Serialization/Arrays">String content</string> <string xmlns="http://schemas.microsoft.com/2003/10/Serialization/Arrays">String content</string> </HostNames> <IssueDate>1999-05-31T11:20:00</IssueDate> <Issuer>String content</Issuer> <Password>String content</Password> <PfxBlob>QmFzZSA2NCBTdHJlYW0=</PfxBlob> <SelfLink>http://www.example.com/</SelfLink> <SiteName>String content</SiteName> <SubjectName>String content</SubjectName> <Thumbprint>String content</Thumbprint> <ToDelete>true</ToDelete> <Valid>true</Valid> </Certificate> <Certificate> <ExpirationDate>1999-05-31T11:20:00</ExpirationDate> <FriendlyName>String content</FriendlyName> <HostNames> <string xmlns="http://schemas.microsoft.com/2003/10/Serialization/Arrays">String content</string> <string xmlns="http://schemas.microsoft.com/2003/10/Serialization/Arrays">String content</string> </HostNames> <IssueDate>1999-05-31T11:20:00</IssueDate> <Issuer>String content</Issuer> <Password>String content</Password> <PfxBlob>QmFzZSA2NCBTdHJlYW0=</PfxBlob> <SelfLink>http://www.example.com/</SelfLink> <SiteName>String content</SiteName> <SubjectName>String content</SubjectName> <Thumbprint>String content</Thumbprint> <ToDelete>true</ToDelete> <Valid>true</Valid> </Certificate> </SSLCertificates> <SelfLink>http://www.example.com/</SelfLink> <SiteMode>String content</SiteMode> <SiteProperties> <Metadata> <NameValuePair> <Name>String content</Name> <Value>String content</Value> </NameValuePair> <NameValuePair> <Name>String content</Name> <Value>String content</Value> </NameValuePair> </Metadata> <Properties> <NameValuePair> <Name>String content</Name> <Value>String content</Value> </NameValuePair> <NameValuePair> <Name>String content</Name> <Value>String content</Value> </NameValuePair> </Properties> </SiteProperties> <State>String content</State> <UsageState>Normal</UsageState> <WebSpace>String content</WebSpace> </Site> <Site> <AdminEnabled>true</AdminEnabled> <AvailabilityState>Normal</AvailabilityState> <Enabled>true</Enabled> <EnabledHostNames> <string xmlns="http://schemas.microsoft.com/2003/10/Serialization/Arrays">String content</string> <string xmlns="http://schemas.microsoft.com/2003/10/Serialization/Arrays">String content</string> </EnabledHostNames> <HostNameSslStates> <HostNameSslState> <Name>String content</Name> <SslState>Disabled</SslState> <Thumbprint>String content</Thumbprint> <ToUpdate>true</ToUpdate> </HostNameSslState> <HostNameSslState> <Name>String content</Name> <SslState>Disabled</SslState> <Thumbprint>String content</Thumbprint> <ToUpdate>true</ToUpdate> </HostNameSslState> </HostNameSslStates> <HostNames> <string xmlns="http://schemas.microsoft.com/2003/10/Serialization/Arrays">String content</string> <string xmlns="http://schemas.microsoft.com/2003/10/Serialization/Arrays">String content</string> </HostNames> <Name>String content</Name> <Owner>String content</Owner> <RepositorySiteName>String content</RepositorySiteName> <SSLCertificates> <Certificate> <ExpirationDate>1999-05-31T11:20:00</ExpirationDate> <FriendlyName>String content</FriendlyName> <HostNames> <string xmlns="http://schemas.microsoft.com/2003/10/Serialization/Arrays">String content</string> <string xmlns="http://schemas.microsoft.com/2003/10/Serialization/Arrays">String content</string> </HostNames> <IssueDate>1999-05-31T11:20:00</IssueDate> <Issuer>String content</Issuer> <Password>String content</Password> <PfxBlob>QmFzZSA2NCBTdHJlYW0=</PfxBlob> <SelfLink>http://www.example.com/</SelfLink> <SiteName>String content</SiteName> <SubjectName>String content</SubjectName> <Thumbprint>String content</Thumbprint> <ToDelete>true</ToDelete> <Valid>true</Valid> </Certificate> <Certificate> <ExpirationDate>1999-05-31T11:20:00</ExpirationDate> <FriendlyName>String content</FriendlyName> <HostNames> <string xmlns="http://schemas.microsoft.com/2003/10/Serialization/Arrays">String content</string> <string xmlns="http://schemas.microsoft.com/2003/10/Serialization/Arrays">String content</string> </HostNames> <IssueDate>1999-05-31T11:20:00</IssueDate> <Issuer>String content</Issuer> <Password>String content</Password> <PfxBlob>QmFzZSA2NCBTdHJlYW0=</PfxBlob> <SelfLink>http://www.example.com/</SelfLink> <SiteName>String content</SiteName> <SubjectName>String content</SubjectName> <Thumbprint>String content</Thumbprint> <ToDelete>true</ToDelete> <Valid>true</Valid> </Certificate> </SSLCertificates> <SelfLink>http://www.example.com/</SelfLink> <SiteMode>String content</SiteMode> <SiteProperties> <Metadata> <NameValuePair> <Name>String content</Name> <Value>String content</Value> </NameValuePair> <NameValuePair> <Name>String content</Name> <Value>String content</Value> </NameValuePair> </Metadata> <Properties> <NameValuePair> <Name>String content</Name> <Value>String content</Value> </NameValuePair> <NameValuePair> <Name>String content</Name> <Value>String content</Value> </NameValuePair> </Properties> </SiteProperties> <State>String content</State> <UsageState>Normal</UsageState> <WebSpace>String content</WebSpace> </Site> </Sites> |
Sample JSON Response
Copy Code | |
---|---|
[ { "AdminEnabled": true, "AvailabilityState": 0, "Enabled": true, "EnabledHostNames": [ "String content" ], "HostNameSslStates": [ { "Name": "String content", "SslState": 0, "Thumbprint": "String content", "ToUpdate": true } ], "HostNames": [ "String content" ], "Name": "String content", "Owner": "String content", "RepositorySiteName": "String content", "SSLCertificates": [ { "ExpirationDate": "/Date(928174800000-0700)/", "FriendlyName": "String content", "HostNames": [ "String content" ], "IssueDate": "/Date(928174800000-0700)/", "Issuer": "String content", "Password": "String content", "PfxBlob": [ 81, 109, 70, 122, 90, 83, 65, 50, 78, 67, 66, 84, 100, 72, 74, 108, 89, 87, 48, 61 ], "SelfLink": "http://www.example.com/", "SiteName": "String content", "SubjectName": "String content", "Thumbprint": "String content", "ToDelete": true, "Valid": true } ], "SelfLink": "http://www.example.com/", "SiteMode": "String content", "SiteProperties": { "Metadata": [ { "Name": "String content", "Value": "String content" } ], "Properties": [ { "Name": "String content", "Value": "String content" } ] }, "State": "String content", "UsageState": 0, "WebSpace": "String content" } ] |
Returns all the sites for a given subscription and webspace.
Returns all the sites for a given subscription and webspace.
Method | Request URI | HTTP Version |
---|---|---|
GET |
https://service-endpoint/services/subscriptions/{subscriptionName}/webspaces/{webspaceName}/sites |
HTTP/1.1 |
Sample Request
The Request body is empty.
Sample XML Response
Copy Code | |
---|---|
<Sites xmlns="http://schemas.microsoft.com/windowsazure"> <Site> <AdminEnabled>true</AdminEnabled> <AvailabilityState>Normal</AvailabilityState> <Enabled>true</Enabled> <EnabledHostNames> <string xmlns="http://schemas.microsoft.com/2003/10/Serialization/Arrays">String content</string> <string xmlns="http://schemas.microsoft.com/2003/10/Serialization/Arrays">String content</string> </EnabledHostNames> <HostNameSslStates> <HostNameSslState> <Name>String content</Name> <SslState>Disabled</SslState> <Thumbprint>String content</Thumbprint> <ToUpdate>true</ToUpdate> </HostNameSslState> <HostNameSslState> <Name>String content</Name> <SslState>Disabled</SslState> <Thumbprint>String content</Thumbprint> <ToUpdate>true</ToUpdate> </HostNameSslState> </HostNameSslStates> <HostNames> <string xmlns="http://schemas.microsoft.com/2003/10/Serialization/Arrays">String content</string> <string xmlns="http://schemas.microsoft.com/2003/10/Serialization/Arrays">String content</string> </HostNames> <Name>String content</Name> <Owner>String content</Owner> <RepositorySiteName>String content</RepositorySiteName> <SSLCertificates> <Certificate> <ExpirationDate>1999-05-31T11:20:00</ExpirationDate> <FriendlyName>String content</FriendlyName> <HostNames> <string xmlns="http://schemas.microsoft.com/2003/10/Serialization/Arrays">String content</string> <string xmlns="http://schemas.microsoft.com/2003/10/Serialization/Arrays">String content</string> </HostNames> <IssueDate>1999-05-31T11:20:00</IssueDate> <Issuer>String content</Issuer> <Password>String content</Password> <PfxBlob>QmFzZSA2NCBTdHJlYW0=</PfxBlob> <SelfLink>http://www.example.com/</SelfLink> <SiteName>String content</SiteName> <SubjectName>String content</SubjectName> <Thumbprint>String content</Thumbprint> <ToDelete>true</ToDelete> <Valid>true</Valid> </Certificate> <Certificate> <ExpirationDate>1999-05-31T11:20:00</ExpirationDate> <FriendlyName>String content</FriendlyName> <HostNames> <string xmlns="http://schemas.microsoft.com/2003/10/Serialization/Arrays">String content</string> <string xmlns="http://schemas.microsoft.com/2003/10/Serialization/Arrays">String content</string> </HostNames> <IssueDate>1999-05-31T11:20:00</IssueDate> <Issuer>String content</Issuer> <Password>String content</Password> <PfxBlob>QmFzZSA2NCBTdHJlYW0=</PfxBlob> <SelfLink>http://www.example.com/</SelfLink> <SiteName>String content</SiteName> <SubjectName>String content</SubjectName> <Thumbprint>String content</Thumbprint> <ToDelete>true</ToDelete> <Valid>true</Valid> </Certificate> </SSLCertificates> <SelfLink>http://www.example.com/</SelfLink> <SiteMode>String content</SiteMode> <SiteProperties> <Metadata> <NameValuePair> <Name>String content</Name> <Value>String content</Value> </NameValuePair> <NameValuePair> <Name>String content</Name> <Value>String content</Value> </NameValuePair> </Metadata> <Properties> <NameValuePair> <Name>String content</Name> <Value>String content</Value> </NameValuePair> <NameValuePair> <Name>String content</Name> <Value>String content</Value> </NameValuePair> </Properties> </SiteProperties> <State>String content</State> <UsageState>Normal</UsageState> <WebSpace>String content</WebSpace> </Site> <Site> <AdminEnabled>true</AdminEnabled> <AvailabilityState>Normal</AvailabilityState> <Enabled>true</Enabled> <EnabledHostNames> <string xmlns="http://schemas.microsoft.com/2003/10/Serialization/Arrays">String content</string> <string xmlns="http://schemas.microsoft.com/2003/10/Serialization/Arrays">String content</string> </EnabledHostNames> <HostNameSslStates> <HostNameSslState> <Name>String content</Name> <SslState>Disabled</SslState> <Thumbprint>String content</Thumbprint> <ToUpdate>true</ToUpdate> </HostNameSslState> <HostNameSslState> <Name>String content</Name> <SslState>Disabled</SslState> <Thumbprint>String content</Thumbprint> <ToUpdate>true</ToUpdate> </HostNameSslState> </HostNameSslStates> <HostNames> <string xmlns="http://schemas.microsoft.com/2003/10/Serialization/Arrays">String content</string> <string xmlns="http://schemas.microsoft.com/2003/10/Serialization/Arrays">String content</string> </HostNames> <Name>String content</Name> <Owner>String content</Owner> <RepositorySiteName>String content</RepositorySiteName> <SSLCertificates> <Certificate> <ExpirationDate>1999-05-31T11:20:00</ExpirationDate> <FriendlyName>String content</FriendlyName> <HostNames> <string xmlns="http://schemas.microsoft.com/2003/10/Serialization/Arrays">String content</string> <string xmlns="http://schemas.microsoft.com/2003/10/Serialization/Arrays">String content</string> </HostNames> <IssueDate>1999-05-31T11:20:00</IssueDate> <Issuer>String content</Issuer> <Password>String content</Password> <PfxBlob>QmFzZSA2NCBTdHJlYW0=</PfxBlob> <SelfLink>http://www.example.com/</SelfLink> <SiteName>String content</SiteName> <SubjectName>String content</SubjectName> <Thumbprint>String content</Thumbprint> <ToDelete>true</ToDelete> <Valid>true</Valid> </Certificate> <Certificate> <ExpirationDate>1999-05-31T11:20:00</ExpirationDate> <FriendlyName>String content</FriendlyName> <HostNames> <string xmlns="http://schemas.microsoft.com/2003/10/Serialization/Arrays">String content</string> <string xmlns="http://schemas.microsoft.com/2003/10/Serialization/Arrays">String content</string> </HostNames> <IssueDate>1999-05-31T11:20:00</IssueDate> <Issuer>String content</Issuer> <Password>String content</Password> <PfxBlob>QmFzZSA2NCBTdHJlYW0=</PfxBlob> <SelfLink>http://www.example.com/</SelfLink> <SiteName>String content</SiteName> <SubjectName>String content</SubjectName> <Thumbprint>String content</Thumbprint> <ToDelete>true</ToDelete> <Valid>true</Valid> </Certificate> </SSLCertificates> <SelfLink>http://www.example.com/</SelfLink> <SiteMode>String content</SiteMode> <SiteProperties> <Metadata> <NameValuePair> <Name>String content</Name> <Value>String content</Value> </NameValuePair> <NameValuePair> <Name>String content</Name> <Value>String content</Value> </NameValuePair> </Metadata> <Properties> <NameValuePair> <Name>String content</Name> <Value>String content</Value> </NameValuePair> <NameValuePair> <Name>String content</Name> <Value>String content</Value> </NameValuePair> </Properties> </SiteProperties> <State>String content</State> <UsageState>Normal</UsageState> <WebSpace>String content</WebSpace> </Site> </Sites> |
Sample JSON Response
Copy Code | |
---|---|
[ { "AdminEnabled": true, "AvailabilityState": 0, "Enabled": true, "EnabledHostNames": [ "String content" ], "HostNameSslStates": [ { "Name": "String content", "SslState": 0, "Thumbprint": "String content", "ToUpdate": true } ], "HostNames": [ "String content" ], "Name": "String content", "Owner": "String content", "RepositorySiteName": "String content", "SSLCertificates": [ { "ExpirationDate": "/Date(928174800000-0700)/", "FriendlyName": "String content", "HostNames": [ "String content" ], "IssueDate": "/Date(928174800000-0700)/", "Issuer": "String content", "Password": "String content", "PfxBlob": [ 81, 109, 70, 122, 90, 83, 65, 50, 78, 67, 66, 84, 100, 72, 74, 108, 89, 87, 48, 61 ], "SelfLink": "http://www.example.com/", "SiteName": "String content", "SubjectName": "String content", "Thumbprint": "String content", "ToDelete": true, "Valid": true } ], "SelfLink": "http://www.example.com/", "SiteMode": "String content", "SiteProperties": { "Metadata": [ { "Name": "String content", "Value": "String content" } ], "Properties": [ { "Name": "String content", "Value": "String content" } ] }, "State": "String content", "UsageState": 0, "WebSpace": "String content" } ] |
Add new site
Adds a new site
Method | Request URI | HTTP Version |
---|---|---|
POST |
https://service-endpoint/services/subscriptions/{subscriptionName}/webspaces/{webspaceName}/sites |
HTTP/1.1 |
Sample XML Request
Copy Code | |
---|---|
<Site xmlns="http://schemas.microsoft.com/windowsazure"> <AdminEnabled>true</AdminEnabled> <AvailabilityState>Normal</AvailabilityState> <Enabled>true</Enabled> <EnabledHostNames> <string xmlns="http://schemas.microsoft.com/2003/10/Serialization/Arrays">String content</string> <string xmlns="http://schemas.microsoft.com/2003/10/Serialization/Arrays">String content</string> </EnabledHostNames> <HostNameSslStates> <HostNameSslState> <Name>String content</Name> <SslState>Disabled</SslState> <Thumbprint>String content</Thumbprint> <ToUpdate>true</ToUpdate> </HostNameSslState> <HostNameSslState> <Name>String content</Name> <SslState>Disabled</SslState> <Thumbprint>String content</Thumbprint> <ToUpdate>true</ToUpdate> </HostNameSslState> </HostNameSslStates> <HostNames> <string xmlns="http://schemas.microsoft.com/2003/10/Serialization/Arrays">String content</string> <string xmlns="http://schemas.microsoft.com/2003/10/Serialization/Arrays">String content</string> </HostNames> <Name>String content</Name> <Owner>String content</Owner> <RepositorySiteName>String content</RepositorySiteName> <SSLCertificates> <Certificate> <ExpirationDate>1999-05-31T11:20:00</ExpirationDate> <FriendlyName>String content</FriendlyName> <HostNames> <string xmlns="http://schemas.microsoft.com/2003/10/Serialization/Arrays">String content</string> <string xmlns="http://schemas.microsoft.com/2003/10/Serialization/Arrays">String content</string> </HostNames> <IssueDate>1999-05-31T11:20:00</IssueDate> <Issuer>String content</Issuer> <Password>String content</Password> <PfxBlob>QmFzZSA2NCBTdHJlYW0=</PfxBlob> <SelfLink>http://www.example.com/</SelfLink> <SiteName>String content</SiteName> <SubjectName>String content</SubjectName> <Thumbprint>String content</Thumbprint> <ToDelete>true</ToDelete> <Valid>true</Valid> </Certificate> <Certificate> <ExpirationDate>1999-05-31T11:20:00</ExpirationDate> <FriendlyName>String content</FriendlyName> <HostNames> <string xmlns="http://schemas.microsoft.com/2003/10/Serialization/Arrays">String content</string> <string xmlns="http://schemas.microsoft.com/2003/10/Serialization/Arrays">String content</string> </HostNames> <IssueDate>1999-05-31T11:20:00</IssueDate> <Issuer>String content</Issuer> <Password>String content</Password> <PfxBlob>QmFzZSA2NCBTdHJlYW0=</PfxBlob> <SelfLink>http://www.example.com/</SelfLink> <SiteName>String content</SiteName> <SubjectName>String content</SubjectName> <Thumbprint>String content</Thumbprint> <ToDelete>true</ToDelete> <Valid>true</Valid> </Certificate> </SSLCertificates> <SelfLink>http://www.example.com/</SelfLink> <SiteMode>String content</SiteMode> <SiteProperties> <Metadata> <NameValuePair> <Name>String content</Name> <Value>String content</Value> </NameValuePair> <NameValuePair> <Name>String content</Name> <Value>String content</Value> </NameValuePair> </Metadata> <Properties> <NameValuePair> <Name>String content</Name> <Value>String content</Value> </NameValuePair> <NameValuePair> <Name>String content</Name> <Value>String content</Value> </NameValuePair> </Properties> </SiteProperties> <State>String content</State> <UsageState>Normal</UsageState> <WebSpace>String content</WebSpace> </Site> |
Sample JSON Request
Copy Code | |
---|---|
{ "AdminEnabled": true, "AvailabilityState": 0, "Enabled": true, "EnabledHostNames": [ "String content" ], "HostNameSslStates": [ { "Name": "String content", "SslState": 0, "Thumbprint": "String content", "ToUpdate": true } ], "HostNames": [ "String content" ], "Name": "String content", "Owner": "String content", "RepositorySiteName": "String content", "SSLCertificates": [ { "ExpirationDate": "/Date(928174800000-0700)/", "FriendlyName": "String content", "HostNames": [ "String content" ], "IssueDate": "/Date(928174800000-0700)/", "Issuer": "String content", "Password": "String content", "PfxBlob": [ 81, 109, 70, 122, 90, 83, 65, 50, 78, 67, 66, 84, 100, 72, 74, 108, 89, 87, 48, 61 ], "SelfLink": "http://www.example.com/", "SiteName": "String content", "SubjectName": "String content", "Thumbprint": "String content", "ToDelete": true, "Valid": true } ], "SelfLink": "http://www.example.com/", "SiteMode": "String content", "SiteProperties": { "Metadata": [ { "Name": "String content", "Value": "String content" } ], "Properties": [ { "Name": "String content", "Value": "String content" } ] }, "State": "String content", "UsageState": 0, "WebSpace": "String content" } |
Sample XML Response
Copy Code | |
---|---|
<Site xmlns="http://schemas.microsoft.com/windowsazure"> <AdminEnabled>true</AdminEnabled> <AvailabilityState>Normal</AvailabilityState> <Enabled>true</Enabled> <EnabledHostNames> <string xmlns="http://schemas.microsoft.com/2003/10/Serialization/Arrays">String content</string> <string xmlns="http://schemas.microsoft.com/2003/10/Serialization/Arrays">String content</string> </EnabledHostNames> <HostNameSslStates> <HostNameSslState> <Name>String content</Name> <SslState>Disabled</SslState> <Thumbprint>String content</Thumbprint> <ToUpdate>true</ToUpdate> </HostNameSslState> <HostNameSslState> <Name>String content</Name> <SslState>Disabled</SslState> <Thumbprint>String content</Thumbprint> <ToUpdate>true</ToUpdate> </HostNameSslState> </HostNameSslStates> <HostNames> <string xmlns="http://schemas.microsoft.com/2003/10/Serialization/Arrays">String content</string> <string xmlns="http://schemas.microsoft.com/2003/10/Serialization/Arrays">String content</string> </HostNames> <Name>String content</Name> <Owner>String content</Owner> <RepositorySiteName>String content</RepositorySiteName> <SSLCertificates> <Certificate> <ExpirationDate>1999-05-31T11:20:00</ExpirationDate> <FriendlyName>String content</FriendlyName> <HostNames> <string xmlns="http://schemas.microsoft.com/2003/10/Serialization/Arrays">String content</string> <string xmlns="http://schemas.microsoft.com/2003/10/Serialization/Arrays">String content</string> </HostNames> <IssueDate>1999-05-31T11:20:00</IssueDate> <Issuer>String content</Issuer> <Password>String content</Password> <PfxBlob>QmFzZSA2NCBTdHJlYW0=</PfxBlob> <SelfLink>http://www.example.com/</SelfLink> <SiteName>String content</SiteName> <SubjectName>String content</SubjectName> <Thumbprint>String content</Thumbprint> <ToDelete>true</ToDelete> <Valid>true</Valid> </Certificate> <Certificate> <ExpirationDate>1999-05-31T11:20:00</ExpirationDate> <FriendlyName>String content</FriendlyName> <HostNames> <string xmlns="http://schemas.microsoft.com/2003/10/Serialization/Arrays">String content</string> <string xmlns="http://schemas.microsoft.com/2003/10/Serialization/Arrays">String content</string> </HostNames> <IssueDate>1999-05-31T11:20:00</IssueDate> <Issuer>String content</Issuer> <Password>String content</Password> <PfxBlob>QmFzZSA2NCBTdHJlYW0=</PfxBlob> <SelfLink>http://www.example.com/</SelfLink> <SiteName>String content</SiteName> <SubjectName>String content</SubjectName> <Thumbprint>String content</Thumbprint> <ToDelete>true</ToDelete> <Valid>true</Valid> </Certificate> </SSLCertificates> <SelfLink>http://www.example.com/</SelfLink> <SiteMode>String content</SiteMode> <SiteProperties> <Metadata> <NameValuePair> <Name>String content</Name> <Value>String content</Value> </NameValuePair> <NameValuePair> <Name>String content</Name> <Value>String content</Value> </NameValuePair> </Metadata> <Properties> <NameValuePair> <Name>String content</Name> <Value>String content</Value> </NameValuePair> <NameValuePair> <Name>String content</Name> <Value>String content</Value> </NameValuePair> </Properties> </SiteProperties> <State>String content</State> <UsageState>Normal</UsageState> <WebSpace>String content</WebSpace> </Site> |
Sample JSON Response
Copy Code | |
---|---|
{ "AdminEnabled": true, "AvailabilityState": 0, "Enabled": true, "EnabledHostNames": [ "String content" ], "HostNameSslStates": [ { "Name": "String content", "SslState": 0, "Thumbprint": "String content", "ToUpdate": true } ], "HostNames": [ "String content" ], "Name": "String content", "Owner": "String content", "RepositorySiteName": "String content", "SSLCertificates": [ { "ExpirationDate": "/Date(928174800000-0700)/", "FriendlyName": "String content", "HostNames": [ "String content" ], "IssueDate": "/Date(928174800000-0700)/", "Issuer": "String content", "Password": "String content", "PfxBlob": [ 81, 109, 70, 122, 90, 83, 65, 50, 78, 67, 66, 84, 100, 72, 74, 108, 89, 87, 48, 61 ], "SelfLink": "http://www.example.com/", "SiteName": "String content", "SubjectName": "String content", "Thumbprint": "String content", "ToDelete": true, "Valid": true } ], "SelfLink": "http://www.example.com/", "SiteMode": "String content", "SiteProperties": { "Metadata": [ { "Name": "String content", "Value": "String content" } ], "Properties": [ { "Name": "String content", "Value": "String content" } ] }, "State": "String content", "UsageState": 0, "WebSpace": "String content" } |
Create new subscription
Creates a new subscription
Method | Request URI | HTTP Version |
---|---|---|
POST |
https://service-endpoint/ subscriptions |
HTTP/1.1 |
Sample XML Request
Copy Code | |
---|---|
<Subscription xmlns="http://schemas.microsoft.com/windowsazure"> <Description>String content</Description> <Name>String content</Name> <OwnerUserName>String content</OwnerUserName> <Suspended>true</Suspended> </Subscription> |
Sample JSON Request
Copy Code | |
---|---|
{ "Description": "String content", "Name": "String content", "OwnerUserName": "String content", "Suspended": true } |
Sample XML Response
Copy Code | |
---|---|
<Subscription xmlns="http://schemas.microsoft.com/windowsazure"> <Description>String content</Description> <Name>String content</Name> <OwnerUserName>String content</OwnerUserName> <Suspended>true</Suspended> </Subscription> |
Sample JSON Response
Copy Code | |
---|---|
{ "Description": "String content", "Name": "String content", "OwnerUserName": "String content", "Suspended": true } |
Returns the details of a particular site
Returns the details of a particular site.
Method | Request URI | HTTP Version |
---|---|---|
GET |
https://service-endpoint/ subscriptions/{SUBSCRIPTIONNAME}/webspaces/{WEBSPACENAME}/sites/{NAME}?propertiesToInclude={PROPERTIESTOINCLUDE} |
HTTP/1.1 |
Sample Request
The Request body is empty.
Sample XML Response
Copy Code | |
---|---|
<Site xmlns="http://schemas.microsoft.com/windowsazure"> <AdminEnabled>true</AdminEnabled> <AvailabilityState>Normal</AvailabilityState> <Enabled>true</Enabled> <EnabledHostNames> <string xmlns="http://schemas.microsoft.com/2003/10/Serialization/Arrays">String content</string> <string xmlns="http://schemas.microsoft.com/2003/10/Serialization/Arrays">String content</string> </EnabledHostNames> <HostNameSslStates> <HostNameSslState> <Name>String content</Name> <SslState>Disabled</SslState> <Thumbprint>String content</Thumbprint> <ToUpdate>true</ToUpdate> </HostNameSslState> <HostNameSslState> <Name>String content</Name> <SslState>Disabled</SslState> <Thumbprint>String content</Thumbprint> <ToUpdate>true</ToUpdate> </HostNameSslState> </HostNameSslStates> <HostNames> <string xmlns="http://schemas.microsoft.com/2003/10/Serialization/Arrays">String content</string> <string xmlns="http://schemas.microsoft.com/2003/10/Serialization/Arrays">String content</string> </HostNames> <Name>String content</Name> <Owner>String content</Owner> <RepositorySiteName>String content</RepositorySiteName> <SSLCertificates> <Certificate> <ExpirationDate>1999-05-31T11:20:00</ExpirationDate> <FriendlyName>String content</FriendlyName> <HostNames> <string xmlns="http://schemas.microsoft.com/2003/10/Serialization/Arrays">String content</string> <string xmlns="http://schemas.microsoft.com/2003/10/Serialization/Arrays">String content</string> </HostNames> <IssueDate>1999-05-31T11:20:00</IssueDate> <Issuer>String content</Issuer> <Password>String content</Password> <PfxBlob>QmFzZSA2NCBTdHJlYW0=</PfxBlob> <SelfLink>http://www.example.com/</SelfLink> <SiteName>String content</SiteName> <SubjectName>String content</SubjectName> <Thumbprint>String content</Thumbprint> <ToDelete>true</ToDelete> <Valid>true</Valid> </Certificate> <Certificate> <ExpirationDate>1999-05-31T11:20:00</ExpirationDate> <FriendlyName>String content</FriendlyName> <HostNames> <string xmlns="http://schemas.microsoft.com/2003/10/Serialization/Arrays">String content</string> <string xmlns="http://schemas.microsoft.com/2003/10/Serialization/Arrays">String content</string> </HostNames> <IssueDate>1999-05-31T11:20:00</IssueDate> <Issuer>String content</Issuer> <Password>String content</Password> <PfxBlob>QmFzZSA2NCBTdHJlYW0=</PfxBlob> <SelfLink>http://www.example.com/</SelfLink> <SiteName>String content</SiteName> <SubjectName>String content</SubjectName> <Thumbprint>String content</Thumbprint> <ToDelete>true</ToDelete> <Valid>true</Valid> </Certificate> </SSLCertificates> <SelfLink>http://www.example.com/</SelfLink> <SiteMode>String content</SiteMode> <SiteProperties> <Metadata> <NameValuePair> <Name>String content</Name> <Value>String content</Value> </NameValuePair> <NameValuePair> <Name>String content</Name> <Value>String content</Value> </NameValuePair> </Metadata> <Properties> <NameValuePair> <Name>String content</Name> <Value>String content</Value> </NameValuePair> <NameValuePair> <Name>String content</Name> <Value>String content</Value> </NameValuePair> </Properties> </SiteProperties> <State>String content</State> <UsageState>Normal</UsageState> <WebSpace>String content</WebSpace> </Site> |
Sample JSON Response
Copy Code | |
---|---|
{ "AdminEnabled":true, "AvailabilityState":0, "Enabled":true, "EnabledHostNames":["String content"], "HostNameSslStates":[{ "Name":"String content", "SslState":0, "Thumbprint":"String content", "ToUpdate":true }], "HostNames":["String content"], "Name":"String content", "Owner":"String content", "RepositorySiteName":"String content", "SSLCertificates":[{ "ExpirationDate":"\/Date(928174800000-0700)\/", "FriendlyName":"String content", "HostNames":["String content"], "IssueDate":"\/Date(928174800000-0700)\/", "Issuer":"String content", "Password":"String content", "PfxBlob":[81, 109, 70, 122, 90, 83, 65, 50, 78, 67, 66, 84, 100, 72, 74, 108, 89, 87, 48, 61], "SelfLink":"http:\/\/www.example.com\/", "SiteName":"String content", "SubjectName":"String content", "Thumbprint":"String content", "ToDelete":true, "Valid":true }], "SelfLink":"http:\/\/www.example.com\/", "SiteMode":"String content", "SiteProperties":{ "Metadata":[{ "Name":"String content", "Value":"String content" }], "Properties":[{ "Name":"String content", "Value":"String content" }] }, "State":"String content", "UsageState":0, "WebSpace":"String content" } |
Update existing site
Updates an existing site
Method | Request URI | HTTP Version |
---|---|---|
PUT |
https://service-endpoint/subscriptions/{SUBSCRIPTIONNAME}/webspaces/{WEBSPACENAME}/sites/{NAME} |
HTTP/1.1 |
Sample XML Request
Copy Code | |
---|---|
<Site xmlns="http://schemas.microsoft.com/windowsazure"> <AdminEnabled>true</AdminEnabled> <AvailabilityState>Normal</AvailabilityState> <Enabled>true</Enabled> <EnabledHostNames> <string xmlns="http://schemas.microsoft.com/2003/10/Serialization/Arrays">String content</string> <string xmlns="http://schemas.microsoft.com/2003/10/Serialization/Arrays">String content</string> </EnabledHostNames> <HostNameSslStates> <HostNameSslState> <Name>String content</Name> <SslState>Disabled</SslState> <Thumbprint>String content</Thumbprint> <ToUpdate>true</ToUpdate> </HostNameSslState> <HostNameSslState> <Name>String content</Name> <SslState>Disabled</SslState> <Thumbprint>String content</Thumbprint> <ToUpdate>true</ToUpdate> </HostNameSslState> </HostNameSslStates> <HostNames> <string xmlns="http://schemas.microsoft.com/2003/10/Serialization/Arrays">String content</string> <string xmlns="http://schemas.microsoft.com/2003/10/Serialization/Arrays">String content</string> </HostNames> <Name>String content</Name> <Owner>String content</Owner> <RepositorySiteName>String content</RepositorySiteName> <SSLCertificates> <Certificate> <ExpirationDate>1999-05-31T11:20:00</ExpirationDate> <FriendlyName>String content</FriendlyName> <HostNames> <string xmlns="http://schemas.microsoft.com/2003/10/Serialization/Arrays">String content</string> <string xmlns="http://schemas.microsoft.com/2003/10/Serialization/Arrays">String content</string> </HostNames> <IssueDate>1999-05-31T11:20:00</IssueDate> <Issuer>String content</Issuer> <Password>String content</Password> <PfxBlob>QmFzZSA2NCBTdHJlYW0=</PfxBlob> <SelfLink>http://www.example.com/</SelfLink> <SiteName>String content</SiteName> <SubjectName>String content</SubjectName> <Thumbprint>String content</Thumbprint> <ToDelete>true</ToDelete> <Valid>true</Valid> </Certificate> <Certificate> <ExpirationDate>1999-05-31T11:20:00</ExpirationDate> <FriendlyName>String content</FriendlyName> <HostNames> <string xmlns="http://schemas.microsoft.com/2003/10/Serialization/Arrays">String content</string> <string xmlns="http://schemas.microsoft.com/2003/10/Serialization/Arrays">String content</string> </HostNames> <IssueDate>1999-05-31T11:20:00</IssueDate> <Issuer>String content</Issuer> <Password>String content</Password> <PfxBlob>QmFzZSA2NCBTdHJlYW0=</PfxBlob> <SelfLink>http://www.example.com/</SelfLink> <SiteName>String content</SiteName> <SubjectName>String content</SubjectName> <Thumbprint>String content</Thumbprint> <ToDelete>true</ToDelete> <Valid>true</Valid> </Certificate> </SSLCertificates> <SelfLink>http://www.example.com/</SelfLink> <SiteMode>String content</SiteMode> <SiteProperties> <Metadata> <NameValuePair> <Name>String content</Name> <Value>String content</Value> </NameValuePair> <NameValuePair> <Name>String content</Name> <Value>String content</Value> </NameValuePair> </Metadata> <Properties> <NameValuePair> <Name>String content</Name> <Value>String content</Value> </NameValuePair> <NameValuePair> <Name>String content</Name> <Value>String content</Value> </NameValuePair> </Properties> </SiteProperties> <State>String content</State> <UsageState>Normal</UsageState> <WebSpace>String content</WebSpace> </Site> |
Sample JSON Request
Copy Code | |
---|---|
{ "AdminEnabled":true, "AvailabilityState":0, "Enabled":true, "EnabledHostNames":["String content"], "HostNameSslStates":[{ "Name":"String content", "SslState":0, "Thumbprint":"String content", "ToUpdate":true }], "HostNames":["String content"], "Name":"String content", "Owner":"String content", "RepositorySiteName":"String content", "SSLCertificates":[{ "ExpirationDate":"\/Date(928174800000-0700)\/", "FriendlyName":"String content", "HostNames":["String content"], "IssueDate":"\/Date(928174800000-0700)\/", "Issuer":"String content", "Password":"String content", "PfxBlob":[81, 109, 70, 122, 90, 83, 65, 50, 78, 67, 66, 84, 100, 72, 74, 108, 89, 87, 48, 61], "SelfLink":"http:\/\/www.example.com\/", "SiteName":"String content", "SubjectName":"String content", "Thumbprint":"String content", "ToDelete":true, "Valid":true }], "SelfLink":"http:\/\/www.example.com\/", "SiteMode":"String content", "SiteProperties":{ "Metadata":[{ "Name":"String content", "Value":"String content" }], "Properties":[{ "Name":"String content", "Value":"String content" }] }, "State":"String content", "UsageState":0, "WebSpace":"String content" } |
Sample XML Response
Copy Code | |
---|---|
<Site xmlns="http://schemas.microsoft.com/windowsazure"> <AdminEnabled>true</AdminEnabled> <AvailabilityState>Normal</AvailabilityState> <Enabled>true</Enabled> <EnabledHostNames> <string xmlns="http://schemas.microsoft.com/2003/10/Serialization/Arrays">String content</string> <string xmlns="http://schemas.microsoft.com/2003/10/Serialization/Arrays">String content</string> </EnabledHostNames> <HostNameSslStates> <HostNameSslState> <Name>String content</Name> <SslState>Disabled</SslState> <Thumbprint>String content</Thumbprint> <ToUpdate>true</ToUpdate> </HostNameSslState> <HostNameSslState> <Name>String content</Name> <SslState>Disabled</SslState> <Thumbprint>String content</Thumbprint> <ToUpdate>true</ToUpdate> </HostNameSslState> </HostNameSslStates> <HostNames> <string xmlns="http://schemas.microsoft.com/2003/10/Serialization/Arrays">String content</string> <string xmlns="http://schemas.microsoft.com/2003/10/Serialization/Arrays">String content</string> </HostNames> <Name>String content</Name> <Owner>String content</Owner> <RepositorySiteName>String content</RepositorySiteName> <SSLCertificates> <Certificate> <ExpirationDate>1999-05-31T11:20:00</ExpirationDate> <FriendlyName>String content</FriendlyName> <HostNames> <string xmlns="http://schemas.microsoft.com/2003/10/Serialization/Arrays">String content</string> <string xmlns="http://schemas.microsoft.com/2003/10/Serialization/Arrays">String content</string> </HostNames> <IssueDate>1999-05-31T11:20:00</IssueDate> <Issuer>String content</Issuer> <Password>String content</Password> <PfxBlob>QmFzZSA2NCBTdHJlYW0=</PfxBlob> <SelfLink>http://www.example.com/</SelfLink> <SiteName>String content</SiteName> <SubjectName>String content</SubjectName> <Thumbprint>String content</Thumbprint> <ToDelete>true</ToDelete> <Valid>true</Valid> </Certificate> <Certificate> <ExpirationDate>1999-05-31T11:20:00</ExpirationDate> <FriendlyName>String content</FriendlyName> <HostNames> <string xmlns="http://schemas.microsoft.com/2003/10/Serialization/Arrays">String content</string> <string xmlns="http://schemas.microsoft.com/2003/10/Serialization/Arrays">String content</string> </HostNames> <IssueDate>1999-05-31T11:20:00</IssueDate> <Issuer>String content</Issuer> <Password>String content</Password> <PfxBlob>QmFzZSA2NCBTdHJlYW0=</PfxBlob> <SelfLink>http://www.example.com/</SelfLink> <SiteName>String content</SiteName> <SubjectName>String content</SubjectName> <Thumbprint>String content</Thumbprint> <ToDelete>true</ToDelete> <Valid>true</Valid> </Certificate> </SSLCertificates> <SelfLink>http://www.example.com/</SelfLink> <SiteMode>String content</SiteMode> <SiteProperties> <Metadata> <NameValuePair> <Name>String content</Name> <Value>String content</Value> </NameValuePair> <NameValuePair> <Name>String content</Name> <Value>String content</Value> </NameValuePair> </Metadata> <Properties> <NameValuePair> <Name>String content</Name> <Value>String content</Value> </NameValuePair> <NameValuePair> <Name>String content</Name> <Value>String content</Value> </NameValuePair> </Properties> </SiteProperties> <State>String content</State> <UsageState>Normal</UsageState> <WebSpace>String content</WebSpace> </Site> |
Sample JSON Response
Copy Code | |
---|---|
{ "AdminEnabled":true, "AvailabilityState":0, "Enabled":true, "EnabledHostNames":["String content"], "HostNameSslStates":[{ "Name":"String content", "SslState":0, "Thumbprint":"String content", "ToUpdate":true }], "HostNames":["String content"], "Name":"String content", "Owner":"String content", "RepositorySiteName":"String content", "SSLCertificates":[{ "ExpirationDate":"\/Date(928174800000-0700)\/", "FriendlyName":"String content", "HostNames":["String content"], "IssueDate":"\/Date(928174800000-0700)\/", "Issuer":"String content", "Password":"String content", "PfxBlob":[81, 109, 70, 122, 90, 83, 65, 50, 78, 67, 66, 84, 100, 72, 74, 108, 89, 87, 48, 61], "SelfLink":"http:\/\/www.example.com\/", "SiteName":"String content", "SubjectName":"String content", "Thumbprint":"String content", "ToDelete":true, "Valid":true }], "SelfLink":"http:\/\/www.example.com\/", "SiteMode":"String content", "SiteProperties":{ "Metadata":[{ "Name":"String content", "Value":"String content" }], "Properties":[{ "Name":"String content", "Value":"String content" }] }, "State":"String content", "UsageState":0, "WebSpace":"String content" } |
Swap site
Swaps traffic of an existing site with another site.
Method | Request URI | HTTP Version |
---|---|---|
POST |
https://service-endpoint/subscriptions/{SUBSCRIPTIONNAME}/webspaces/{WEBSPACENAME}/sites/{NAME}?Command={COMMAND}&OtherSiteName={OTHERSITENAME} |
HTTP/1.1 |
Sample Request
The Request body is empty
Sample Response
The Response body is empty
Delete site
Deletes an existing site
Method | Request URI | HTTP Version |
---|---|---|
DELETE |
https://service-endpoint/subscriptions/{SUBSCRIPTIONNAME}/webspaces/{WEBSPACENAME}/sites/{NAME}?deleteMetrics={DELETEMETRICS} |
HTTP/1.1 |
Sample Request
The Request body is empty.
Sample Response
The Response body is empty.
Return the audit logs for a particular site
Returns all the sites for a given subscription and webspace.
Method | Request URI | HTTP Version |
---|---|---|
GET |
https://service-endpoint/subscriptions/{SUBSCRIPTIONNAME}/webspaces/{WEBSPACENAME}/sites |
HTTP/1.1 |
Sample Request
The Request body is empty.
Sample XML Response
Copy Code | |
---|---|
<AuditLogs xmlns="http://schemas.datacontract.org/2004/07/Microsoft.Web.Hosting.Administration"> <AuditLog> <Details xmlns="http://schemas.microsoft.com/windowsazure">String content</Details> <Id xmlns="http://schemas.microsoft.com/windowsazure">2147483647</Id> <Level xmlns="http://schemas.microsoft.com/windowsazure">2147483647</Level> <Logged xmlns="http://schemas.microsoft.com/windowsazure">1999-05-31T11:20:00</Logged> <Message xmlns="http://schemas.microsoft.com/windowsazure">String content</Message> <MessageIdentifier xmlns="http://schemas.microsoft.com/windowsazure">String content</MessageIdentifier> <Protocol xmlns="http://schemas.microsoft.com/windowsazure">String content</Protocol> <Source xmlns="http://schemas.microsoft.com/windowsazure">String content</Source> <User xmlns="http://schemas.microsoft.com/windowsazure">String content</User> <UserAddress xmlns="http://schemas.microsoft.com/windowsazure">String content</UserAddress> </AuditLog> <AuditLog> <Details xmlns="http://schemas.microsoft.com/windowsazure">String content</Details> <Id xmlns="http://schemas.microsoft.com/windowsazure">2147483647</Id> <Level xmlns="http://schemas.microsoft.com/windowsazure">2147483647</Level> <Logged xmlns="http://schemas.microsoft.com/windowsazure">1999-05-31T11:20:00</Logged> <Message xmlns="http://schemas.microsoft.com/windowsazure">String content</Message> <MessageIdentifier xmlns="http://schemas.microsoft.com/windowsazure">String content</MessageIdentifier> <Protocol xmlns="http://schemas.microsoft.com/windowsazure">String content</Protocol> <Source xmlns="http://schemas.microsoft.com/windowsazure">String content</Source> <User xmlns="http://schemas.microsoft.com/windowsazure">String content</User> <UserAddress xmlns="http://schemas.microsoft.com/windowsazure">String content</UserAddress> </AuditLog> </AuditLogs> |
Sample JSON Response
Copy Code | |
---|---|
[ { "Details": "String content", "Id": 2147483647, "Level": 2147483647, "Logged": "/Date(928174800000-0700)/", "Message": "String content", "MessageIdentifier": "String content", "Protocol": "String content", "Source": "String content", "User": "String content", "UserAddress": "String content" } ] |
Get site’s configuration settings
Gets site’s configuration settings
Method | Request URI | HTTP Version |
---|---|---|
GET |
https://service-endpoint/subscriptions/{SUBSCRIPTIONNAME}/webspaces/{WEBSPACENAME}/sites |
HTTP/1.1 |
Sample Request
The Request body is empty.
Sample XML Response
Copy Code | |
---|---|
<SiteConfig xmlns="http://schemas.microsoft.com/windowsazure"> <AppSettings> <NameValuePair> <Name>String content</Name> <Value>String content</Value> </NameValuePair> <NameValuePair> <Name>String content</Name> <Value>String content</Value> </NameValuePair> </AppSettings> <ConnectionStrings> <ConnStringInfo> <ConnectionString>String content</ConnectionString> <Name>String content</Name> <Type>MySql</Type> </ConnStringInfo> <ConnStringInfo> <ConnectionString>String content</ConnectionString> <Name>String content</Name> <Type>MySql</Type> </ConnStringInfo> </ConnectionStrings> <DefaultDocuments> <string xmlns="http://schemas.microsoft.com/2003/10/Serialization/Arrays">String content</string> <string xmlns="http://schemas.microsoft.com/2003/10/Serialization/Arrays">String content</string> </DefaultDocuments> <DetailedErrorLoggingEnabled>true</DetailedErrorLoggingEnabled> <HandlerMappings> <HandlerMapping> <Arguments>String content</Arguments> <Extension>String content</Extension> <ScriptProcessor>String content</ScriptProcessor> </HandlerMapping> <HandlerMapping> <Arguments>String content</Arguments> <Extension>String content</Extension> <ScriptProcessor>String content</ScriptProcessor> </HandlerMapping> </HandlerMappings> <HttpLoggingEnabled>true</HttpLoggingEnabled> <Metadata> <NameValuePair> <Name>String content</Name> <Value>String content</Value> </NameValuePair> <NameValuePair> <Name>String content</Name> <Value>String content</Value> </NameValuePair> </Metadata> <NetFrameworkVersion>String content</NetFrameworkVersion> <NumberOfWorkers>2147483647</NumberOfWorkers> <PhpVersion>String content</PhpVersion> <PublishingPassword>String content</PublishingPassword> <PublishingUsername>String content</PublishingUsername> <RequestTracingEnabled>true</RequestTracingEnabled> </SiteConfig> |
Sample JSON Response
Copy Code | |
---|---|
{ "AppSettings":[{ "Name":"String content", "Value":"String content" }], "ConnectionStrings":[{ "ConnectionString":"String content", "Name":"String content", "Type":0 }], "DefaultDocuments":["String content"], "DetailedErrorLoggingEnabled":true, "HandlerMappings":[{ "Arguments":"String content", "Extension":"String content", "ScriptProcessor":"String content" }], "HttpLoggingEnabled":true, "Metadata":[{ "Name":"String content", "Value":"String content" }], "NetFrameworkVersion":"String content", "NumberOfWorkers":2147483647, "PhpVersion":"String content", "PublishingPassword":"String content", "PublishingUsername":"String content", "RequestTracingEnabled":true } |
Updates site's configuration settings
Updates site's configuration settings
Method | Request URI | HTTP Version |
---|---|---|
PUT |
https://service-endpoint/subscriptions/{SUBSCRIPTIONNAME}/webspaces/{WEBSPACENAME}/sites/{NAME}/config |
HTTP/1.1 |
Sample XML Request
Copy Code | |
---|---|
<SiteConfig xmlns="http://schemas.microsoft.com/windowsazure"> <AppSettings> <NameValuePair> <Name>String content</Name> <Value>String content</Value> </NameValuePair> <NameValuePair> <Name>String content</Name> <Value>String content</Value> </NameValuePair> </AppSettings> <ConnectionStrings> <ConnStringInfo> <ConnectionString>String content</ConnectionString> <Name>String content</Name> <Type>MySql</Type> </ConnStringInfo> <ConnStringInfo> <ConnectionString>String content</ConnectionString> <Name>String content</Name> <Type>MySql</Type> </ConnStringInfo> </ConnectionStrings> <DefaultDocuments> <string xmlns="http://schemas.microsoft.com/2003/10/Serialization/Arrays">String content</string> <string xmlns="http://schemas.microsoft.com/2003/10/Serialization/Arrays">String content</string> </DefaultDocuments> <DetailedErrorLoggingEnabled>true</DetailedErrorLoggingEnabled> <HandlerMappings> <HandlerMapping> <Arguments>String content</Arguments> <Extension>String content</Extension> <ScriptProcessor>String content</ScriptProcessor> </HandlerMapping> <HandlerMapping> <Arguments>String content</Arguments> <Extension>String content</Extension> <ScriptProcessor>String content</ScriptProcessor> </HandlerMapping> </HandlerMappings> <HttpLoggingEnabled>true</HttpLoggingEnabled> <Metadata> <NameValuePair> <Name>String content</Name> <Value>String content</Value> </NameValuePair> <NameValuePair> <Name>String content</Name> <Value>String content</Value> </NameValuePair> </Metadata> <NetFrameworkVersion>String content</NetFrameworkVersion> <NumberOfWorkers>2147483647</NumberOfWorkers> <PhpVersion>String content</PhpVersion> <PublishingPassword>String content</PublishingPassword> <PublishingUsername>String content</PublishingUsername> <RequestTracingEnabled>true</RequestTracingEnabled> </SiteConfig> |
Sample JSON Request
Copy Code | |
---|---|
{ "AppSettings":[{ "Name":"String content", "Value":"String content" }], "ConnectionStrings":[{ "ConnectionString":"String content", "Name":"String content", "Type":0 }], "DefaultDocuments":["String content"], "DetailedErrorLoggingEnabled":true, "HandlerMappings":[{ "Arguments":"String content", "Extension":"String content", "ScriptProcessor":"String content" }], "HttpLoggingEnabled":true, "Metadata":[{ "Name":"String content", "Value":"String content" }], "NetFrameworkVersion":"String content", "NumberOfWorkers":2147483647, "PhpVersion":"String content", "PublishingPassword":"String content", "PublishingUsername":"String content", "RequestTracingEnabled":true } |
Sample XML Response
Copy Code | |
---|---|
Empty |
Sample JSON Response
Copy Code | |
---|---|
Empty |
Checks site exists.
Checks site exists.
Method | Request URI | HTTP Version |
---|---|---|
GET |
https://service-endpoint/subscriptions/{SUBSCRIPTIONNAME}/webspaces/{WEBSPACENAME}/sites/{NAME}/exists |
HTTP/1.1 |
Sample XML Request
Copy Code | |
---|---|
Empty |
Sample JSON Request
Copy Code | |
---|---|
Empty |
Sample XML Response
Copy Code | |
---|---|
<boolean xmlns="http://schemas.microsoft.com/2003/10/Serialization/">true</boolean> |
Sample JSON Response
Copy Code | |
---|---|
true |
Checks whether the custom domain is valid for this site.
Checks whether the custom domain is valid for this site.
Method | Request URI | HTTP Version |
---|---|---|
GET |
https://service-endpoint/subscriptions/{SUBSCRIPTIONNAME}/webspaces/{WEBSPACENAME}/sites/{NAME}/isvalidcustomdomain?hostName={HOSTNAME}&type={RECORDTYPE} |
HTTP/1.1 |
Sample XML Request
Copy Code | |
---|---|
Empty |
Sample JSON Request
Copy Code | |
---|---|
Empty |
Sample XML Response
Copy Code | |
---|---|
Empty |
Sample JSON Response
Copy Code | |
---|---|
Empty |
Returns the last audit log for a particular site, if exists.
Returns the last audit log for a particular site, if exists.
Method | Request URI | HTTP Version |
---|---|---|
GET |
https://service-endpoint/subscriptions/{SUBSCRIPTIONNAME}/webspaces/{WEBSPACENAME}/sites/{NAME}/lastauditlog |
HTTP/1.1 |
Sample XML Request
Copy Code | |
---|---|
Empty |
Sample JSON Request
Copy Code | |
---|---|
Empty |
Sample XML Response
Copy Code | |
---|---|
<AuditLog xmlns="http://schemas.microsoft.com/windowsazure"> <Details>String content</Details> <Id>2147483647</Id> <Level>2147483647</Level> <Logged>1999-05-31T11:20:00</Logged> <Message>String content</Message> <MessageIdentifier>String content</MessageIdentifier> <Protocol>String content</Protocol> <Source>String content</Source> <User>String content</User> <UserAddress>String content</UserAddress> </AuditLog> |
Sample JSON Response
Copy Code | |
---|---|
{ "Details":"String content", "Id":2147483647, "Level":2147483647, "Logged":"\/Date(928174800000-0700)\/", "Message":"String content", "MessageIdentifier":"String content", "Protocol":"String content", "Source":"String content", "User":"String content", "UserAddress":"String content" } |
Returns the metric definitions for a particular site.
Returns the metric definitions for a particular site.
Method | Request URI | HTTP Version |
---|---|---|
GET |
https://service-endpoint/subscriptions/{SUBSCRIPTIONNAME}/webspaces/{WEBSPACENAME}/sites/{NAME}/metricdefinitions |
HTTP/1.1 |
Sample XML Request
Copy Code | |
---|---|
Empty |
Sample JSON Request
Copy Code | |
---|---|
Empty |
Sample XML Response
Copy Code | |
---|---|
<MetricDefinitions xmlns="http://schemas.microsoft.com/windowsazure"> <MetricDefinition> <MetricAvailabilities> <MetricAvailabilily> <Retention>P428DT10H30M12.3S</Retention> <TimeGrain>P428DT10H30M12.3S</TimeGrain> </MetricAvailabilily> <MetricAvailabilily> <Retention>P428DT10H30M12.3S</Retention> <TimeGrain>P428DT10H30M12.3S</TimeGrain> </MetricAvailabilily> </MetricAvailabilities> <Name>String content</Name> <PrimaryAggregationType>String content</PrimaryAggregationType> <Unit>String content</Unit> </MetricDefinition> <MetricDefinition> <MetricAvailabilities> <MetricAvailabilily> <Retention>P428DT10H30M12.3S</Retention> <TimeGrain>P428DT10H30M12.3S</TimeGrain> </MetricAvailabilily> <MetricAvailabilily> <Retention>P428DT10H30M12.3S</Retention> <TimeGrain>P428DT10H30M12.3S</TimeGrain> </MetricAvailabilily> </MetricAvailabilities> <Name>String content</Name> <PrimaryAggregationType>String content</PrimaryAggregationType> <Unit>String content</Unit> </MetricDefinition> </MetricDefinitions> |
Sample JSON Response
Copy Code | |
---|---|
[{ "MetricAvailabilities":[{ "Retention":"P428DT10H30M12.3S", "TimeGrain":"P428DT10H30M12.3S" }], "Name":"String content", "PrimaryAggregationType":"String content", "Unit":"String content" }] |
Returns the usage metrics for a particular site.
Returns the usage metrics for a particular site.
Method | Request URI | HTTP Version |
---|---|---|
GET |
https://service-endpoint/subscriptions/{SUBSCRIPTIONNAME}/webspaces/{WEBSPACENAME}/sites/{NAME}/metrics?names={METRICS}&startTime={STARTTIME}&endTime={ENDTIME} |
HTTP/1.1 |
Sample XML Request
Copy Code | |
---|---|
Empty |
Sample JSON Request
Copy Code | |
---|---|
Empty |
Sample XML Response
Copy Code | |
---|---|
<MetricResponses xmlns="http://schemas.microsoft.com/windowsazure"> <MetricResponse> <Code>String content</Code> <Data> <EndTime>1999-05-31T11:20:00</EndTime> <Name>String content</Name> <PrimaryAggregationType>String content</PrimaryAggregationType> <StartTime>1999-05-31T11:20:00</StartTime> <TimeGrain>P428DT10H30M12.3S</TimeGrain> <Unit>String content</Unit> <Values> <MetricSample> <Count>9223372036854775807</Count> <Maximum>9223372036854775807</Maximum> <Minimum>9223372036854775807</Minimum> <TimeCreated>1999-05-31T11:20:00</TimeCreated> <Total>9223372036854775807</Total> </MetricSample> <MetricSample> <Count>9223372036854775807</Count> <Maximum>9223372036854775807</Maximum> <Minimum>9223372036854775807</Minimum> <TimeCreated>1999-05-31T11:20:00</TimeCreated> <Total>9223372036854775807</Total> </MetricSample> </Values> </Data> <Message>String content</Message> </MetricResponse> <MetricResponse> <Code>String content</Code> <Data> <EndTime>1999-05-31T11:20:00</EndTime> <Name>String content</Name> <PrimaryAggregationType>String content</PrimaryAggregationType> <StartTime>1999-05-31T11:20:00</StartTime> <TimeGrain>P428DT10H30M12.3S</TimeGrain> <Unit>String content</Unit> <Values> <MetricSample> <Count>9223372036854775807</Count> <Maximum>9223372036854775807</Maximum> <Minimum>9223372036854775807</Minimum> <TimeCreated>1999-05-31T11:20:00</TimeCreated> <Total>9223372036854775807</Total> </MetricSample> <MetricSample> <Count>9223372036854775807</Count> <Maximum>9223372036854775807</Maximum> <Minimum>9223372036854775807</Minimum> <TimeCreated>1999-05-31T11:20:00</TimeCreated> <Total>9223372036854775807</Total> </MetricSample> </Values> </Data> <Message>String content</Message> </MetricResponse> </MetricResponses> |
Sample JSON Response
Copy Code | |
---|---|
[{ "Code":"String content", "Data":{ "EndTime":"\/Date(928174800000-0700)\/", "Name":"String content", "PrimaryAggregationType":"String content", "StartTime":"\/Date(928174800000-0700)\/", "TimeGrain":"P428DT10H30M12.3S", "Unit":"String content", "Values":[{ "Count":9223372036854775807, "Maximum":9223372036854775807, "Minimum":9223372036854775807, "TimeCreated":"\/Date(928174800000-0700)\/", "Total":9223372036854775807 }] }, "Message":"String content" }] |
Returns the publishing profile xml for a particular site.
Returns the publishing profile xml for a particular site.
Method | Request URI | HTTP Version |
---|---|---|
GET |
https://service-endpoint/subscriptions/{SUBSCRIPTIONNAME}/webspaces/{WEBSPACENAME}/sites/{NAME}/publishxml |
HTTP/1.1 |
Sample XML Request
Copy Code | |
---|---|
Empty |
Sample JSON Request
Copy Code | |
---|---|
Empty |
Sample XML Response
Copy Code | |
---|---|
Arbitrary |
Creates a repository for a site
Creates a repository for a site
Method | Request URI | HTTP Version |
---|---|---|
POST |
https://service-endpoint/subscriptions/{SUBSCRIPTIONNAME}/webspaces/{WEBSPACENAME}/sites/{NAME}/repository |
HTTP/1.1 |
Sample XML Request
Copy Code | |
---|---|
Empty |
Sample JSON Request
Copy Code | |
---|---|
Empty |
Sample XML Response
Copy Code | |
---|---|
Empty |
Sample JSON Response
Copy Code | |
---|---|
Empty |
Gets a site's repository URI
Gets a site's repository URI
Method | Request URI | HTTP Version |
---|---|---|
GET |
https://service-endpoint/subscriptions/{SUBSCRIPTIONNAME}/webspaces/{WEBSPACENAME}/sites/{NAME}/repository |
HTTP/1.1 |
Sample XML Request
Copy Code | |
---|---|
Empty |
Sample JSON Request
Copy Code | |
---|---|
Empty |
Sample XML Response
Copy Code | |
---|---|
<anyURI xmlns="http://schemas.microsoft.com/2003/10/Serialization/">http://www.example.com/</anyURI> |
Sample JSON Response
Copy Code | |
---|---|
"http:\/\/www.example.com\/" |
Deletes a site's repository
Deletes a site's repository
Method | Request URI | HTTP Version |
---|---|---|
DELETE |
https://service-endpoint/subscriptions/{SUBSCRIPTIONNAME}/webspaces/{WEBSPACENAME}/sites/{NAME}/repository |
HTTP/1.1 |
Sample XML Request
Copy Code | |
---|---|
Empty |
Sample JSON Request
Copy Code | |
---|---|
Empty |
Sample XML Response
Copy Code | |
---|---|
Empty |
Sample JSON Response
Copy Code | |
---|---|
Empty |
Creates a development site in a site's repository
Creates a development site in a site's repository
Method | Request URI | HTTP Version |
---|---|---|
POST |
https://service-endpoint/subscriptions/{SUBSCRIPTIONNAME}/webspaces/{WEBSPACENAME}/sites/{NAME}/repository/dev |
HTTP/1.1 |
Sample XML Request
Copy Code | |
---|---|
Empty |
Sample JSON Request
Copy Code | |
---|---|
Empty |
Sample XML Response
Copy Code | |
---|---|
Empty |
Sample JSON Response
Copy Code | |
---|---|
Empty |
Gets a development site in a site's repository
Gets a development site in a site's repository
Method | Request URI | HTTP Version |
---|---|---|
GET |
https://service-endpoint/subscriptions/{SUBSCRIPTIONNAME}/webspaces/{WEBSPACENAME}/sites/{NAME}/repository/dev |
HTTP/1.1 |
Sample XML Request
Copy Code | |
---|---|
Empty |
Sample JSON Request
Copy Code | |
---|---|
Empty |
Sample XML Response
Copy Code | |
---|---|
<SiteRepositoryDev xmlns="http://schemas.microsoft.com/windowsazure"> <SiteUri>http://www.example.com/</SiteUri> <WebRootSubPath>String content</WebRootSubPath> </SiteRepositoryDev> |
Sample JSON Response
Copy Code | |
---|---|
{ "SiteUri":"http:\/\/www.example.com\/", "WebRootSubPath":"String content" } |
Deletes a development site in a site's repository
Deletes a development site in a site's repository
Method | Request URI | HTTP Version |
---|---|---|
DELETE |
https://service-endpoint/subscriptions/{SUBSCRIPTIONNAME}/webspaces/{WEBSPACENAME}/sites/{NAME}/repository/dev |
HTTP/1.1 |
Sample XML Request
Copy Code | |
---|---|
Empty |
Sample JSON Request
Copy Code | |
---|---|
Empty |
Sample XML Response
Copy Code | |
---|---|
Empty |
Sample JSON Response
Copy Code | |
---|---|
Empty |
Updates a development site in a site's repository
Updates a development site in a site's repository
Method | Request URI | HTTP Version |
---|---|---|
PUT |
https://service-endpoint/subscriptions/{SUBSCRIPTIONNAME}/webspaces/{WEBSPACENAME}/sites/{NAME}/repository/dev |
HTTP/1.1 |
Sample XML Request
Copy Code | |
---|---|
<SiteRepositoryDev xmlns="http://schemas.microsoft.com/windowsazure"> <SiteUri>http://www.example.com/</SiteUri> <WebRootSubPath>String content</WebRootSubPath> </SiteRepositoryDev><SiteRepositoryDev xmlns="http://schemas.microsoft.com/windowsazure"> |
Sample JSON Request
Copy Code | |
---|---|
{ "SiteUri":"http:\/\/www.example.com\/", "WebRootSubPath":"String content" } |
Sample XML Response
Copy Code | |
---|---|
Empty |
Sample JSON Response
Copy Code | |
---|---|
Empty |
Restarts the site.
Restarts the site.
Method | Request URI | HTTP Version |
---|---|---|
POST |
https://service-endpoint/subscriptions/{SUBSCRIPTIONNAME}/webspaces/{WEBSPACENAME}/sites/{NAME}/restart |
HTTP/1.1 |
Sample XML Request
Copy Code | |
---|---|
Empty |
Sample JSON Request
Copy Code | |
---|---|
Empty |
Sample XML Response
Copy Code | |
---|---|
Empty |
Sample JSON Response
Copy Code | |
---|---|
Empty |
Returns the quota usage for a particular site.
Returns the quota usage for a particular site.
Method | Request URI | HTTP Version |
---|---|---|
GET |
https://service-endpoint/subscriptions/{SUBSCRIPTIONNAME}/webspaces/{WEBSPACENAME}/sites/{NAME}/usages?names={USAGES}&computeMode={COMPUTEMODE}&siteMode={SITEMODE} |
HTTP/1.1 |
Sample XML Request
Copy Code | |
---|---|
Empty |
Sample JSON Request
Copy Code | |
---|---|
Empty |
Sample XML Response
Copy Code | |
---|---|
<Usages xmlns="http://schemas.microsoft.com/windowsazure"> <Usage> <ComputeMode>Shared</ComputeMode> <CurrentValue>9223372036854775807</CurrentValue> <Limit>9223372036854775807</Limit> <Name>String content</Name> <NextResetTime>1999-05-31T11:20:00</NextResetTime> <ResourceName>String content</ResourceName> <SiteMode>String content</SiteMode> <Unit>String content</Unit> </Usage> <Usage> <ComputeMode>Shared</ComputeMode> <CurrentValue>9223372036854775807</CurrentValue> <Limit>9223372036854775807</Limit> <Name>String content</Name> <NextResetTime>1999-05-31T11:20:00</NextResetTime> <ResourceName>String content</ResourceName> <SiteMode>String content</SiteMode> <Unit>String content</Unit> </Usage> </Usages> |
Sample JSON Response
Copy Code | |
---|---|
[{ "ComputeMode":0, "CurrentValue":9223372036854775807, "Limit":9223372036854775807, "Name":"String content", "NextResetTime":"\/Date(928174800000-0700)\/", "ResourceName":"String content", "SiteMode":"String content", "Unit":"String content" }] |