你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
Get-AzStorageMoverEndpoint
获取终结点资源。
语法
Get-AzStorageMoverEndpoint
-ResourceGroupName <String>
-StorageMoverName <String>
[-SubscriptionId <String[]>]
[-DefaultProfile <PSObject>]
[<CommonParameters>]
Get-AzStorageMoverEndpoint
-Name <String>
-ResourceGroupName <String>
-StorageMoverName <String>
[-SubscriptionId <String[]>]
[-DefaultProfile <PSObject>]
[<CommonParameters>]
Get-AzStorageMoverEndpoint
-InputObject <IStorageMoverIdentity>
[-DefaultProfile <PSObject>]
[<CommonParameters>]
说明
获取终结点资源。
示例
示例 1:获取存储移动器中的所有终结点
Get-AzStorageMoverEndpoint -ResourceGroupName myResourceGroup -StorageMoverName myStorageMover
Id : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myResourceGroup/providers/Microsoft.StorageMover/storageMovers/myStorageMover/endpoints/myEndpoint1
Name : myEndpoint1
Property : {
"endpointType": "AzureStorageBlobContainer",
"provisioningState": "Succeeded",
"storageAccountResourceId": "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myStorageMover/providers/Microsoft.Storage/storageAccounts/myStorageAccount",
"blobContainerName": "myBlobContainer"
}
SystemDataCreatedAt : 7/18/2022 7:28:29 AM
SystemDataCreatedBy : xxxxxxxxxx
SystemDataCreatedByType : User
SystemDataLastModifiedAt : 7/18/2022 7:28:29 AM
SystemDataLastModifiedBy : xxxxxxxxxxx
SystemDataLastModifiedByType : User
Type : microsoft.storagemover/storagemovers/endpoints
Id : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myResourceGroup/providers/Microsoft.StorageMover/storageMovers/myStorageMover/endpoints/myEndpoint2
Name : myEndpoint2
Property : {
"endpointType": "NfsMount",
"provisioningState": "Succeeded",
"host": "x.x.x.x",
"export": "/"
}
SystemDataCreatedAt : 7/18/2022 7:28:30 AM
SystemDataCreatedBy : xxxxxxx
SystemDataCreatedByType : User
SystemDataLastModifiedAt : 7/18/2022 7:28:30 AM
SystemDataLastModifiedBy : xxxxxxx
SystemDataLastModifiedByType : User
Type : microsoft.storagemover/storagemovers/endpoints
此命令获取存储移动器下的所有终结点。
示例 2:获取特定终结点
Get-AzStorageMoverEndpoint -ResourceGroupName myResourceGroupName -StorageMoverName myStorageMoverName -Name myEndpoint
Id : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myResourceGroup/providers/Microsoft.StorageMover/storageMovers/myStorageMover/endpoints/myEndpoint
Name : myEndpoint
Property : {
"endpointType": "NfsMount",
"provisioningState": "Succeeded",
"host": "x.x.x.x",
"export": "/"
}
SystemDataCreatedAt : 7/18/2022 7:28:30 AM
SystemDataCreatedBy : xxxxxxx
SystemDataCreatedByType : User
SystemDataLastModifiedAt : 7/18/2022 7:28:30 AM
SystemDataLastModifiedBy : xxxxxxx
SystemDataLastModifiedByType : User
Type : microsoft.storagemover/storagemovers/endpoints
此命令获取存储移动器下的特定终结点。
参数
-DefaultProfile
DefaultProfile 参数不起作用。 如果对其他订阅执行 cmdlet,请使用 SubscriptionId 参数。
类型: | PSObject |
别名: | AzureRMContext, AzureCredential |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-InputObject
要构造的标识参数,请参阅 INPUTOBJECT 属性的 NOTES 部分并创建哈希表。
类型: | IStorageMoverIdentity |
Position: | Named |
默认值: | None |
必需: | True |
接受管道输入: | True |
接受通配符: | False |
-Name
终结点资源的名称。
类型: | String |
别名: | EndpointName |
Position: | Named |
默认值: | None |
必需: | True |
接受管道输入: | False |
接受通配符: | False |
-ResourceGroupName
资源组的名称。 此名称不区分大小写。
类型: | String |
Position: | Named |
默认值: | None |
必需: | True |
接受管道输入: | False |
接受通配符: | False |
-StorageMoverName
存储移动器资源的名称。
类型: | String |
Position: | Named |
默认值: | None |
必需: | True |
接受管道输入: | False |
接受通配符: | False |
-SubscriptionId
目标订阅的 ID。
类型: | String[] |
Position: | Named |
默认值: | (Get-AzContext).Subscription.Id |
必需: | False |
接受管道输入: | False |
接受通配符: | False |