IotDpsResource interface
Interface representing a IotDpsResource.
Methods
Method Details
beginCreateOrUpdate(string, string, ProvisioningServiceDescription, IotDpsResourceCreateOrUpdateOptionalParams)
Create or update the metadata of the provisioning service. The usual pattern to modify a property is to retrieve the provisioning service metadata and security metadata, and then combine them with the modified values in a new body to update the provisioning service.
function beginCreateOrUpdate(resourceGroupName: string, provisioningServiceName: string, iotDpsDescription: ProvisioningServiceDescription, options?: IotDpsResourceCreateOrUpdateOptionalParams): Promise<PollerLike<PollOperationState<ProvisioningServiceDescription>, ProvisioningServiceDescription>>
Parameters
- resourceGroupName
-
string
Resource group identifier.
- provisioningServiceName
-
string
Name of provisioning service to create or update.
- iotDpsDescription
- ProvisioningServiceDescription
Description of the provisioning service to create or update.
The options parameters.
Returns
beginCreateOrUpdateAndWait(string, string, ProvisioningServiceDescription, IotDpsResourceCreateOrUpdateOptionalParams)
Create or update the metadata of the provisioning service. The usual pattern to modify a property is to retrieve the provisioning service metadata and security metadata, and then combine them with the modified values in a new body to update the provisioning service.
function beginCreateOrUpdateAndWait(resourceGroupName: string, provisioningServiceName: string, iotDpsDescription: ProvisioningServiceDescription, options?: IotDpsResourceCreateOrUpdateOptionalParams): Promise<ProvisioningServiceDescription>
Parameters
- resourceGroupName
-
string
Resource group identifier.
- provisioningServiceName
-
string
Name of provisioning service to create or update.
- iotDpsDescription
- ProvisioningServiceDescription
Description of the provisioning service to create or update.
The options parameters.
Returns
Promise<ProvisioningServiceDescription>
beginCreateOrUpdatePrivateEndpointConnection(string, string, string, PrivateEndpointConnection, IotDpsResourceCreateOrUpdatePrivateEndpointConnectionOptionalParams)
Create or update the status of a private endpoint connection with the specified name
function beginCreateOrUpdatePrivateEndpointConnection(resourceGroupName: string, resourceName: string, privateEndpointConnectionName: string, privateEndpointConnection: PrivateEndpointConnection, options?: IotDpsResourceCreateOrUpdatePrivateEndpointConnectionOptionalParams): Promise<PollerLike<PollOperationState<PrivateEndpointConnection>, PrivateEndpointConnection>>
Parameters
- resourceGroupName
-
string
The name of the resource group that contains the provisioning service.
- resourceName
-
string
The name of the provisioning service.
- privateEndpointConnectionName
-
string
The name of the private endpoint connection
- privateEndpointConnection
- PrivateEndpointConnection
The private endpoint connection with updated properties
The options parameters.
Returns
beginCreateOrUpdatePrivateEndpointConnectionAndWait(string, string, string, PrivateEndpointConnection, IotDpsResourceCreateOrUpdatePrivateEndpointConnectionOptionalParams)
Create or update the status of a private endpoint connection with the specified name
function beginCreateOrUpdatePrivateEndpointConnectionAndWait(resourceGroupName: string, resourceName: string, privateEndpointConnectionName: string, privateEndpointConnection: PrivateEndpointConnection, options?: IotDpsResourceCreateOrUpdatePrivateEndpointConnectionOptionalParams): Promise<PrivateEndpointConnection>
Parameters
- resourceGroupName
-
string
The name of the resource group that contains the provisioning service.
- resourceName
-
string
The name of the provisioning service.
- privateEndpointConnectionName
-
string
The name of the private endpoint connection
- privateEndpointConnection
- PrivateEndpointConnection
The private endpoint connection with updated properties
The options parameters.
Returns
Promise<PrivateEndpointConnection>
beginDelete(string, string, IotDpsResourceDeleteOptionalParams)
Deletes the Provisioning Service.
function beginDelete(provisioningServiceName: string, resourceGroupName: string, options?: IotDpsResourceDeleteOptionalParams): Promise<PollerLike<PollOperationState<void>, void>>
Parameters
- provisioningServiceName
-
string
Name of provisioning service to delete.
- resourceGroupName
-
string
Resource group identifier.
The options parameters.
Returns
Promise<PollerLike<PollOperationState<void>, void>>
beginDeleteAndWait(string, string, IotDpsResourceDeleteOptionalParams)
Deletes the Provisioning Service.
function beginDeleteAndWait(provisioningServiceName: string, resourceGroupName: string, options?: IotDpsResourceDeleteOptionalParams): Promise<void>
Parameters
- provisioningServiceName
-
string
Name of provisioning service to delete.
- resourceGroupName
-
string
Resource group identifier.
The options parameters.
Returns
Promise<void>
beginDeletePrivateEndpointConnection(string, string, string, IotDpsResourceDeletePrivateEndpointConnectionOptionalParams)
Delete private endpoint connection with the specified name
function beginDeletePrivateEndpointConnection(resourceGroupName: string, resourceName: string, privateEndpointConnectionName: string, options?: IotDpsResourceDeletePrivateEndpointConnectionOptionalParams): Promise<PollerLike<PollOperationState<PrivateEndpointConnection>, PrivateEndpointConnection>>
Parameters
- resourceGroupName
-
string
The name of the resource group that contains the provisioning service.
- resourceName
-
string
The name of the provisioning service.
- privateEndpointConnectionName
-
string
The name of the private endpoint connection
The options parameters.
Returns
beginDeletePrivateEndpointConnectionAndWait(string, string, string, IotDpsResourceDeletePrivateEndpointConnectionOptionalParams)
Delete private endpoint connection with the specified name
function beginDeletePrivateEndpointConnectionAndWait(resourceGroupName: string, resourceName: string, privateEndpointConnectionName: string, options?: IotDpsResourceDeletePrivateEndpointConnectionOptionalParams): Promise<PrivateEndpointConnection>
Parameters
- resourceGroupName
-
string
The name of the resource group that contains the provisioning service.
- resourceName
-
string
The name of the provisioning service.
- privateEndpointConnectionName
-
string
The name of the private endpoint connection
The options parameters.
Returns
Promise<PrivateEndpointConnection>
beginUpdate(string, string, TagsResource, IotDpsResourceUpdateOptionalParams)
Update an existing provisioning service's tags. to update other fields use the CreateOrUpdate method
function beginUpdate(resourceGroupName: string, provisioningServiceName: string, provisioningServiceTags: TagsResource, options?: IotDpsResourceUpdateOptionalParams): Promise<PollerLike<PollOperationState<ProvisioningServiceDescription>, ProvisioningServiceDescription>>
Parameters
- resourceGroupName
-
string
Resource group identifier.
- provisioningServiceName
-
string
Name of provisioning service to create or update.
- provisioningServiceTags
- TagsResource
Updated tag information to set into the provisioning service instance.
The options parameters.
Returns
beginUpdateAndWait(string, string, TagsResource, IotDpsResourceUpdateOptionalParams)
Update an existing provisioning service's tags. to update other fields use the CreateOrUpdate method
function beginUpdateAndWait(resourceGroupName: string, provisioningServiceName: string, provisioningServiceTags: TagsResource, options?: IotDpsResourceUpdateOptionalParams): Promise<ProvisioningServiceDescription>
Parameters
- resourceGroupName
-
string
Resource group identifier.
- provisioningServiceName
-
string
Name of provisioning service to create or update.
- provisioningServiceTags
- TagsResource
Updated tag information to set into the provisioning service instance.
The options parameters.
Returns
Promise<ProvisioningServiceDescription>
checkProvisioningServiceNameAvailability(OperationInputs, IotDpsResourceCheckProvisioningServiceNameAvailabilityOptionalParams)
Check if a provisioning service name is available. This will validate if the name is syntactically valid and if the name is usable
function checkProvisioningServiceNameAvailability(argumentsParam: OperationInputs, options?: IotDpsResourceCheckProvisioningServiceNameAvailabilityOptionalParams): Promise<NameAvailabilityInfo>
Parameters
- argumentsParam
- OperationInputs
Set the name parameter in the OperationInputs structure to the name of the provisioning service to check.
The options parameters.
Returns
Promise<NameAvailabilityInfo>
get(string, string, IotDpsResourceGetOptionalParams)
Get the metadata of the provisioning service without SAS keys.
function get(provisioningServiceName: string, resourceGroupName: string, options?: IotDpsResourceGetOptionalParams): Promise<ProvisioningServiceDescription>
Parameters
- provisioningServiceName
-
string
Name of the provisioning service to retrieve.
- resourceGroupName
-
string
Resource group name.
- options
- IotDpsResourceGetOptionalParams
The options parameters.
Returns
Promise<ProvisioningServiceDescription>
getOperationResult(string, string, string, string, IotDpsResourceGetOperationResultOptionalParams)
Gets the status of a long running operation, such as create, update or delete a provisioning service.
function getOperationResult(operationId: string, resourceGroupName: string, provisioningServiceName: string, asyncinfo: string, options?: IotDpsResourceGetOperationResultOptionalParams): Promise<AsyncOperationResult>
Parameters
- operationId
-
string
Operation id corresponding to long running operation. Use this to poll for the status.
- resourceGroupName
-
string
Resource group identifier.
- provisioningServiceName
-
string
Name of provisioning service that the operation is running on.
- asyncinfo
-
string
Async header used to poll on the status of the operation, obtained while creating the long running operation.
The options parameters.
Returns
Promise<AsyncOperationResult>
getPrivateEndpointConnection(string, string, string, IotDpsResourceGetPrivateEndpointConnectionOptionalParams)
Get private endpoint connection properties
function getPrivateEndpointConnection(resourceGroupName: string, resourceName: string, privateEndpointConnectionName: string, options?: IotDpsResourceGetPrivateEndpointConnectionOptionalParams): Promise<PrivateEndpointConnection>
Parameters
- resourceGroupName
-
string
The name of the resource group that contains the provisioning service.
- resourceName
-
string
The name of the provisioning service.
- privateEndpointConnectionName
-
string
The name of the private endpoint connection
The options parameters.
Returns
Promise<PrivateEndpointConnection>
getPrivateLinkResources(string, string, string, IotDpsResourceGetPrivateLinkResourcesOptionalParams)
Get the specified private link resource for the given provisioning service
function getPrivateLinkResources(resourceGroupName: string, resourceName: string, groupId: string, options?: IotDpsResourceGetPrivateLinkResourcesOptionalParams): Promise<GroupIdInformation>
Parameters
- resourceGroupName
-
string
The name of the resource group that contains the provisioning service.
- resourceName
-
string
The name of the provisioning service.
- groupId
-
string
The name of the private link resource
The options parameters.
Returns
Promise<GroupIdInformation>
listByResourceGroup(string, IotDpsResourceListByResourceGroupOptionalParams)
Get a list of all provisioning services in the given resource group.
function listByResourceGroup(resourceGroupName: string, options?: IotDpsResourceListByResourceGroupOptionalParams): PagedAsyncIterableIterator<ProvisioningServiceDescription, ProvisioningServiceDescription[], PageSettings>
Parameters
- resourceGroupName
-
string
Resource group identifier.
The options parameters.
Returns
listBySubscription(IotDpsResourceListBySubscriptionOptionalParams)
List all the provisioning services for a given subscription id.
function listBySubscription(options?: IotDpsResourceListBySubscriptionOptionalParams): PagedAsyncIterableIterator<ProvisioningServiceDescription, ProvisioningServiceDescription[], PageSettings>
Parameters
The options parameters.
Returns
listKeys(string, string, IotDpsResourceListKeysOptionalParams)
List the primary and secondary keys for a provisioning service.
function listKeys(provisioningServiceName: string, resourceGroupName: string, options?: IotDpsResourceListKeysOptionalParams): PagedAsyncIterableIterator<SharedAccessSignatureAuthorizationRuleAccessRightsDescription, SharedAccessSignatureAuthorizationRuleAccessRightsDescription[], PageSettings>
Parameters
- provisioningServiceName
-
string
The provisioning service name to get the shared access keys for.
- resourceGroupName
-
string
resource group name
The options parameters.
Returns
listKeysForKeyName(string, string, string, IotDpsResourceListKeysForKeyNameOptionalParams)
List primary and secondary keys for a specific key name
function listKeysForKeyName(provisioningServiceName: string, keyName: string, resourceGroupName: string, options?: IotDpsResourceListKeysForKeyNameOptionalParams): Promise<SharedAccessSignatureAuthorizationRuleAccessRightsDescription>
Parameters
- provisioningServiceName
-
string
Name of the provisioning service.
- keyName
-
string
Logical key name to get key-values for.
- resourceGroupName
-
string
The name of the resource group that contains the provisioning service.
The options parameters.
Returns
listPrivateEndpointConnections(string, string, IotDpsResourceListPrivateEndpointConnectionsOptionalParams)
List private endpoint connection properties
function listPrivateEndpointConnections(resourceGroupName: string, resourceName: string, options?: IotDpsResourceListPrivateEndpointConnectionsOptionalParams): Promise<IotDpsResourceListPrivateEndpointConnectionsResponse>
Parameters
- resourceGroupName
-
string
The name of the resource group that contains the provisioning service.
- resourceName
-
string
The name of the provisioning service.
The options parameters.
Returns
listPrivateLinkResources(string, string, IotDpsResourceListPrivateLinkResourcesOptionalParams)
List private link resources for the given provisioning service
function listPrivateLinkResources(resourceGroupName: string, resourceName: string, options?: IotDpsResourceListPrivateLinkResourcesOptionalParams): Promise<PrivateLinkResources>
Parameters
- resourceGroupName
-
string
The name of the resource group that contains the provisioning service.
- resourceName
-
string
The name of the provisioning service.
The options parameters.
Returns
Promise<PrivateLinkResources>
listValidSkus(string, string, IotDpsResourceListValidSkusOptionalParams)
Gets the list of valid SKUs and tiers for a provisioning service.
function listValidSkus(provisioningServiceName: string, resourceGroupName: string, options?: IotDpsResourceListValidSkusOptionalParams): PagedAsyncIterableIterator<IotDpsSkuDefinition, IotDpsSkuDefinition[], PageSettings>
Parameters
- provisioningServiceName
-
string
Name of provisioning service.
- resourceGroupName
-
string
Name of resource group.
The options parameters.