共用方式為


Get-AzStorageSyncServerEndpoint

此命令會列出指定同步群組中的所有伺服器端點。

語法

Get-AzStorageSyncServerEndpoint
   [-ResourceGroupName] <String>
   [-StorageSyncServiceName] <String>
   [-SyncGroupName] <String>
   [-Name <String>]
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]
Get-AzStorageSyncServerEndpoint
   [-ParentObject] <PSSyncGroup>
   [-Name <String>]
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]
Get-AzStorageSyncServerEndpoint
   [-ParentResourceId] <String>
   [-Name <String>]
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]

Description

此命令會列出指定同步群組中的所有伺服器端點。 它可以用來列出每個伺服器端點的屬性。

範例

範例 1

Get-AzStorageSyncServerEndpoint -ResourceGroupName "myResourceGroup" -StorageSyncServiceName "myStorageSyncServiceName" -SyncGroupName "mySyncGroupName"

此命令會取得指定同步群組中包含的所有伺服器端點。 指定要傳回特定 -ServerEndpointName。

參數

-DefaultProfile

用於與 Azure 通訊的認證、帳戶、租用戶和訂用帳戶。

類型:IAzureContextContainer
別名:AzContext, AzureRmContext, AzureCredential
Position:Named
預設值:None
必要:False
接受管線輸入:False
接受萬用字元:False

-Name

伺服器端點的名稱。

類型:String
別名:ServerEndpointName
Position:Named
預設值:None
必要:False
接受管線輸入:True
接受萬用字元:False

-ParentObject

StorageSyncService 物件,通常透過 參數傳遞。

類型:PSSyncGroup
別名:SyncGroup
Position:0
預設值:None
必要:True
接受管線輸入:True
接受萬用字元:False

-ParentResourceId

StorageSyncService 物件,通常透過 參數傳遞。

類型:String
別名:SyncGroupId
Position:0
預設值:None
必要:True
接受管線輸入:True
接受萬用字元:False

-ResourceGroupName

資源組名。

類型:String
Position:0
預設值:None
必要:True
接受管線輸入:True
接受萬用字元:False

-StorageSyncServiceName

StorageSyncService 的名稱。

類型:String
別名:ParentName
Position:1
預設值:None
必要:True
接受管線輸入:True
接受萬用字元:False

-SyncGroupName

SyncGroup 的名稱。

類型:String
Position:2
預設值:None
必要:True
接受管線輸入:True
接受萬用字元:False

輸入

PSSyncGroup

String

輸出

PSServerEndpoint