Get-AzIotHubRoutingEndpoint
取得您 IoT 中樞 所有端點的資訊
語法
ResourceSet (預設值)
Get-AzIotHubRoutingEndpoint
[-ResourceGroupName] <String>
[-Name] <String>
[-EndpointType <PSEndpointType>]
[-EndpointName <String>]
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
InputObjectSet
Get-AzIotHubRoutingEndpoint
[-InputObject] <PSIotHub>
[-EndpointType <PSEndpointType>]
[-EndpointName <String>]
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
ResourceIdSet
Get-AzIotHubRoutingEndpoint
[-ResourceId] <String>
[-EndpointType <PSEndpointType>]
[-EndpointName <String>]
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Description
取得端點的相關資訊。
範例
範例 1
Get-AzIotHubRoutingEndpoint -ResourceGroupName "myresourcegroup" -Name "myiothub"
Name EndpointType AzureResource
---- ------------ -------------
E1 EventHub resourcegroup1/event1
E2 EventHub resourcegroup1/event2
S1 AzureStorageContainer mystorage1/container
從「myiothub」取得所有端點,IoT 中樞。
範例 2
Get-AzIotHubRoutingEndpoint -ResourceGroupName "myresourcegroup" -Name "myiothub" -EndpointType EventHub
ResourceGroupName SubscriptionId EndpointName
----------------- -------------- ------------
resourcegroup1 91d12343-a3de-345d-b2ea-135792468abc E1
resourcegroup1 91d12343-a3de-345d-b2ea-135792468abc E2
從「myiothub」取得所有類型的 EventHub 端點,該 IoT 中樞。
範例 3
Get-AzIotHubRoutingEndpoint -ResourceGroupName "myresourcegroup" -Name "myiothub" -EndpointType EventHub
ResourceGroupName : resourcegroup1
SubscriptionId : 91d12343-a3de-345d-b2ea-135792468abc
EndpointName : E1
ConnectionString : Endpoint=sb://myeventhub1.servicebus.windows.net:5671/;SharedAccessKeyName=iothubroutes_myeventhub1;SharedAccessKey=****;EntityPath=event1
從「myiothub」取得所有類型的 EventHub 端點,該 IoT 中樞。
範例 4
Get-AzIotHubRoutingEndpoint -ResourceGroupName "myresourcegroup" -Name "myiothub" -EndpointName E1
ResourceGroupName : resourcegroup1
SubscriptionId : 91d12343-a3de-345d-b2ea-135792468abc
EndpointName : E1
ConnectionString : Endpoint=sb://myeventhub1.servicebus.windows.net:5671/;SharedAccessKeyName=iothubroutes_myeventhub1;SharedAccessKey=****;EntityPath=event1
從「myiothub」取得端點資訊,該 IoT 中樞。
參數
-DefaultProfile
用於與 Azure 通訊的憑證、帳號、租戶和訂閱。
參數屬性
| 類型: | IAzureContextContainer |
| 預設值: | None |
| 支援萬用字元: | False |
| 不要顯示: | False |
| 別名: | AzContext, AzureRmContext, AzureCredential |
參數集
(All)
| Position: | Named |
| 必要: | False |
| 來自管線的值: | False |
| 來自管線按屬性名稱的值: | False |
| 來自剩餘引數的值: | False |
-EndpointName
路由端點的名稱
參數屬性
| 類型: | String |
| 預設值: | None |
| 支援萬用字元: | False |
| 不要顯示: | False |
參數集
(All)
| Position: | Named |
| 必要: | False |
| 來自管線的值: | False |
| 來自管線按屬性名稱的值: | False |
| 來自剩餘引數的值: | False |
-EndpointType
路由端點的類型
參數屬性
| 類型: | PSEndpointType |
| 預設值: | None |
| 接受的值: | EventHub, ServiceBusQueue, ServiceBusTopic, AzureStorageContainer |
| 支援萬用字元: | False |
| 不要顯示: | False |
參數集
(All)
| Position: | Named |
| 必要: | False |
| 來自管線的值: | False |
| 來自管線按屬性名稱的值: | False |
| 來自剩餘引數的值: | False |
-InputObject
IotHub 物件
參數屬性
| 類型: | PSIotHub |
| 預設值: | None |
| 支援萬用字元: | False |
| 不要顯示: | False |
參數集
InputObjectSet
| Position: | 0 |
| 必要: | True |
| 來自管線的值: | True |
| 來自管線按屬性名稱的值: | False |
| 來自剩餘引數的值: | False |
-Name
IoT 中樞的名稱
參數屬性
| 類型: | String |
| 預設值: | None |
| 支援萬用字元: | False |
| 不要顯示: | False |
參數集
ResourceSet
| Position: | 1 |
| 必要: | True |
| 來自管線的值: | False |
| 來自管線按屬性名稱的值: | False |
| 來自剩餘引數的值: | False |
-ResourceGroupName
資源群組的名稱
參數屬性
| 類型: | String |
| 預設值: | None |
| 支援萬用字元: | False |
| 不要顯示: | False |
參數集
ResourceSet
| Position: | 0 |
| 必要: | True |
| 來自管線的值: | False |
| 來自管線按屬性名稱的值: | False |
| 來自剩餘引數的值: | False |
-ResourceId
IotHub 資源識別碼
參數屬性
| 類型: | String |
| 預設值: | None |
| 支援萬用字元: | False |
| 不要顯示: | False |
參數集
ResourceIdSet
| Position: | 0 |
| 必要: | True |
| 來自管線的值: | False |
| 來自管線按屬性名稱的值: | True |
| 來自剩餘引數的值: | False |
CommonParameters
此 Cmdlet 支援常見參數: -Debug、-ErrorAction、-ErrorVariable、-InformationAction、-InformationVariable、-OutBuffer、-OutVariable、-PipelineVariable、-ProgressAction、-Verbose、-WarningAction 和 -WarningVariable。 如需詳細資訊,請參閱 about_CommonParameters。