Get-SCSpfStamp

Gets one or more stamp objects.

Syntax

Get-SCSpfStamp []
Get-SCSpfStamp
   -ID <Guid[]>
   -Server <Server>
   [<CommonParameters>]
Get-SCSpfStamp
   -ID <Guid[]>
   [<CommonParameters>]
Get-SCSpfStamp
   -ID <Guid[]>
   -Tenant <Tenant>
   [<CommonParameters>]
Get-SCSpfStamp
   -Name <String[]>
   -Tenant <Tenant>
   [<CommonParameters>]
Get-SCSpfStamp
   -Name <String[]>
   [<CommonParameters>]
Get-SCSpfStamp
   -Name <String[]>
   -Server <Server>
   [<CommonParameters>]
Get-SCSpfStamp
   -Tenant <Tenant>
   [<CommonParameters>]
Get-SCSpfStamp
   -Server <Server>
   [<CommonParameters>]
Get-SCSpfStamp
   -DataCenter <DataCenter>
   [<CommonParameters>]

Description

The Get-SCSPFStamp cmdlet gets one or more stamp objects from the Service Provider Foundation service. To create a stamp, use the New-SCSPFStamp cmdlet.

Examples

Example 1: Get all stamps

PS C:\>Get-SCSPFStamp

This command lists all stamps.

Example 2: Get a stamp by ID

PS C:\>$Stamp = Get-SCSPFStamp -ID db656655-68ff-4a21-bd1d-0a06bdbc762f

This command gets a stamp by its ID.

Example 3: Get a stamp by name

PS C:\>$Stamp = Get-SCSPFStamp -Name "Contoso"

This command gets a stamp by its name.

Example 4: Get the stamps associated with an offer

PS C:\>$Offer = Get-SCSPFOffer -Name "Contoso"
PS C:\> $Stamp = Get-SCSPFStamp -Offer $Offer

The first command gets an offer. The second command gets the stamps associated with the offer.

Example 5: Get the stamp associated with a server

PS C:\>$Server = Get-SCSPFServer -Name "ContosoServer07"
PS C:\> $Stamp = Get-SCSPFStamp -Server $Server

The first command gets a server. The second command gets the stamp that is associated with the server.

Example 6: Get the stamps associated with a tenant

PS C:\>$Contoso = Get-SCSPFTenant -Name "Contoso"
PS C:\> $Stamps = Get-SCSPFStamp -Tenant $Contoso

The first command gets a tenant. The second command gets the stamps associated with the tenant.

Example 7: Get the stamps associated with a data center

PS C:\>$DataCenter = New-Object Microsoft.SystemCenter.Foundation.SPFData.Types.DataCenter
PS C:\> $DataCenter.Name = "DataCenter_Contoso"
PS C:\> $Stamps = Get-SCSPFStamp -DataCenter $DataCenter

The first command obtains a DataCenter object by using the New-Object cmdlet with Microsoft.SystemCenter.Foundation.SPFData.Types.DataCenter specified for the $TypeName parameter.

The second command sets the Name property of the data center object to the name of your data center.

The third command gets the stamps.

Required Parameters

-DataCenter

Specifies the name of a DataCenter object.

Type:DataCenter
Position:Named
Default value:None
Accept pipeline input:True (ByValue)
Accept wildcard characters:False
-ID

Specifies one or more GUIDs for a specific object.

Type:Guid[]
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Name

Specifies the name of one or more stamps.

Type:String[]
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Server

Specifies a server for which this cmdlet returns associated stamps. To obtain a server, use the Get-SCSPFServer cmdlet.

Type:Server
Position:Named
Default value:None
Accept pipeline input:True (ByValue)
Accept wildcard characters:False
-Tenant

Specifies a tenant for which this cmdlet returns associated stamps. To obtain a tenant, use the Get-SCSPFTenant cmdlet.

Type:Tenant
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False