SQL Clone 4

Get-SqlCloneTeam

Gets teams from a SQL Clone Server.

Syntax

Get-SqlCloneTeam [[-Name] <string>] [<CommonParameters>]

Description

This cmdlet returns a TeamResource which can be passed to the New-SqlCloneImage cmdlet's Teams parameter.

The Get-SqlCloneTeam cmdlet gets teams that are available to the current user.

Connect-SqlClone must be called before this cmdlet.

Parameters

-Name <System.String>

The name of the team to get. If no name is specified then all teams that the current user is in will be returned.

Aliases None
Required? false
Position? 0
Default Value None
Accept Pipeline Input true (ByValue)
Accept Wildcard Characters false

<CommonParameters>

This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see http://technet.microsoft.com/en-us/library/hh847884.aspx.

Inputs

The input type is the type of the objects that you can pipe to the cmdlet.

  • System.String

    The name of the team to get. If no name is specified then all teams that the current user is in will be returned.

Return values

The output type is the type of the objects that the cmdlet emits.

  • RedGate.SqlClone.Client.Api.Objects.TeamResource

Examples

---------- EXAMPLE 1 ----------

Get-SqlCloneTeam

This command gets all teams from the server.

---------- EXAMPLE 2 ----------

Get-SqlCloneTeam -Name 'Team 1'

This command gets the team 'Team 1' from a SQL Clone Server.

---------- EXAMPLE 3 ----------

Get-SqlCloneTeam | Where-Object { $_.Name -like 'Dev*' }

This command gets all existing teams then filtered with names starting with "Dev"


Didn't find what you were looking for?