Iot Dps Resource - Get
Get the non-security related metadata of the provisioning service.
Get the metadata of the provisioning service without SAS keys.
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/provisioningServices/{provisioningServiceName}?api-version=2018-01-22
URI Parameters
Name | In | Required | Type | Description |
---|---|---|---|---|
provisioning
|
path | True |
|
Name of the provisioning service to retrieve. |
resource
|
path | True |
|
Resource group name. |
subscription
|
path | True |
|
The subscription identifier. |
api-version
|
query | True |
|
The version of the API. |
Responses
Name | Type | Description |
---|---|---|
200 OK |
Provisioning service description with no keys is included in the response. |
|
Other Status Codes |
Default error response |
Security
azure_auth
Azure Active Directory OAuth2 Flow.
Type:
oauth2
Flow:
implicit
Authorization URL:
https://login.microsoftonline.com/common/oauth2/authorize
Scopes
Name | Description |
---|---|
user_impersonation | impersonate your user account |
Examples
DPSGet
Sample Request
GET https://management.azure.com/subscriptions/91d12660-3dec-467a-be2a-213b5544ddc0/resourceGroups/myResourceGroup/providers/Microsoft.Devices/provisioningServices/myFirstProvisioningService?api-version=2018-01-22
Sample Response
{
"etag": "AAAAAAAADGk=",
"name": "myFirstProvisioningService",
"location": "eastus",
"properties": {
"state": "Active",
"allocationPolicy": "Hashed",
"serviceOperationsHostName": "myFirstProvisioningService.azure-devices-provisioning.net",
"deviceProvisioningHostName": "global.azure-devices-provisioning.net",
"idScope": "0ne00000012",
"authorizationPolicies": []
},
"type": "Microsoft.Devices/ProvisioningServices",
"id": "/subscriptions/91d12660-3dec-467a-be2a-213b5544ddc0/resourceGroups/myResourceGroup/providers/Microsoft.Devices/ProvisioningServices/myFirstProvisioningService",
"tags": {},
"sku": {
"name": "S1",
"tier": "Standard",
"capacity": 1
}
}
Definitions
Access |
Rights that this key has. |
Allocation |
Allocation policy to be used by this provisioning service. |
Error |
Error details. |
Iot |
the service specific properties of a provisioning service, including keys, linked iot hubs, current state, and system generated properties such as hostname and idScope |
Iot |
Sku name. |
Iot |
List of possible provisioning service SKUs. |
Iot |
Description of the IoT hub. |
Provisioning |
The description of the provisioning service. |
Shared |
Description of the shared access key. |
state |
Current state of the provisioning service. |
AccessRightsDescription
Rights that this key has.
Name | Type | Description |
---|---|---|
DeviceConnect |
|
|
EnrollmentRead |
|
|
EnrollmentWrite |
|
|
RegistrationStatusRead |
|
|
RegistrationStatusWrite |
|
|
ServiceConfig |
|
AllocationPolicy
Allocation policy to be used by this provisioning service.
Name | Type | Description |
---|---|---|
GeoLatency |
|
|
Hashed |
|
|
Static |
|
ErrorDetails
Error details.
Name | Type | Description |
---|---|---|
code |
|
The error code. |
details |
|
The error details. |
httpStatusCode |
|
The HTTP status code. |
message |
|
The error message. |
IotDpsPropertiesDescription
the service specific properties of a provisioning service, including keys, linked iot hubs, current state, and system generated properties such as hostname and idScope
Name | Type | Description |
---|---|---|
allocationPolicy |
Allocation policy to be used by this provisioning service. |
|
authorizationPolicies |
List of authorization keys for a provisioning service. |
|
deviceProvisioningHostName |
|
Device endpoint for this provisioning service. |
idScope |
|
Unique identifier of this provisioning service. |
iotHubs |
List of IoT hubs associated with this provisioning service. |
|
provisioningState |
|
The ARM provisioning state of the provisioning service. |
serviceOperationsHostName |
|
Service endpoint for provisioning service. |
state |
Current state of the provisioning service. |
IotDpsSku
Sku name.
Name | Type | Description |
---|---|---|
S1 |
|
IotDpsSkuInfo
List of possible provisioning service SKUs.
Name | Type | Description |
---|---|---|
capacity |
|
The number of units to provision |
name |
Sku name. |
|
tier |
|
Pricing tier name of the provisioning service. |
IotHubDefinitionDescription
Description of the IoT hub.
Name | Type | Description |
---|---|---|
allocationWeight |
|
weight to apply for a given iot h. |
applyAllocationPolicy |
|
flag for applying allocationPolicy or not for a given iot hub. |
connectionString |
|
Connection string og the IoT hub. |
location |
|
ARM region of the IoT hub. |
name |
|
Host name of the IoT hub. |
ProvisioningServiceDescription
The description of the provisioning service.
Name | Type | Description |
---|---|---|
etag |
|
The Etag field is not required. If it is provided in the response body, it must also be provided as a header per the normal ETag convention. |
id |
|
The resource identifier. |
location |
|
The resource location. |
name |
|
The resource name. |
properties |
Service specific properties for a provisioning service |
|
sku |
Sku info for a provisioning Service. |
|
tags |
|
The resource tags. |
type |
|
The resource type. |
SharedAccessSignatureAuthorizationRule[AccessRightsDescription]
Description of the shared access key.
Name | Type | Description |
---|---|---|
keyName |
|
Name of the key. |
primaryKey |
|
Primary SAS key value. |
rights |
Rights that this key has. |
|
secondaryKey |
|
Secondary SAS key value. |
state
Current state of the provisioning service.
Name | Type | Description |
---|---|---|
Activating |
|
|
ActivationFailed |
|
|
Active |
|
|
Deleted |
|
|
Deleting |
|
|
DeletionFailed |
|
|
FailingOver |
|
|
FailoverFailed |
|
|
Resuming |
|
|
Suspended |
|
|
Suspending |
|
|
Transitioning |
|