azure.iot.DpsSharedAccessPolicy
Explore with Pulumi AI
Manages an IotHub Device Provisioning Service Shared Access Policy
Example Usage
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Azure = Pulumi.Azure;
return await Deployment.RunAsync(() =>
{
var exampleResourceGroup = new Azure.Core.ResourceGroup("exampleResourceGroup", new()
{
Location = "West Europe",
});
var exampleIotHubDps = new Azure.Iot.IotHubDps("exampleIotHubDps", new()
{
ResourceGroupName = exampleResourceGroup.Name,
Location = exampleResourceGroup.Location,
Sku = new Azure.Iot.Inputs.IotHubDpsSkuArgs
{
Name = "S1",
Capacity = 1,
},
});
var exampleDpsSharedAccessPolicy = new Azure.Iot.DpsSharedAccessPolicy("exampleDpsSharedAccessPolicy", new()
{
ResourceGroupName = exampleResourceGroup.Name,
IothubDpsName = exampleIotHubDps.Name,
EnrollmentWrite = true,
EnrollmentRead = true,
});
});
package main
import (
"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/core"
"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/iot"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
exampleResourceGroup, err := core.NewResourceGroup(ctx, "exampleResourceGroup", &core.ResourceGroupArgs{
Location: pulumi.String("West Europe"),
})
if err != nil {
return err
}
exampleIotHubDps, err := iot.NewIotHubDps(ctx, "exampleIotHubDps", &iot.IotHubDpsArgs{
ResourceGroupName: exampleResourceGroup.Name,
Location: exampleResourceGroup.Location,
Sku: &iot.IotHubDpsSkuArgs{
Name: pulumi.String("S1"),
Capacity: pulumi.Int(1),
},
})
if err != nil {
return err
}
_, err = iot.NewDpsSharedAccessPolicy(ctx, "exampleDpsSharedAccessPolicy", &iot.DpsSharedAccessPolicyArgs{
ResourceGroupName: exampleResourceGroup.Name,
IothubDpsName: exampleIotHubDps.Name,
EnrollmentWrite: pulumi.Bool(true),
EnrollmentRead: pulumi.Bool(true),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.core.ResourceGroup;
import com.pulumi.azure.core.ResourceGroupArgs;
import com.pulumi.azure.iot.IotHubDps;
import com.pulumi.azure.iot.IotHubDpsArgs;
import com.pulumi.azure.iot.inputs.IotHubDpsSkuArgs;
import com.pulumi.azure.iot.DpsSharedAccessPolicy;
import com.pulumi.azure.iot.DpsSharedAccessPolicyArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var exampleResourceGroup = new ResourceGroup("exampleResourceGroup", ResourceGroupArgs.builder()
.location("West Europe")
.build());
var exampleIotHubDps = new IotHubDps("exampleIotHubDps", IotHubDpsArgs.builder()
.resourceGroupName(exampleResourceGroup.name())
.location(exampleResourceGroup.location())
.sku(IotHubDpsSkuArgs.builder()
.name("S1")
.capacity("1")
.build())
.build());
var exampleDpsSharedAccessPolicy = new DpsSharedAccessPolicy("exampleDpsSharedAccessPolicy", DpsSharedAccessPolicyArgs.builder()
.resourceGroupName(exampleResourceGroup.name())
.iothubDpsName(exampleIotHubDps.name())
.enrollmentWrite(true)
.enrollmentRead(true)
.build());
}
}
import pulumi
import pulumi_azure as azure
example_resource_group = azure.core.ResourceGroup("exampleResourceGroup", location="West Europe")
example_iot_hub_dps = azure.iot.IotHubDps("exampleIotHubDps",
resource_group_name=example_resource_group.name,
location=example_resource_group.location,
sku=azure.iot.IotHubDpsSkuArgs(
name="S1",
capacity=1,
))
example_dps_shared_access_policy = azure.iot.DpsSharedAccessPolicy("exampleDpsSharedAccessPolicy",
resource_group_name=example_resource_group.name,
iothub_dps_name=example_iot_hub_dps.name,
enrollment_write=True,
enrollment_read=True)
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const exampleResourceGroup = new azure.core.ResourceGroup("exampleResourceGroup", {location: "West Europe"});
const exampleIotHubDps = new azure.iot.IotHubDps("exampleIotHubDps", {
resourceGroupName: exampleResourceGroup.name,
location: exampleResourceGroup.location,
sku: {
name: "S1",
capacity: 1,
},
});
const exampleDpsSharedAccessPolicy = new azure.iot.DpsSharedAccessPolicy("exampleDpsSharedAccessPolicy", {
resourceGroupName: exampleResourceGroup.name,
iothubDpsName: exampleIotHubDps.name,
enrollmentWrite: true,
enrollmentRead: true,
});
resources:
exampleResourceGroup:
type: azure:core:ResourceGroup
properties:
location: West Europe
exampleIotHubDps:
type: azure:iot:IotHubDps
properties:
resourceGroupName: ${exampleResourceGroup.name}
location: ${exampleResourceGroup.location}
sku:
name: S1
capacity: '1'
exampleDpsSharedAccessPolicy:
type: azure:iot:DpsSharedAccessPolicy
properties:
resourceGroupName: ${exampleResourceGroup.name}
iothubDpsName: ${exampleIotHubDps.name}
enrollmentWrite: true
enrollmentRead: true
Create DpsSharedAccessPolicy Resource
new DpsSharedAccessPolicy(name: string, args: DpsSharedAccessPolicyArgs, opts?: CustomResourceOptions);
@overload
def DpsSharedAccessPolicy(resource_name: str,
opts: Optional[ResourceOptions] = None,
enrollment_read: Optional[bool] = None,
enrollment_write: Optional[bool] = None,
iothub_dps_name: Optional[str] = None,
name: Optional[str] = None,
registration_read: Optional[bool] = None,
registration_write: Optional[bool] = None,
resource_group_name: Optional[str] = None,
service_config: Optional[bool] = None)
@overload
def DpsSharedAccessPolicy(resource_name: str,
args: DpsSharedAccessPolicyArgs,
opts: Optional[ResourceOptions] = None)
func NewDpsSharedAccessPolicy(ctx *Context, name string, args DpsSharedAccessPolicyArgs, opts ...ResourceOption) (*DpsSharedAccessPolicy, error)
public DpsSharedAccessPolicy(string name, DpsSharedAccessPolicyArgs args, CustomResourceOptions? opts = null)
public DpsSharedAccessPolicy(String name, DpsSharedAccessPolicyArgs args)
public DpsSharedAccessPolicy(String name, DpsSharedAccessPolicyArgs args, CustomResourceOptions options)
type: azure:iot:DpsSharedAccessPolicy
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DpsSharedAccessPolicyArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args DpsSharedAccessPolicyArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args DpsSharedAccessPolicyArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DpsSharedAccessPolicyArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args DpsSharedAccessPolicyArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
DpsSharedAccessPolicy Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The DpsSharedAccessPolicy resource accepts the following input properties:
- Iothub
Dps stringName The name of the IoT Hub Device Provisioning service to which this Shared Access Policy belongs. Changing this forces a new resource to be created.
- Resource
Group stringName The name of the resource group under which the IotHub Shared Access Policy resource has to be created. Changing this forces a new resource to be created.
- Enrollment
Read bool Adds
EnrollmentRead
permission to this Shared Access Account. It allows read access to enrollment data.- Enrollment
Write bool Adds
EnrollmentWrite
permission to this Shared Access Account. It allows write access to enrollment data.- Name string
Specifies the name of the IotHub Shared Access Policy resource. Changing this forces a new resource to be created.
- Registration
Read bool Adds
RegistrationStatusRead
permission to this Shared Access Account. It allows read access to device registrations.- Registration
Write bool Adds
RegistrationStatusWrite
permission to this Shared Access Account. It allows write access to device registrations.- Service
Config bool Adds
ServiceConfig
permission to this Shared Access Account. It allows configuration of the Device Provisioning Service.
- Iothub
Dps stringName The name of the IoT Hub Device Provisioning service to which this Shared Access Policy belongs. Changing this forces a new resource to be created.
- Resource
Group stringName The name of the resource group under which the IotHub Shared Access Policy resource has to be created. Changing this forces a new resource to be created.
- Enrollment
Read bool Adds
EnrollmentRead
permission to this Shared Access Account. It allows read access to enrollment data.- Enrollment
Write bool Adds
EnrollmentWrite
permission to this Shared Access Account. It allows write access to enrollment data.- Name string
Specifies the name of the IotHub Shared Access Policy resource. Changing this forces a new resource to be created.
- Registration
Read bool Adds
RegistrationStatusRead
permission to this Shared Access Account. It allows read access to device registrations.- Registration
Write bool Adds
RegistrationStatusWrite
permission to this Shared Access Account. It allows write access to device registrations.- Service
Config bool Adds
ServiceConfig
permission to this Shared Access Account. It allows configuration of the Device Provisioning Service.
- iothub
Dps StringName The name of the IoT Hub Device Provisioning service to which this Shared Access Policy belongs. Changing this forces a new resource to be created.
- resource
Group StringName The name of the resource group under which the IotHub Shared Access Policy resource has to be created. Changing this forces a new resource to be created.
- enrollment
Read Boolean Adds
EnrollmentRead
permission to this Shared Access Account. It allows read access to enrollment data.- enrollment
Write Boolean Adds
EnrollmentWrite
permission to this Shared Access Account. It allows write access to enrollment data.- name String
Specifies the name of the IotHub Shared Access Policy resource. Changing this forces a new resource to be created.
- registration
Read Boolean Adds
RegistrationStatusRead
permission to this Shared Access Account. It allows read access to device registrations.- registration
Write Boolean Adds
RegistrationStatusWrite
permission to this Shared Access Account. It allows write access to device registrations.- service
Config Boolean Adds
ServiceConfig
permission to this Shared Access Account. It allows configuration of the Device Provisioning Service.
- iothub
Dps stringName The name of the IoT Hub Device Provisioning service to which this Shared Access Policy belongs. Changing this forces a new resource to be created.
- resource
Group stringName The name of the resource group under which the IotHub Shared Access Policy resource has to be created. Changing this forces a new resource to be created.
- enrollment
Read boolean Adds
EnrollmentRead
permission to this Shared Access Account. It allows read access to enrollment data.- enrollment
Write boolean Adds
EnrollmentWrite
permission to this Shared Access Account. It allows write access to enrollment data.- name string
Specifies the name of the IotHub Shared Access Policy resource. Changing this forces a new resource to be created.
- registration
Read boolean Adds
RegistrationStatusRead
permission to this Shared Access Account. It allows read access to device registrations.- registration
Write boolean Adds
RegistrationStatusWrite
permission to this Shared Access Account. It allows write access to device registrations.- service
Config boolean Adds
ServiceConfig
permission to this Shared Access Account. It allows configuration of the Device Provisioning Service.
- iothub_
dps_ strname The name of the IoT Hub Device Provisioning service to which this Shared Access Policy belongs. Changing this forces a new resource to be created.
- resource_
group_ strname The name of the resource group under which the IotHub Shared Access Policy resource has to be created. Changing this forces a new resource to be created.
- enrollment_
read bool Adds
EnrollmentRead
permission to this Shared Access Account. It allows read access to enrollment data.- enrollment_
write bool Adds
EnrollmentWrite
permission to this Shared Access Account. It allows write access to enrollment data.- name str
Specifies the name of the IotHub Shared Access Policy resource. Changing this forces a new resource to be created.
- registration_
read bool Adds
RegistrationStatusRead
permission to this Shared Access Account. It allows read access to device registrations.- registration_
write bool Adds
RegistrationStatusWrite
permission to this Shared Access Account. It allows write access to device registrations.- service_
config bool Adds
ServiceConfig
permission to this Shared Access Account. It allows configuration of the Device Provisioning Service.
- iothub
Dps StringName The name of the IoT Hub Device Provisioning service to which this Shared Access Policy belongs. Changing this forces a new resource to be created.
- resource
Group StringName The name of the resource group under which the IotHub Shared Access Policy resource has to be created. Changing this forces a new resource to be created.
- enrollment
Read Boolean Adds
EnrollmentRead
permission to this Shared Access Account. It allows read access to enrollment data.- enrollment
Write Boolean Adds
EnrollmentWrite
permission to this Shared Access Account. It allows write access to enrollment data.- name String
Specifies the name of the IotHub Shared Access Policy resource. Changing this forces a new resource to be created.
- registration
Read Boolean Adds
RegistrationStatusRead
permission to this Shared Access Account. It allows read access to device registrations.- registration
Write Boolean Adds
RegistrationStatusWrite
permission to this Shared Access Account. It allows write access to device registrations.- service
Config Boolean Adds
ServiceConfig
permission to this Shared Access Account. It allows configuration of the Device Provisioning Service.
Outputs
All input properties are implicitly available as output properties. Additionally, the DpsSharedAccessPolicy resource produces the following output properties:
- Id string
The provider-assigned unique ID for this managed resource.
- Primary
Connection stringString The primary connection string of the Shared Access Policy.
- Primary
Key string The primary key used to create the authentication token.
- Secondary
Connection stringString The secondary connection string of the Shared Access Policy.
- Secondary
Key string The secondary key used to create the authentication token.
- Id string
The provider-assigned unique ID for this managed resource.
- Primary
Connection stringString The primary connection string of the Shared Access Policy.
- Primary
Key string The primary key used to create the authentication token.
- Secondary
Connection stringString The secondary connection string of the Shared Access Policy.
- Secondary
Key string The secondary key used to create the authentication token.
- id String
The provider-assigned unique ID for this managed resource.
- primary
Connection StringString The primary connection string of the Shared Access Policy.
- primary
Key String The primary key used to create the authentication token.
- secondary
Connection StringString The secondary connection string of the Shared Access Policy.
- secondary
Key String The secondary key used to create the authentication token.
- id string
The provider-assigned unique ID for this managed resource.
- primary
Connection stringString The primary connection string of the Shared Access Policy.
- primary
Key string The primary key used to create the authentication token.
- secondary
Connection stringString The secondary connection string of the Shared Access Policy.
- secondary
Key string The secondary key used to create the authentication token.
- id str
The provider-assigned unique ID for this managed resource.
- primary_
connection_ strstring The primary connection string of the Shared Access Policy.
- primary_
key str The primary key used to create the authentication token.
- secondary_
connection_ strstring The secondary connection string of the Shared Access Policy.
- secondary_
key str The secondary key used to create the authentication token.
- id String
The provider-assigned unique ID for this managed resource.
- primary
Connection StringString The primary connection string of the Shared Access Policy.
- primary
Key String The primary key used to create the authentication token.
- secondary
Connection StringString The secondary connection string of the Shared Access Policy.
- secondary
Key String The secondary key used to create the authentication token.
Look up Existing DpsSharedAccessPolicy Resource
Get an existing DpsSharedAccessPolicy resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: DpsSharedAccessPolicyState, opts?: CustomResourceOptions): DpsSharedAccessPolicy
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
enrollment_read: Optional[bool] = None,
enrollment_write: Optional[bool] = None,
iothub_dps_name: Optional[str] = None,
name: Optional[str] = None,
primary_connection_string: Optional[str] = None,
primary_key: Optional[str] = None,
registration_read: Optional[bool] = None,
registration_write: Optional[bool] = None,
resource_group_name: Optional[str] = None,
secondary_connection_string: Optional[str] = None,
secondary_key: Optional[str] = None,
service_config: Optional[bool] = None) -> DpsSharedAccessPolicy
func GetDpsSharedAccessPolicy(ctx *Context, name string, id IDInput, state *DpsSharedAccessPolicyState, opts ...ResourceOption) (*DpsSharedAccessPolicy, error)
public static DpsSharedAccessPolicy Get(string name, Input<string> id, DpsSharedAccessPolicyState? state, CustomResourceOptions? opts = null)
public static DpsSharedAccessPolicy get(String name, Output<String> id, DpsSharedAccessPolicyState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Enrollment
Read bool Adds
EnrollmentRead
permission to this Shared Access Account. It allows read access to enrollment data.- Enrollment
Write bool Adds
EnrollmentWrite
permission to this Shared Access Account. It allows write access to enrollment data.- Iothub
Dps stringName The name of the IoT Hub Device Provisioning service to which this Shared Access Policy belongs. Changing this forces a new resource to be created.
- Name string
Specifies the name of the IotHub Shared Access Policy resource. Changing this forces a new resource to be created.
- Primary
Connection stringString The primary connection string of the Shared Access Policy.
- Primary
Key string The primary key used to create the authentication token.
- Registration
Read bool Adds
RegistrationStatusRead
permission to this Shared Access Account. It allows read access to device registrations.- Registration
Write bool Adds
RegistrationStatusWrite
permission to this Shared Access Account. It allows write access to device registrations.- Resource
Group stringName The name of the resource group under which the IotHub Shared Access Policy resource has to be created. Changing this forces a new resource to be created.
- Secondary
Connection stringString The secondary connection string of the Shared Access Policy.
- Secondary
Key string The secondary key used to create the authentication token.
- Service
Config bool Adds
ServiceConfig
permission to this Shared Access Account. It allows configuration of the Device Provisioning Service.
- Enrollment
Read bool Adds
EnrollmentRead
permission to this Shared Access Account. It allows read access to enrollment data.- Enrollment
Write bool Adds
EnrollmentWrite
permission to this Shared Access Account. It allows write access to enrollment data.- Iothub
Dps stringName The name of the IoT Hub Device Provisioning service to which this Shared Access Policy belongs. Changing this forces a new resource to be created.
- Name string
Specifies the name of the IotHub Shared Access Policy resource. Changing this forces a new resource to be created.
- Primary
Connection stringString The primary connection string of the Shared Access Policy.
- Primary
Key string The primary key used to create the authentication token.
- Registration
Read bool Adds
RegistrationStatusRead
permission to this Shared Access Account. It allows read access to device registrations.- Registration
Write bool Adds
RegistrationStatusWrite
permission to this Shared Access Account. It allows write access to device registrations.- Resource
Group stringName The name of the resource group under which the IotHub Shared Access Policy resource has to be created. Changing this forces a new resource to be created.
- Secondary
Connection stringString The secondary connection string of the Shared Access Policy.
- Secondary
Key string The secondary key used to create the authentication token.
- Service
Config bool Adds
ServiceConfig
permission to this Shared Access Account. It allows configuration of the Device Provisioning Service.
- enrollment
Read Boolean Adds
EnrollmentRead
permission to this Shared Access Account. It allows read access to enrollment data.- enrollment
Write Boolean Adds
EnrollmentWrite
permission to this Shared Access Account. It allows write access to enrollment data.- iothub
Dps StringName The name of the IoT Hub Device Provisioning service to which this Shared Access Policy belongs. Changing this forces a new resource to be created.
- name String
Specifies the name of the IotHub Shared Access Policy resource. Changing this forces a new resource to be created.
- primary
Connection StringString The primary connection string of the Shared Access Policy.
- primary
Key String The primary key used to create the authentication token.
- registration
Read Boolean Adds
RegistrationStatusRead
permission to this Shared Access Account. It allows read access to device registrations.- registration
Write Boolean Adds
RegistrationStatusWrite
permission to this Shared Access Account. It allows write access to device registrations.- resource
Group StringName The name of the resource group under which the IotHub Shared Access Policy resource has to be created. Changing this forces a new resource to be created.
- secondary
Connection StringString The secondary connection string of the Shared Access Policy.
- secondary
Key String The secondary key used to create the authentication token.
- service
Config Boolean Adds
ServiceConfig
permission to this Shared Access Account. It allows configuration of the Device Provisioning Service.
- enrollment
Read boolean Adds
EnrollmentRead
permission to this Shared Access Account. It allows read access to enrollment data.- enrollment
Write boolean Adds
EnrollmentWrite
permission to this Shared Access Account. It allows write access to enrollment data.- iothub
Dps stringName The name of the IoT Hub Device Provisioning service to which this Shared Access Policy belongs. Changing this forces a new resource to be created.
- name string
Specifies the name of the IotHub Shared Access Policy resource. Changing this forces a new resource to be created.
- primary
Connection stringString The primary connection string of the Shared Access Policy.
- primary
Key string The primary key used to create the authentication token.
- registration
Read boolean Adds
RegistrationStatusRead
permission to this Shared Access Account. It allows read access to device registrations.- registration
Write boolean Adds
RegistrationStatusWrite
permission to this Shared Access Account. It allows write access to device registrations.- resource
Group stringName The name of the resource group under which the IotHub Shared Access Policy resource has to be created. Changing this forces a new resource to be created.
- secondary
Connection stringString The secondary connection string of the Shared Access Policy.
- secondary
Key string The secondary key used to create the authentication token.
- service
Config boolean Adds
ServiceConfig
permission to this Shared Access Account. It allows configuration of the Device Provisioning Service.
- enrollment_
read bool Adds
EnrollmentRead
permission to this Shared Access Account. It allows read access to enrollment data.- enrollment_
write bool Adds
EnrollmentWrite
permission to this Shared Access Account. It allows write access to enrollment data.- iothub_
dps_ strname The name of the IoT Hub Device Provisioning service to which this Shared Access Policy belongs. Changing this forces a new resource to be created.
- name str
Specifies the name of the IotHub Shared Access Policy resource. Changing this forces a new resource to be created.
- primary_
connection_ strstring The primary connection string of the Shared Access Policy.
- primary_
key str The primary key used to create the authentication token.
- registration_
read bool Adds
RegistrationStatusRead
permission to this Shared Access Account. It allows read access to device registrations.- registration_
write bool Adds
RegistrationStatusWrite
permission to this Shared Access Account. It allows write access to device registrations.- resource_
group_ strname The name of the resource group under which the IotHub Shared Access Policy resource has to be created. Changing this forces a new resource to be created.
- secondary_
connection_ strstring The secondary connection string of the Shared Access Policy.
- secondary_
key str The secondary key used to create the authentication token.
- service_
config bool Adds
ServiceConfig
permission to this Shared Access Account. It allows configuration of the Device Provisioning Service.
- enrollment
Read Boolean Adds
EnrollmentRead
permission to this Shared Access Account. It allows read access to enrollment data.- enrollment
Write Boolean Adds
EnrollmentWrite
permission to this Shared Access Account. It allows write access to enrollment data.- iothub
Dps StringName The name of the IoT Hub Device Provisioning service to which this Shared Access Policy belongs. Changing this forces a new resource to be created.
- name String
Specifies the name of the IotHub Shared Access Policy resource. Changing this forces a new resource to be created.
- primary
Connection StringString The primary connection string of the Shared Access Policy.
- primary
Key String The primary key used to create the authentication token.
- registration
Read Boolean Adds
RegistrationStatusRead
permission to this Shared Access Account. It allows read access to device registrations.- registration
Write Boolean Adds
RegistrationStatusWrite
permission to this Shared Access Account. It allows write access to device registrations.- resource
Group StringName The name of the resource group under which the IotHub Shared Access Policy resource has to be created. Changing this forces a new resource to be created.
- secondary
Connection StringString The secondary connection string of the Shared Access Policy.
- secondary
Key String The secondary key used to create the authentication token.
- service
Config Boolean Adds
ServiceConfig
permission to this Shared Access Account. It allows configuration of the Device Provisioning Service.
Import
IoTHub Device Provisioning Service Shared Access Policies can be imported using the resource id
, e.g.
$ pulumi import azure:iot/dpsSharedAccessPolicy:DpsSharedAccessPolicy shared_access_policy1 /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.Devices/provisioningServices/dps1/keys/shared_access_policy1
Package Details
- Repository
- Azure Classic pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
azurerm
Terraform Provider.