Share via


Get-SCSPFStamp

Gets one or more stamp objects.

Syntax

Empty (Default)

Get-SCSPFStamp
    [<CommonParameters>]

FromStampIdAndServerParameterSetName

Get-SCSPFStamp
    -ID <Guid[]>
    -Server <Server>
    [<CommonParameters>]

FromStampIdParameterSetName

Get-SCSPFStamp
    -ID <Guid[]>
    [<CommonParameters>]

FromStampIdAndTenantParameterSetName

Get-SCSPFStamp
    -ID <Guid[]>
    -Tenant <Tenant>
    [<CommonParameters>]

FromStampNameAndTenantParameterSetName

Get-SCSPFStamp
    -Name <String[]>
    -Tenant <Tenant>
    [<CommonParameters>]

FromStampNameParameterSetName

Get-SCSPFStamp
    -Name <String[]>
    [<CommonParameters>]

FromStampNameAndServerParameterSetName

Get-SCSPFStamp
    -Name <String[]>
    -Server <Server>
    [<CommonParameters>]

FromStampTenantParameterSetName

Get-SCSPFStamp
    -Tenant <Tenant>
    [<CommonParameters>]

FromStampServerParameterSetName

Get-SCSPFStamp
    -Server <Server>
    [<CommonParameters>]

FromStampDataCenterParameterSetName

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.

Parameters

-DataCenter

Specifies the name of a DataCenter object.

Parameter properties

Type:Microsoft.SystemCenter.Foundation.SPFData.Types.DataCenter
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

FromStampDataCenterParameterSetName
Position:Named
Mandatory:True
Value from pipeline:True
Value from pipeline by property name:False
Value from remaining arguments:False

-ID

Specifies one or more GUIDs for a specific object.

Parameter properties

Type:

System.Guid[]

Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

FromStampIdAndServerParameterSetName
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False
FromStampIdParameterSetName
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False
FromStampIdAndTenantParameterSetName
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-Name

Specifies the name of one or more stamps.

Parameter properties

Type:

System.String[]

Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

FromStampNameAndTenantParameterSetName
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False
FromStampNameParameterSetName
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False
FromStampNameAndServerParameterSetName
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-Server

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

Parameter properties

Type:Microsoft.SystemCenter.Foundation.SPFData.Types.Server
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

FromStampIdAndServerParameterSetName
Position:Named
Mandatory:True
Value from pipeline:True
Value from pipeline by property name:False
Value from remaining arguments:False
FromStampNameAndServerParameterSetName
Position:Named
Mandatory:True
Value from pipeline:True
Value from pipeline by property name:False
Value from remaining arguments:False
FromStampServerParameterSetName
Position:Named
Mandatory:True
Value from pipeline:True
Value from pipeline by property name:False
Value from remaining arguments:False

-Tenant

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

Parameter properties

Type:Microsoft.SystemCenter.Foundation.SPFData.Types.Tenant
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

FromStampIdAndTenantParameterSetName
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False
FromStampNameAndTenantParameterSetName
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

Inputs

Microsoft.SystemCenter.Foundation.SPFData.Types.Tenant

Microsoft.SystemCenter.Foundation.SPFData.Types.Server

Microsoft.SystemCenter.Foundation.SPFData.Types.DataCenter

Outputs

System.Object