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.
- Resource
Group stringName The name of the resource group under which the Iot Device Provisioning Service is located in.
- Dictionary<string, string>
- Name string
Specifies the name of the Iot Device Provisioning Service resource.
- Resource
Group stringName The name of the resource group under which the Iot Device Provisioning Service is located in.
- map[string]string
- name string
Specifies the name of the Iot Device Provisioning Service resource.
- resource
Group stringName The name of the resource group under which the Iot Device Provisioning Service is located in.
- {[key: string]: string}
- name str
Specifies the name of the Iot Device Provisioning Service resource.
- resource_
group_ strname The name of the resource group under which the Iot Device Provisioning Service is located in.
- Dict[str, str]
GetDps Result
The following output properties are available:
- Allocation
Policy string The allocation policy of the IoT Device Provisioning Service.
- Device
Provisioning stringHost Name The device endpoint of the IoT Device Provisioning Service.
- Id string
The provider-assigned unique ID for this managed resource.
- Id
Scope 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
- Resource
Group stringName - Service
Operations stringHost Name The service endpoint of the IoT Device Provisioning Service.
- Dictionary<string, string>
- Allocation
Policy string The allocation policy of the IoT Device Provisioning Service.
- Device
Provisioning stringHost Name The device endpoint of the IoT Device Provisioning Service.
- Id string
The provider-assigned unique ID for this managed resource.
- Id
Scope 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
- Resource
Group stringName - Service
Operations stringHost Name The service endpoint of the IoT Device Provisioning Service.
- map[string]string
- allocation
Policy string The allocation policy of the IoT Device Provisioning Service.
- device
Provisioning stringHost Name The device endpoint of the IoT Device Provisioning Service.
- id string
The provider-assigned unique ID for this managed resource.
- id
Scope 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
- resource
Group stringName - service
Operations stringHost Name The service endpoint of the IoT Device Provisioning Service.
- {[key: string]: string}
- allocation_
policy str The allocation policy of the IoT Device Provisioning Service.
- device_
provisioning_ strhost_ name 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_ strname - service_
operations_ strhost_ name The service endpoint of the IoT Device Provisioning Service.
- Dict[str, str]
Package Details
- Repository
- https://github.com/pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
azurermTerraform Provider.