3.1.4.1.1 MSFT_NetEventSession CreateInstance

CreateInstance is an intrinsic method of the MSFT_NetEventSession Class (section 2.3.1.1) that is used to create a new instance of an MSFT_NetEventSession object on the server. The method returns the newly created instance. For more information, see [DMTF-DSP0200] section 2.3.2.6.

The client MUST specify the Name property for the newly created instance.

When the CreateInstance method is called, the server MUST check the Name value for uniqueness in the Session Table and return a NULL object if a session with the same Name already exists.

Otherwise, the server MUST attempt to create an event session entry in its Session Table and assign a unique value to the Guid property, created as specified in [RFC4122]. If the entry cannot be created, the server MUST return a NULL object. A server MAY<3> limit the number of available entries in the Session Table.

When the server is able to create the entry, the Associated Provider List and Queued Event List MUST be initialized as empty and the CreateInstance method MUST be completed successfully.