GetDps

Use this data source to access information about an existing IotHub Device Provisioning Service.

Example Usage

using Pulumi;
using Azure = Pulumi.Azure;

class MyStack : Stack
{
    public MyStack()
    {
        var example = Output.Create(Azure.Iot.GetDps.InvokeAsync(new Azure.Iot.GetDpsArgs
        {
            Name = "iot_hub_dps_test",
            ResourceGroupName = "iothub_dps_rg",
        }));
    }

}
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.GetDps(ctx, &iot.GetDpsArgs{
            Name:              "iot_hub_dps_test",
            ResourceGroupName: "iothub_dps_rg",
        }, nil)
        if err != nil {
            return err
        }
        return nil
    })
}
import pulumi
import pulumi_azure as azure

example = azure.iot.get_dps(name="iot_hub_dps_test",
    resource_group_name="iothub_dps_rg")
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";

const example = pulumi.output(azure.iot.getDps({
    name: "iot_hub_dps_test",
    resourceGroupName: "iothub_dps_rg",
}, { async: true }));

Using GetDps

function getDps(args: GetDpsArgs, opts?: InvokeOptions): Promise<GetDpsResult>
function  get_dps(name=None, resource_group_name=None, tags=None, opts=None)
func GetDps(ctx *Context, args *GetDpsArgs, opts ...InvokeOption) (*GetDpsResult, error)
public static class GetDps {
    public static Task<GetDpsResult> InvokeAsync(GetDpsArgs args, InvokeOptions? opts = null)
}

The following arguments are supported:

Name string

Specifies the name of the Iot Device Provisioning Service resource.

ResourceGroupName string

The name of the resource group under which the Iot Device Provisioning Service is located in.

Tags Dictionary<string, string>
Name string

Specifies the name of the Iot Device Provisioning Service resource.

ResourceGroupName string

The name of the resource group under which the Iot Device Provisioning Service is located in.

Tags map[string]string
name string

Specifies the name of the Iot Device Provisioning Service resource.

resourceGroupName string

The name of the resource group under which the Iot Device Provisioning Service is located in.

tags {[key: string]: string}
name str

Specifies the name of the Iot Device Provisioning Service resource.

resource_group_name str

The name of the resource group under which the Iot Device Provisioning Service is located in.

tags Dict[str, str]

GetDps Result

The following output properties are available:

AllocationPolicy string

The allocation policy of the IoT Device Provisioning Service.

DeviceProvisioningHostName string

The device endpoint of the IoT Device Provisioning Service.

Id string

The provider-assigned unique ID for this managed resource.

IdScope string

The unique identifier of the IoT Device Provisioning Service.

Location string

Specifies the supported Azure location where the IoT Device Provisioning Service exists.

Name string
ResourceGroupName string
ServiceOperationsHostName string

The service endpoint of the IoT Device Provisioning Service.

Tags Dictionary<string, string>
AllocationPolicy string

The allocation policy of the IoT Device Provisioning Service.

DeviceProvisioningHostName string

The device endpoint of the IoT Device Provisioning Service.

Id string

The provider-assigned unique ID for this managed resource.

IdScope string

The unique identifier of the IoT Device Provisioning Service.

Location string

Specifies the supported Azure location where the IoT Device Provisioning Service exists.

Name string
ResourceGroupName string
ServiceOperationsHostName string

The service endpoint of the IoT Device Provisioning Service.

Tags map[string]string
allocationPolicy string

The allocation policy of the IoT Device Provisioning Service.

deviceProvisioningHostName string

The device endpoint of the IoT Device Provisioning Service.

id string

The provider-assigned unique ID for this managed resource.

idScope string

The unique identifier of the IoT Device Provisioning Service.

location string

Specifies the supported Azure location where the IoT Device Provisioning Service exists.

name string
resourceGroupName string
serviceOperationsHostName string

The service endpoint of the IoT Device Provisioning Service.

tags {[key: string]: string}
allocation_policy str

The allocation policy of the IoT Device Provisioning Service.

device_provisioning_host_name str

The device endpoint of the IoT Device Provisioning Service.

id str

The provider-assigned unique ID for this managed resource.

id_scope str

The unique identifier of the IoT Device Provisioning Service.

location str

Specifies the supported Azure location where the IoT Device Provisioning Service exists.

name str
resource_group_name str
service_operations_host_name str

The service endpoint of the IoT Device Provisioning Service.

tags Dict[str, str]

Package Details

Repository
https://github.com/pulumi/pulumi-azure
License
Apache-2.0
Notes
This Pulumi package is based on the azurerm Terraform Provider.