How to Create a Stamp
System Center
Updated: June 27, 2017
Applies To: System Center 2016 - Service Provider Foundation, System Center Technical Preview
A stamp in Service Provider Foundation represents a specific set of hardware that can be reproduced. The stamp object must have the Name property set to a unique value before it can be saved.
To create a stamp
Connect to the
Adminservice.Create a new instance of the
SpfAdmin.Stampclass.Set the
Nameproperty of the tenant.Call the
Admin.AddToStampsmethod, and pass in the new tenant instance.Call the
Admin.SaveChangesmethod.
The following example creates a simple stamp that is not associated with a tenant or a server.
SpfAdmin.Admin adminService = new SpfAdmin.Admin(new System.Uri(@"https://contoso:8090/SC2012/Admin/Microsoft.Management.Odata.svc/")); adminService.Credentials = System.Net.CredentialCache.DefaultNetworkCredentials; SpfAdmin.Stamp stamp = new SpfAdmin.Stamp(); stamp.Name = "New stamp"; adminService.AddToStamps(stamp); adminService.SaveChanges();
Assemblies
| System |
Namespaces
| System |
Stamps
Overview
Programming in Visual Studio with Service Provider Foundation Services
Show: