How to Create a Stamp
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
Admin
service.Create a new instance of the
SpfAdmin.Stamp
class.Set the
Name
property of the tenant.Call the
Admin.AddToStamps
method, and pass in the new tenant instance.Call the
Admin.SaveChanges
method.
Example
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();
Compiling the Code
Assemblies
System |
Namespaces
System |
See Also
Stamps
Overview
Programming in Visual Studio with Service Provider Foundation Services