We recommend using Azure Native.
Azure v6.10.0 published on Tuesday, Nov 19, 2024 by Pulumi
azure.iot.getDps
Explore with Pulumi AI
Use this data source to access information about an existing IotHub Device Provisioning Service.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const example = azure.iot.getDps({
name: "iot_hub_dps_test",
resourceGroupName: "iothub_dps_rg",
});
import pulumi
import pulumi_azure as azure
example = azure.iot.get_dps(name="iot_hub_dps_test",
resource_group_name="iothub_dps_rg")
package main
import (
"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/iot"
"github.com/pulumi/pulumi/sdk/v3/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
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Azure = Pulumi.Azure;
return await Deployment.RunAsync(() =>
{
var example = Azure.Iot.GetDps.Invoke(new()
{
Name = "iot_hub_dps_test",
ResourceGroupName = "iothub_dps_rg",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.iot.IotFunctions;
import com.pulumi.azure.iot.inputs.GetDpsArgs;
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) {
final var example = IotFunctions.getDps(GetDpsArgs.builder()
.name("iot_hub_dps_test")
.resourceGroupName("iothub_dps_rg")
.build());
}
}
variables:
example:
fn::invoke:
Function: azure:iot:getDps
Arguments:
name: iot_hub_dps_test
resourceGroupName: iothub_dps_rg
Using getDps
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getDps(args: GetDpsArgs, opts?: InvokeOptions): Promise<GetDpsResult>
function getDpsOutput(args: GetDpsOutputArgs, opts?: InvokeOptions): Output<GetDpsResult>
def get_dps(name: Optional[str] = None,
resource_group_name: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
opts: Optional[InvokeOptions] = None) -> GetDpsResult
def get_dps_output(name: Optional[pulumi.Input[str]] = None,
resource_group_name: Optional[pulumi.Input[str]] = None,
tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetDpsResult]
func GetDps(ctx *Context, args *GetDpsArgs, opts ...InvokeOption) (*GetDpsResult, error)
func GetDpsOutput(ctx *Context, args *GetDpsOutputArgs, opts ...InvokeOption) GetDpsResultOutput
> Note: This function is named GetDps
in the Go SDK.
public static class GetDps
{
public static Task<GetDpsResult> InvokeAsync(GetDpsArgs args, InvokeOptions? opts = null)
public static Output<GetDpsResult> Invoke(GetDpsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetDpsResult> getDps(GetDpsArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: azure:iot/getDps:getDps
arguments:
# arguments dictionary
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.
- 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.
- Mapping[str, str]
- 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>
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.
- 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.
- Mapping[str, str]
- 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>
Package Details
- Repository
- Azure Classic pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
azurerm
Terraform Provider.