Return all sites for given subscription

Returns all the sites for a given subscription.

Method Request URI HTTP Version

GET

https://service-endpoint/resourceprovider/subscriptions/{SUBSCRIPTIONNAME}/sites

HTTP/1.1

Sample Request

The Request body is empty.

Sample XML Response

  Copy Code
<ServiceResources xmlns="http://schemas.microsoft.com/windowsazure">
	<ServiceResource>
		<Name>String content</Name>
		<Type>String content</Type>
		<State>String content</State>
		<SelfLink>http://www.example.com/</SelfLink>
		<ParentLink>http://www.example.com/</ParentLink>
		<HostNames>String content</HostNames>
		<WebSpace>String content</WebSpace>
		<AvailabilityState>Normal</AvailabilityState>
	</ServiceResource>
	<ServiceResource>
		<Name>String content</Name>
		<Type>String content</Type>
		<State>String content</State>
		<SelfLink>http://www.example.com/</SelfLink>
		<ParentLink>http://www.example.com/</ParentLink>
		<HostNames>String content</HostNames>
		<WebSpace>String content</WebSpace>
		<AvailabilityState>Normal</AvailabilityState>
	</ServiceResource>
</ServiceResources>

Sample JSON Response

  Copy Code
[
	{
		"Name": "String content",
		"Type": "String content",
		"State": "String content",
		"SelfLink": "http://www.example.com/",
		"ParentLink": "http://www.example.com/",
		"HostNames": "String content",
		"WebSpace": "String content",
		"AvailabilityState": 0
}
]

Return all web sites

Returns all the web sites.

Method Request URI HTTP Version

GET

https://service-endpoint/resourceprovider/subscriptions/{SUBSCRIPTIONNAME}/sites

HTTP/1.1

Sample Request

The Request body is empty.

Sample XML Response

  Copy Code
<ServiceResources xmlns="http://schemas.microsoft.com/windowsazure">
	<ServiceResource>
		<Name>String content</Name>
		<Type>String content</Type>
		<State>String content</State>
		<SelfLink>http://www.example.com/</SelfLink>
		<ParentLink>http://www.example.com/</ParentLink>
		<HostNames>String content</HostNames>
		<WebSpace>String content</WebSpace>
		<AvailabilityState>Normal</AvailabilityState>
	</ServiceResource>
	<ServiceResource>
		<Name>String content</Name>
		<Type>String content</Type>
		<State>String content</State>
		<SelfLink>http://www.example.com/</SelfLink>
		<ParentLink>http://www.example.com/</ParentLink>
		<HostNames>String content</HostNames>
		<WebSpace>String content</WebSpace>
		<AvailabilityState>Normal</AvailabilityState>
	</ServiceResource>
</ServiceResources>

Sample JSON Response

  Copy Code
[
	{
		"Name": "String content",
		"Type": "String content",
		"State": "String content",
		"SelfLink": "http://www.example.com/",
		"ParentLink": "http://www.example.com/",
		"HostNames": "String content",
		"WebSpace": "String content",
		"AvailabilityState": 0
}
]

Create web site

Creates a newweb site.

Method Request URI HTTP Version

POST

https://service-endpoint/resourceprovider/subscriptions/{SUBSCRIPTIONNAME}/webspaces/{WEBSPACENAME}/sites

HTTP/1.1

Sample XML Request

  Copy Code
<ProvisionServiceResource xmlns="http://schemas.microsoft.com/windowsazure">
	<Arguments>
		<Argument>
			<Key>String content</Key>
			<Value>String content</Value>
		</Argument>
		<Argument>
			<Key>String content</Key>
			<Value>String content</Value>
		</Argument>
	</Arguments>
</ProvisionServiceResource>

Sample JSON Request

  Copy Code
{
	"Arguments": [
		{
			"Key": "String content",
			"Value": "String content"
	}
	]
}

Sample XML Response

  Copy Code
<Response xmlns="http://schemas.microsoft.com/windowsazure">
	<ClientRequestId>String content</ClientRequestId>
	<RequestId>String content</RequestId>
	<ResourceUri>http://www.example.com/</ResourceUri>
	<StatusUri>http://www.example.com/</StatusUri>
</Response>

Sample JSON Response

  Copy Code
{
	"ClientRequestId": "String content",
	"RequestId": "String content",
	"ResourceUri": "http://www.example.com/",
	"StatusUri": "http://www.example.com/"
}

Return details for web site

Returns details for a particular web site.

Method Request URI HTTP Version

GET

https://service-endpoint/resourceprovider/subscriptions/{SUBSCRIPTIONNAME}/webspaces/{WEBSPACENAME}/sites/{NAME}

HTTP/1.1

Sample Request

The Request body is empty.

Sample XML Response

  Copy Code
<ServiceResource xmlns="http://schemas.microsoft.com/windowsazure">
	<Name>String content</Name>
	<Type>String content</Type>
	<State>String content</State>
	<SelfLink>http://www.example.com/</SelfLink>
	<ParentLink>http://www.example.com/</ParentLink>
	<HostNames>String content</HostNames>
	<WebSpace>String content</WebSpace>
	<AvailabilityState>Normal</AvailabilityState>
</ServiceResource>

Sample JSON Response

  Copy Code
{
	"Name": "String content",
	"Type": "String content",
	"State": "String content",
	"SelfLink": "http://www.example.com/",
	"ParentLink": "http://www.example.com/",
	"HostNames": "String content",
	"WebSpace": "String content",
	"AvailabilityState": 0
}

Delete web site

Deletes an existing web site.

Method Request URI HTTP Version

DELETE

https://service-endpoint/resourceprovider/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.

Send command to web site

Sends a command to a web site.

Method Request URI HTTP Version

POST

https://service-endpoint/resourceprovider/subscriptions/{SUBSCRIPTIONNAME}/webspaces/{WEBSPACENAME}/sites/{NAME}?comp=command

HTTP/1.1

Sample XML Request

  Copy Code
<CommandResource xmlns="http://schemas.microsoft.com/windowsazure">
	<Arguments>
		<Argument>
			<Key>String content</Key>
			<Value>String content</Value>
		</Argument>
		<Argument>
			<Key>String content</Key>
			<Value>String content</Value>
		</Argument>
	</Arguments>
	<SelfLink>http://www.example.com/</SelfLink>
	<Verb>String content</Verb>
</CommandResource>

Sample JSON Request

  Copy Code
{
	"Arguments": [
		{
			"Key": "String content",
			"Value": "String content"
	}
	],
	"SelfLink": "http://www.example.com/",
	"Verb": "String content"
}

Sample XML Response

  Copy Code
<Response xmlns="http://schemas.microsoft.com/windowsazure">
	<ClientRequestId>String content</ClientRequestId>
	<RequestId>String content</RequestId>
	<ResourceUri>http://www.example.com/</ResourceUri>
	<StatusUri>http://www.example.com/</StatusUri>
</Response>

Sample JSON Response

  Copy Code
{
	"ClientRequestId": "String content",
	"RequestId": "String content",
	"ResourceUri": "http://www.example.com/",
	"StatusUri": "http://www.example.com/"
}