Offers

System Center
 

Updated: June 27, 2017

Applies To: System Center 2016 - Service Provider Foundation, System Center Technical Preview

You can use the Offer application programming interface (API) to create, read, update, or delete offers. Offers include clouds, actions, virtual machine templates, and networks that are offered to tenants through a subscription. The serialized objects that are used with the service are formatted for JavaScript Object Notation (JSON).

The service Uniform Resource Identifier (URI) for offers is:
https://server:port/SC2012/Provider/offers

The following table describes the available HTTP operations.

HTTP operationDescription
GETWhen you use an HTTP GET operation, all offers are returned. The offers are serialized into a collection of ServiceOffer objects.
GETIf you use an HTTP GET operation on the service URI for offers with offer names that are appended to the URI, the specified offer is returned as a ServiceOffer object. For example, to return the offer named Gold, the service URI is https://server:port/SC2012/Provider/offers/Gold.
PUTThe HTTP PUT operation updates an existing offer. The offer object should be serialized, and it must be contained in the HTTP request body.
POSTThe HTTP POST operation creates a new offer. The offer object should be serialized, and it must be contained in the HTTP request body.
DELETEIf you use an HTTP DELETE operation on the service URI for offers with offer names that are appended to the URI, the specified offer is deleted. For example, to delete the offer named Gold, the service URI is https://server:port/SC2012/Provider/offers/Gold.

Provider
ServiceOffer
ServiceOfferSetting

Show: