Events
System Center
Updated: June 27, 2017
Applies To: System Center 2016 - Service Provider Foundation, System Center Technical Preview
You can use the Event application programming interface (API) to manage subscriptions. For more information about the Subscription API, see Subscriptions.
The service Uniform Resource Identifier (URI) for events is:
https://server:port/SC2012/Provider/subscriptions/subscription_id/events
In this URI, subscription_id is the identifier of the subscription that the Events API is accessing.
The following table describes the available HTTP operations.
| HTTP Operation | Description |
|---|---|
| POST | To create a new subscription, the body of the request should contain the JavaScript Object Notation (JSON)-serialized EntityEvent object. The subscription_id that is used on the URI should be set on the EntityEvent.EntityId.Id property. With the identifier set, the service creates a subscription with that identifier. The EntityEvent.EntityState property should be set to EntityState.Migrated. |
| POST | To disable a subscription, the body of the request should contain the JSON-serialized EntityEvent object. The object should have the EntityEvent.EntityState property set to EntityState.Disabled. |
| POST | To enable a subscription, the body of the request should contain the JSON-serialized EntityEvent object. The object should have the EntityEvent.EntityState property set to EntityState.Enabled. |
Provider
Subscriptions
SubscriptionResource
Events [SPFSDK][PROVIDER]
EntityEvent
EntityState
EntityId
Show: