Create new offer

Creates a new offer.

Method Request URI HTTP Version

POST

https://service-endpoint/offers

HTTP/1.1

Sample XML Request

  Copy Code
<ServiceOffer xmlns="http://schemas.microsoft.com/windowsazure">
	<OfferName>String content</OfferName>
	<ServiceOfferSettings>
		<ServiceOfferSetting>
			<Key>String content</Key>
			<Value>String content</Value>
		</ServiceOfferSetting>
		<ServiceOfferSetting>
			<Key>String content</Key>
			<Value>String content</Value>
		</ServiceOfferSetting>
	</ServiceOfferSettings>
</ServiceOffer>

Sample JSON Request

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

Sample XML Response

  Copy Code
<ServiceOffer xmlns="http://schemas.microsoft.com/windowsazure">
	<OfferName>String content</OfferName>
	<ServiceOfferSettings>
		<ServiceOfferSetting>
			<Key>String content</Key>
			<Value>String content</Value>
		</ServiceOfferSetting>
		<ServiceOfferSetting>
			<Key>String content</Key>
			<Value>String content</Value>
		</ServiceOfferSetting>
	</ServiceOfferSettings>
</ServiceOffer>

Sample JSON Response

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

Return all offers

Returns all offers

Method Request URI HTTP Version

GET

https://service-endpoint/offers

HTTP/1.1

Sample Request

The Request body is empty.

Sample XML Response

  Copy Code
<Offers xmlns="http://schemas.microsoft.com/windowsazure">
	<ServiceOffer>
		<OfferName>String content</OfferName>
		<ServiceOfferSettings>
			<ServiceOfferSetting>
				<Key>String content</Key>
				<Value>String content</Value>
			</ServiceOfferSetting>
			<ServiceOfferSetting>
				<Key>String content</Key>
				<Value>String content</Value>
			</ServiceOfferSetting>
		</ServiceOfferSettings>
	</ServiceOffer>
	<ServiceOffer>
		<OfferName>String content</OfferName>
		<ServiceOfferSettings>
			<ServiceOfferSetting>
				<Key>String content</Key>
				<Value>String content</Value>
			</ServiceOfferSetting>
			<ServiceOfferSetting>
				<Key>String content</Key>
				<Value>String content</Value>
			</ServiceOfferSetting>
		</ServiceOfferSettings>
	</ServiceOffer>
</Offers>

Sample JSON Response

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

Delete offer

Deletes an existing offer

Method Request URI HTTP Version

DELETE

https://service-endpoint/offers/{NAME}

HTTP/1.1

Sample Request

The Request body is empty.

Sample Response

The Response body is empty.

Update offer

Updates an existing offer.

Method Request URI HTTP Version

PUT

https://service-endpoint/offers/{NAME}

HTTP/1.1

Sample XML Request

  Copy Code
<ServiceOffer xmlns="http://schemas.microsoft.com/windowsazure">
	<OfferName>String content</OfferName>
	<ServiceOfferSettings>
		<ServiceOfferSetting>
			<Key>String content</Key>
			<Value>String content</Value>
		</ServiceOfferSetting>
		<ServiceOfferSetting>
			<Key>String content</Key>
			<Value>String content</Value>
		</ServiceOfferSetting>
	</ServiceOfferSettings>
</ServiceOffer>

Sample JSON Request

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

Sample Response

The Response body is empty.

Return offer details by name

Returns offer details by name

Method Request URI HTTP Version

GET

https://service-endpoint/offers/{NAME}

HTTP/1.1

Sample Request

The Request body is empty.

Sample XML Response

  Copy Code
<ServiceOffer xmlns="http://schemas.microsoft.com/windowsazure">
	<OfferName>String content</OfferName>
	<ServiceOfferSettings>
		<ServiceOfferSetting>
			<Key>String content</Key>
			<Value>String content</Value>
		</ServiceOfferSetting>
		<ServiceOfferSetting>
			<Key>String content</Key>
			<Value>String content</Value>
		</ServiceOfferSetting>
	</ServiceOfferSettings>
</ServiceOffer>

Sample JSON Response

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