1. Packages
  2. Hsdp Provider
  3. API Docs
  4. getConnectMdmDataType
hsdp 0.65.3 published on Tuesday, Apr 15, 2025 by philips-software

hsdp.getConnectMdmDataType

Explore with Pulumi AI

hsdp logo
hsdp 0.65.3 published on Tuesday, Apr 15, 2025 by philips-software

    Retrieve information on MDM DataType resource

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as hsdp from "@pulumi/hsdp";
    
    const someType = hsdp.getConnectMdmDataType({
        name: "tf-some-data-type",
        propositionId: data.hsdp_connect_mdm_proposition.first.id,
    });
    export const dataTypeGuid = someType.then(someType => someType.id);
    
    import pulumi
    import pulumi_hsdp as hsdp
    
    some_type = hsdp.get_connect_mdm_data_type(name="tf-some-data-type",
        proposition_id=data["hsdp_connect_mdm_proposition"]["first"]["id"])
    pulumi.export("dataTypeGuid", some_type.id)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/hsdp/hsdp"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		someType, err := hsdp.LookupConnectMdmDataType(ctx, &hsdp.LookupConnectMdmDataTypeArgs{
    			Name:          "tf-some-data-type",
    			PropositionId: data.Hsdp_connect_mdm_proposition.First.Id,
    		}, nil)
    		if err != nil {
    			return err
    		}
    		ctx.Export("dataTypeGuid", someType.Id)
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Hsdp = Pulumi.Hsdp;
    
    return await Deployment.RunAsync(() => 
    {
        var someType = Hsdp.GetConnectMdmDataType.Invoke(new()
        {
            Name = "tf-some-data-type",
            PropositionId = data.Hsdp_connect_mdm_proposition.First.Id,
        });
    
        return new Dictionary<string, object?>
        {
            ["dataTypeGuid"] = someType.Apply(getConnectMdmDataTypeResult => getConnectMdmDataTypeResult.Id),
        };
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.hsdp.HsdpFunctions;
    import com.pulumi.hsdp.inputs.GetConnectMdmDataTypeArgs;
    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 someType = HsdpFunctions.getConnectMdmDataType(GetConnectMdmDataTypeArgs.builder()
                .name("tf-some-data-type")
                .propositionId(data.hsdp_connect_mdm_proposition().first().id())
                .build());
    
            ctx.export("dataTypeGuid", someType.applyValue(getConnectMdmDataTypeResult -> getConnectMdmDataTypeResult.id()));
        }
    }
    
    variables:
      someType:
        fn::invoke:
          function: hsdp:getConnectMdmDataType
          arguments:
            name: tf-some-data-type
            propositionId: ${data.hsdp_connect_mdm_proposition.first.id}
    outputs:
      dataTypeGuid: ${someType.id}
    

    Attributes reference

    In addition to all arguments above, the following attributes are exported:

    • id - The ID reference of the service action (format: DataType/${GUID})
    • guid - The GUID of the data type
    • description - A short description of the device group
    • tags - (list(string)) Tags associated with this data type

    Using getConnectMdmDataType

    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 getConnectMdmDataType(args: GetConnectMdmDataTypeArgs, opts?: InvokeOptions): Promise<GetConnectMdmDataTypeResult>
    function getConnectMdmDataTypeOutput(args: GetConnectMdmDataTypeOutputArgs, opts?: InvokeOptions): Output<GetConnectMdmDataTypeResult>
    def get_connect_mdm_data_type(id: Optional[str] = None,
                                  name: Optional[str] = None,
                                  proposition_id: Optional[str] = None,
                                  opts: Optional[InvokeOptions] = None) -> GetConnectMdmDataTypeResult
    def get_connect_mdm_data_type_output(id: Optional[pulumi.Input[str]] = None,
                                  name: Optional[pulumi.Input[str]] = None,
                                  proposition_id: Optional[pulumi.Input[str]] = None,
                                  opts: Optional[InvokeOptions] = None) -> Output[GetConnectMdmDataTypeResult]
    func LookupConnectMdmDataType(ctx *Context, args *LookupConnectMdmDataTypeArgs, opts ...InvokeOption) (*LookupConnectMdmDataTypeResult, error)
    func LookupConnectMdmDataTypeOutput(ctx *Context, args *LookupConnectMdmDataTypeOutputArgs, opts ...InvokeOption) LookupConnectMdmDataTypeResultOutput

    > Note: This function is named LookupConnectMdmDataType in the Go SDK.

    public static class GetConnectMdmDataType 
    {
        public static Task<GetConnectMdmDataTypeResult> InvokeAsync(GetConnectMdmDataTypeArgs args, InvokeOptions? opts = null)
        public static Output<GetConnectMdmDataTypeResult> Invoke(GetConnectMdmDataTypeInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetConnectMdmDataTypeResult> getConnectMdmDataType(GetConnectMdmDataTypeArgs args, InvokeOptions options)
    public static Output<GetConnectMdmDataTypeResult> getConnectMdmDataType(GetConnectMdmDataTypeArgs args, InvokeOptions options)
    
    fn::invoke:
      function: hsdp:index/getConnectMdmDataType:getConnectMdmDataType
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Name string
    The name of the device group
    PropositionId string
    The proposition to which the data type is associated with
    Id string
    Name string
    The name of the device group
    PropositionId string
    The proposition to which the data type is associated with
    Id string
    name String
    The name of the device group
    propositionId String
    The proposition to which the data type is associated with
    id String
    name string
    The name of the device group
    propositionId string
    The proposition to which the data type is associated with
    id string
    name str
    The name of the device group
    proposition_id str
    The proposition to which the data type is associated with
    id str
    name String
    The name of the device group
    propositionId String
    The proposition to which the data type is associated with
    id String

    getConnectMdmDataType Result

    The following output properties are available:

    Description string
    Guid string
    Id string
    Name string
    PropositionId string
    Tags List<string>
    Description string
    Guid string
    Id string
    Name string
    PropositionId string
    Tags []string
    description String
    guid String
    id String
    name String
    propositionId String
    tags List<String>
    description string
    guid string
    id string
    name string
    propositionId string
    tags string[]
    description str
    guid str
    id str
    name str
    proposition_id str
    tags Sequence[str]
    description String
    guid String
    id String
    name String
    propositionId String
    tags List<String>

    Package Details

    Repository
    hsdp philips-software/terraform-provider-hsdp
    License
    Notes
    This Pulumi package is based on the hsdp Terraform Provider.
    hsdp logo
    hsdp 0.65.3 published on Tuesday, Apr 15, 2025 by philips-software