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

hsdp.ConnectMdmServiceReference

Explore with Pulumi AI

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

    Create and manage MDM ServiceReference resources

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as hsdp from "@pulumi/hsdp";
    
    const someReference = new hsdp.ConnectMdmServiceReference("someReference", {
        description: "Terraform provisioned service reference",
        applicationId: data.hsdp_connect_mdm_application.app.id,
        standardServiceId: hsdp_connect_mdm_standard_service.service.id,
        matchingRule: "*",
        serviceActionIds: [hsdp_connect_mdm_service_action.some_action.id],
        bootstrapEnabled: true,
    });
    
    import pulumi
    import pulumi_hsdp as hsdp
    
    some_reference = hsdp.ConnectMdmServiceReference("someReference",
        description="Terraform provisioned service reference",
        application_id=data["hsdp_connect_mdm_application"]["app"]["id"],
        standard_service_id=hsdp_connect_mdm_standard_service["service"]["id"],
        matching_rule="*",
        service_action_ids=[hsdp_connect_mdm_service_action["some_action"]["id"]],
        bootstrap_enabled=True)
    
    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 {
    		_, err := hsdp.NewConnectMdmServiceReference(ctx, "someReference", &hsdp.ConnectMdmServiceReferenceArgs{
    			Description:       pulumi.String("Terraform provisioned service reference"),
    			ApplicationId:     pulumi.Any(data.Hsdp_connect_mdm_application.App.Id),
    			StandardServiceId: pulumi.Any(hsdp_connect_mdm_standard_service.Service.Id),
    			MatchingRule:      pulumi.String("*"),
    			ServiceActionIds: pulumi.StringArray{
    				hsdp_connect_mdm_service_action.Some_action.Id,
    			},
    			BootstrapEnabled: pulumi.Bool(true),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Hsdp = Pulumi.Hsdp;
    
    return await Deployment.RunAsync(() => 
    {
        var someReference = new Hsdp.ConnectMdmServiceReference("someReference", new()
        {
            Description = "Terraform provisioned service reference",
            ApplicationId = data.Hsdp_connect_mdm_application.App.Id,
            StandardServiceId = hsdp_connect_mdm_standard_service.Service.Id,
            MatchingRule = "*",
            ServiceActionIds = new[]
            {
                hsdp_connect_mdm_service_action.Some_action.Id,
            },
            BootstrapEnabled = true,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.hsdp.ConnectMdmServiceReference;
    import com.pulumi.hsdp.ConnectMdmServiceReferenceArgs;
    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) {
            var someReference = new ConnectMdmServiceReference("someReference", ConnectMdmServiceReferenceArgs.builder()
                .description("Terraform provisioned service reference")
                .applicationId(data.hsdp_connect_mdm_application().app().id())
                .standardServiceId(hsdp_connect_mdm_standard_service.service().id())
                .matchingRule("*")
                .serviceActionIds(hsdp_connect_mdm_service_action.some_action().id())
                .bootstrapEnabled(true)
                .build());
    
        }
    }
    
    resources:
      someReference:
        type: hsdp:ConnectMdmServiceReference
        properties:
          description: Terraform provisioned service reference
          applicationId: ${data.hsdp_connect_mdm_application.app.id}
          standardServiceId: ${hsdp_connect_mdm_standard_service.service.id}
          matchingRule: '*'
          serviceActionIds:
            - ${hsdp_connect_mdm_service_action.some_action.id}
          bootstrapEnabled: true
    

    Attributes reference

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

    • id - The ID reference of the service action (format: ServiceReference/${GUID})
    • guid - The GUID of the service action

    Create ConnectMdmServiceReference Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new ConnectMdmServiceReference(name: string, args: ConnectMdmServiceReferenceArgs, opts?: CustomResourceOptions);
    @overload
    def ConnectMdmServiceReference(resource_name: str,
                                   args: ConnectMdmServiceReferenceArgs,
                                   opts: Optional[ResourceOptions] = None)
    
    @overload
    def ConnectMdmServiceReference(resource_name: str,
                                   opts: Optional[ResourceOptions] = None,
                                   application_id: Optional[str] = None,
                                   service_action_ids: Optional[Sequence[str]] = None,
                                   standard_service_id: Optional[str] = None,
                                   bootstrap_enabled: Optional[bool] = None,
                                   connect_mdm_service_reference_id: Optional[str] = None,
                                   description: Optional[str] = None,
                                   matching_rule: Optional[str] = None,
                                   name: Optional[str] = None)
    func NewConnectMdmServiceReference(ctx *Context, name string, args ConnectMdmServiceReferenceArgs, opts ...ResourceOption) (*ConnectMdmServiceReference, error)
    public ConnectMdmServiceReference(string name, ConnectMdmServiceReferenceArgs args, CustomResourceOptions? opts = null)
    public ConnectMdmServiceReference(String name, ConnectMdmServiceReferenceArgs args)
    public ConnectMdmServiceReference(String name, ConnectMdmServiceReferenceArgs args, CustomResourceOptions options)
    
    type: hsdp:ConnectMdmServiceReference
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args ConnectMdmServiceReferenceArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args ConnectMdmServiceReferenceArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args ConnectMdmServiceReferenceArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ConnectMdmServiceReferenceArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ConnectMdmServiceReferenceArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var connectMdmServiceReferenceResource = new Hsdp.ConnectMdmServiceReference("connectMdmServiceReferenceResource", new()
    {
        ApplicationId = "string",
        ServiceActionIds = new[]
        {
            "string",
        },
        StandardServiceId = "string",
        BootstrapEnabled = false,
        ConnectMdmServiceReferenceId = "string",
        Description = "string",
        MatchingRule = "string",
        Name = "string",
    });
    
    example, err := hsdp.NewConnectMdmServiceReference(ctx, "connectMdmServiceReferenceResource", &hsdp.ConnectMdmServiceReferenceArgs{
    	ApplicationId: pulumi.String("string"),
    	ServiceActionIds: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	StandardServiceId:            pulumi.String("string"),
    	BootstrapEnabled:             pulumi.Bool(false),
    	ConnectMdmServiceReferenceId: pulumi.String("string"),
    	Description:                  pulumi.String("string"),
    	MatchingRule:                 pulumi.String("string"),
    	Name:                         pulumi.String("string"),
    })
    
    var connectMdmServiceReferenceResource = new ConnectMdmServiceReference("connectMdmServiceReferenceResource", ConnectMdmServiceReferenceArgs.builder()
        .applicationId("string")
        .serviceActionIds("string")
        .standardServiceId("string")
        .bootstrapEnabled(false)
        .connectMdmServiceReferenceId("string")
        .description("string")
        .matchingRule("string")
        .name("string")
        .build());
    
    connect_mdm_service_reference_resource = hsdp.ConnectMdmServiceReference("connectMdmServiceReferenceResource",
        application_id="string",
        service_action_ids=["string"],
        standard_service_id="string",
        bootstrap_enabled=False,
        connect_mdm_service_reference_id="string",
        description="string",
        matching_rule="string",
        name="string")
    
    const connectMdmServiceReferenceResource = new hsdp.ConnectMdmServiceReference("connectMdmServiceReferenceResource", {
        applicationId: "string",
        serviceActionIds: ["string"],
        standardServiceId: "string",
        bootstrapEnabled: false,
        connectMdmServiceReferenceId: "string",
        description: "string",
        matchingRule: "string",
        name: "string",
    });
    
    type: hsdp:ConnectMdmServiceReference
    properties:
        applicationId: string
        bootstrapEnabled: false
        connectMdmServiceReferenceId: string
        description: string
        matchingRule: string
        name: string
        serviceActionIds:
            - string
        standardServiceId: string
    

    ConnectMdmServiceReference Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The ConnectMdmServiceReference resource accepts the following input properties:

    ApplicationId string
    The application associated with this service reference
    ServiceActionIds List<string>
    ) The list of serviced action IDs
    StandardServiceId string
    Reference to a Standard Service
    BootstrapEnabled bool
    Wether or not to enable this for bootstrapping
    ConnectMdmServiceReferenceId string
    Description string
    A short description of the service action
    MatchingRule string
    The rule to use to match up the services
    Name string
    The name of the service action
    ApplicationId string
    The application associated with this service reference
    ServiceActionIds []string
    ) The list of serviced action IDs
    StandardServiceId string
    Reference to a Standard Service
    BootstrapEnabled bool
    Wether or not to enable this for bootstrapping
    ConnectMdmServiceReferenceId string
    Description string
    A short description of the service action
    MatchingRule string
    The rule to use to match up the services
    Name string
    The name of the service action
    applicationId String
    The application associated with this service reference
    serviceActionIds List<String>
    ) The list of serviced action IDs
    standardServiceId String
    Reference to a Standard Service
    bootstrapEnabled Boolean
    Wether or not to enable this for bootstrapping
    connectMdmServiceReferenceId String
    description String
    A short description of the service action
    matchingRule String
    The rule to use to match up the services
    name String
    The name of the service action
    applicationId string
    The application associated with this service reference
    serviceActionIds string[]
    ) The list of serviced action IDs
    standardServiceId string
    Reference to a Standard Service
    bootstrapEnabled boolean
    Wether or not to enable this for bootstrapping
    connectMdmServiceReferenceId string
    description string
    A short description of the service action
    matchingRule string
    The rule to use to match up the services
    name string
    The name of the service action
    application_id str
    The application associated with this service reference
    service_action_ids Sequence[str]
    ) The list of serviced action IDs
    standard_service_id str
    Reference to a Standard Service
    bootstrap_enabled bool
    Wether or not to enable this for bootstrapping
    connect_mdm_service_reference_id str
    description str
    A short description of the service action
    matching_rule str
    The rule to use to match up the services
    name str
    The name of the service action
    applicationId String
    The application associated with this service reference
    serviceActionIds List<String>
    ) The list of serviced action IDs
    standardServiceId String
    Reference to a Standard Service
    bootstrapEnabled Boolean
    Wether or not to enable this for bootstrapping
    connectMdmServiceReferenceId String
    description String
    A short description of the service action
    matchingRule String
    The rule to use to match up the services
    name String
    The name of the service action

    Outputs

    All input properties are implicitly available as output properties. Additionally, the ConnectMdmServiceReference resource produces the following output properties:

    Guid string
    Id string
    The provider-assigned unique ID for this managed resource.
    VersionId string
    Guid string
    Id string
    The provider-assigned unique ID for this managed resource.
    VersionId string
    guid String
    id String
    The provider-assigned unique ID for this managed resource.
    versionId String
    guid string
    id string
    The provider-assigned unique ID for this managed resource.
    versionId string
    guid str
    id str
    The provider-assigned unique ID for this managed resource.
    version_id str
    guid String
    id String
    The provider-assigned unique ID for this managed resource.
    versionId String

    Look up Existing ConnectMdmServiceReference Resource

    Get an existing ConnectMdmServiceReference resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: ConnectMdmServiceReferenceState, opts?: CustomResourceOptions): ConnectMdmServiceReference
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            application_id: Optional[str] = None,
            bootstrap_enabled: Optional[bool] = None,
            connect_mdm_service_reference_id: Optional[str] = None,
            description: Optional[str] = None,
            guid: Optional[str] = None,
            matching_rule: Optional[str] = None,
            name: Optional[str] = None,
            service_action_ids: Optional[Sequence[str]] = None,
            standard_service_id: Optional[str] = None,
            version_id: Optional[str] = None) -> ConnectMdmServiceReference
    func GetConnectMdmServiceReference(ctx *Context, name string, id IDInput, state *ConnectMdmServiceReferenceState, opts ...ResourceOption) (*ConnectMdmServiceReference, error)
    public static ConnectMdmServiceReference Get(string name, Input<string> id, ConnectMdmServiceReferenceState? state, CustomResourceOptions? opts = null)
    public static ConnectMdmServiceReference get(String name, Output<String> id, ConnectMdmServiceReferenceState state, CustomResourceOptions options)
    resources:  _:    type: hsdp:ConnectMdmServiceReference    get:      id: ${id}
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    ApplicationId string
    The application associated with this service reference
    BootstrapEnabled bool
    Wether or not to enable this for bootstrapping
    ConnectMdmServiceReferenceId string
    Description string
    A short description of the service action
    Guid string
    MatchingRule string
    The rule to use to match up the services
    Name string
    The name of the service action
    ServiceActionIds List<string>
    ) The list of serviced action IDs
    StandardServiceId string
    Reference to a Standard Service
    VersionId string
    ApplicationId string
    The application associated with this service reference
    BootstrapEnabled bool
    Wether or not to enable this for bootstrapping
    ConnectMdmServiceReferenceId string
    Description string
    A short description of the service action
    Guid string
    MatchingRule string
    The rule to use to match up the services
    Name string
    The name of the service action
    ServiceActionIds []string
    ) The list of serviced action IDs
    StandardServiceId string
    Reference to a Standard Service
    VersionId string
    applicationId String
    The application associated with this service reference
    bootstrapEnabled Boolean
    Wether or not to enable this for bootstrapping
    connectMdmServiceReferenceId String
    description String
    A short description of the service action
    guid String
    matchingRule String
    The rule to use to match up the services
    name String
    The name of the service action
    serviceActionIds List<String>
    ) The list of serviced action IDs
    standardServiceId String
    Reference to a Standard Service
    versionId String
    applicationId string
    The application associated with this service reference
    bootstrapEnabled boolean
    Wether or not to enable this for bootstrapping
    connectMdmServiceReferenceId string
    description string
    A short description of the service action
    guid string
    matchingRule string
    The rule to use to match up the services
    name string
    The name of the service action
    serviceActionIds string[]
    ) The list of serviced action IDs
    standardServiceId string
    Reference to a Standard Service
    versionId string
    application_id str
    The application associated with this service reference
    bootstrap_enabled bool
    Wether or not to enable this for bootstrapping
    connect_mdm_service_reference_id str
    description str
    A short description of the service action
    guid str
    matching_rule str
    The rule to use to match up the services
    name str
    The name of the service action
    service_action_ids Sequence[str]
    ) The list of serviced action IDs
    standard_service_id str
    Reference to a Standard Service
    version_id str
    applicationId String
    The application associated with this service reference
    bootstrapEnabled Boolean
    Wether or not to enable this for bootstrapping
    connectMdmServiceReferenceId String
    description String
    A short description of the service action
    guid String
    matchingRule String
    The rule to use to match up the services
    name String
    The name of the service action
    serviceActionIds List<String>
    ) The list of serviced action IDs
    standardServiceId String
    Reference to a Standard Service
    versionId 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