Sdílet prostřednictvím


IEdgeModulesOperations.ListProvisioningTokenWithHttpMessagesAsync Method

Definition

Creates a new provisioning token.

public System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<Microsoft.Azure.Management.VideoAnalyzer.Models.EdgeModuleProvisioningToken>> ListProvisioningTokenWithHttpMessagesAsync (string resourceGroupName, string accountName, string edgeModuleName, DateTime expirationDate, System.Collections.Generic.Dictionary<string,System.Collections.Generic.List<string>> customHeaders = default, System.Threading.CancellationToken cancellationToken = default);
abstract member ListProvisioningTokenWithHttpMessagesAsync : string * string * string * DateTime * System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<Microsoft.Azure.Management.VideoAnalyzer.Models.EdgeModuleProvisioningToken>>
Public Function ListProvisioningTokenWithHttpMessagesAsync (resourceGroupName As String, accountName As String, edgeModuleName As String, expirationDate As DateTime, Optional customHeaders As Dictionary(Of String, List(Of String)) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of AzureOperationResponse(Of EdgeModuleProvisioningToken))

Parameters

resourceGroupName
String

The name of the resource group. The name is case insensitive.

accountName
String

The Azure Video Analyzer account name.

edgeModuleName
String

The Edge Module name.

expirationDate
DateTime

The desired expiration date of the registration token. The Azure Video Analyzer IoT edge module must be initialized and connected to the Internet prior to the token expiration date.

customHeaders
Dictionary<String,List<String>>

The headers that will be added to request.

cancellationToken
CancellationToken

The cancellation token.

Returns

Exceptions

Thrown when the operation returned an invalid status code

Thrown when unable to deserialize the response

Thrown when a required parameter is null

Remarks

Creates a new provisioning token. A provisioning token allows for a single instance of Azure Video analyzer IoT edge module to be initialized and authorized to the cloud account. The provisioning token itself is short lived and it is only used for the initial handshake between IoT edge module and the cloud. After the initial handshake, the IoT edge module will agree on a set of authentication keys which will be auto-rotated as long as the module is able to periodically connect to the cloud. A new provisioning token can be generated for the same IoT edge module in case the module state lost or reset.

Applies to