GetDpsSharedAccessPolicy
Use this data source to access information about an existing IotHub Device Provisioning Service Shared Access Policy
Example Usage
using Pulumi;
using Azure = Pulumi.Azure;
class MyStack : Stack
{
public MyStack()
{
var example = Output.Create(Azure.Iot.GetDpsSharedAccessPolicy.InvokeAsync(new Azure.Iot.GetDpsSharedAccessPolicyArgs
{
Name = "example",
ResourceGroupName = azurerm_resource_group.Example.Name,
IothubDpsName = azurerm_iothub_dps.Example.Name,
}));
}
}
package main
import (
"github.com/pulumi/pulumi-azure/sdk/v3/go/azure/iot"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := iot.LookupDpsSharedAccessPolicy(ctx, &iot.LookupDpsSharedAccessPolicyArgs{
Name: "example",
ResourceGroupName: azurerm_resource_group.Example.Name,
IothubDpsName: azurerm_iothub_dps.Example.Name,
}, nil)
if err != nil {
return err
}
return nil
})
}import pulumi
import pulumi_azure as azure
example = azure.iot.get_dps_shared_access_policy(name="example",
resource_group_name=azurerm_resource_group["example"]["name"],
iothub_dps_name=azurerm_iothub_dps["example"]["name"])import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const example = azure.iot.getDpsSharedAccessPolicy({
name: "example",
resourceGroupName: azurerm_resource_group.example.name,
iothubDpsName: azurerm_iothub_dps.example.name,
});Using GetDpsSharedAccessPolicy
function getDpsSharedAccessPolicy(args: GetDpsSharedAccessPolicyArgs, opts?: InvokeOptions): Promise<GetDpsSharedAccessPolicyResult>function get_dps_shared_access_policy(iothub_dps_name=None, name=None, resource_group_name=None, opts=None)func LookupDpsSharedAccessPolicy(ctx *Context, args *LookupDpsSharedAccessPolicyArgs, opts ...InvokeOption) (*LookupDpsSharedAccessPolicyResult, error)Note: This function is named
LookupDpsSharedAccessPolicyin the Go SDK.
public static class GetDpsSharedAccessPolicy {
public static Task<GetDpsSharedAccessPolicyResult> InvokeAsync(GetDpsSharedAccessPolicyArgs args, InvokeOptions? opts = null)
}The following arguments are supported:
- Iothub
Dps stringName Specifies the name of the IoT Hub Device Provisioning service to which the Shared Access Policy belongs.
- Name string
Specifies the name of the IotHub Shared Access Policy.
- Resource
Group stringName Specifies the name of the resource group under which the IotHub Shared Access Policy resource exists.
- Iothub
Dps stringName Specifies the name of the IoT Hub Device Provisioning service to which the Shared Access Policy belongs.
- Name string
Specifies the name of the IotHub Shared Access Policy.
- Resource
Group stringName Specifies the name of the resource group under which the IotHub Shared Access Policy resource exists.
- iothub
Dps stringName Specifies the name of the IoT Hub Device Provisioning service to which the Shared Access Policy belongs.
- name string
Specifies the name of the IotHub Shared Access Policy.
- resource
Group stringName Specifies the name of the resource group under which the IotHub Shared Access Policy resource exists.
- iothub_
dps_ strname Specifies the name of the IoT Hub Device Provisioning service to which the Shared Access Policy belongs.
- name str
Specifies the name of the IotHub Shared Access Policy.
- resource_
group_ strname Specifies the name of the resource group under which the IotHub Shared Access Policy resource exists.
GetDpsSharedAccessPolicy Result
The following output properties are available:
- Id string
The provider-assigned unique ID for this managed resource.
- Iothub
Dps stringName - Name string
- Primary
Connection stringString The primary connection string of the Shared Access Policy.
- Primary
Key string The primary key used to create the authentication token.
- Resource
Group stringName - 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.
- Iothub
Dps stringName - Name string
- Primary
Connection stringString The primary connection string of the Shared Access Policy.
- Primary
Key string The primary key used to create the authentication token.
- Resource
Group stringName - 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.
- iothub
Dps stringName - name string
- primary
Connection stringString The primary connection string of the Shared Access Policy.
- primary
Key string The primary key used to create the authentication token.
- resource
Group stringName - 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.
- iothub_
dps_ strname - name str
- primary_
connection_ strstring The primary connection string of the Shared Access Policy.
- primary_
key str The primary key used to create the authentication token.
- resource_
group_ strname - secondary_
connection_ strstring The secondary connection string of the Shared Access Policy.
- secondary_
key str The secondary key used to create the authentication token.
Package Details
- Repository
- https://github.com/pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
azurermTerraform Provider.