1. Packages
  2. Packages
  3. Dynatrace
  4. API Docs
  5. getService
Viewing docs for Dynatrace v0.36.0
published on Tuesday, Jun 9, 2026 by Pulumiverse
dynatrace logo
Viewing docs for Dynatrace v0.36.0
published on Tuesday, Jun 9, 2026 by Pulumiverse

    The data source API endpoint has been deprecated, please use dynatrace.getEntity with entity type SERVICE instead.

    The service data source allows the service ID to be retrieved by its name and optionally tags / tag-value pairs.

    • name queries for all services with the specified name
    • tags (optional) refers to the tags that need to be present for the service (inclusive)

    If multiple services match the given criteria, the first result will be retrieved.

    Using getService

    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 getService(args: GetServiceArgs, opts?: InvokeOptions): Promise<GetServiceResult>
    function getServiceOutput(args: GetServiceOutputArgs, opts?: InvokeOptions): Output<GetServiceResult>
    def get_service(name: Optional[str] = None,
                    operator: Optional[str] = None,
                    tags: Optional[Sequence[str]] = None,
                    opts: Optional[InvokeOptions] = None) -> GetServiceResult
    def get_service_output(name: pulumi.Input[Optional[str]] = None,
                    operator: pulumi.Input[Optional[str]] = None,
                    tags: pulumi.Input[Optional[Sequence[pulumi.Input[str]]]] = None,
                    opts: Optional[InvokeOptions] = None) -> Output[GetServiceResult]
    func GetService(ctx *Context, args *GetServiceArgs, opts ...InvokeOption) (*GetServiceResult, error)
    func GetServiceOutput(ctx *Context, args *GetServiceOutputArgs, opts ...InvokeOption) GetServiceResultOutput

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

    public static class GetService 
    {
        public static Task<GetServiceResult> InvokeAsync(GetServiceArgs args, InvokeOptions? opts = null)
        public static Output<GetServiceResult> Invoke(GetServiceInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetServiceResult> getService(GetServiceArgs args, InvokeOptions options)
    public static Output<GetServiceResult> getService(GetServiceArgs args, InvokeOptions options)
    
    fn::invoke:
      function: dynatrace:index/getService:getService
      arguments:
        # arguments dictionary
    data "dynatrace_getservice" "name" {
        # arguments
    }

    The following arguments are supported:

    Name string
    Operator string
    Tags List<string>
    Required tags of the service to find
    Name string
    Operator string
    Tags []string
    Required tags of the service to find
    name string
    operator string
    tags list(string)
    Required tags of the service to find
    name String
    operator String
    tags List<String>
    Required tags of the service to find
    name string
    operator string
    tags string[]
    Required tags of the service to find
    name str
    operator str
    tags Sequence[str]
    Required tags of the service to find
    name String
    operator String
    tags List<String>
    Required tags of the service to find

    getService Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    Operator string
    Tags List<string>
    Required tags of the service to find
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    Operator string
    Tags []string
    Required tags of the service to find
    id string
    The provider-assigned unique ID for this managed resource.
    name string
    operator string
    tags list(string)
    Required tags of the service to find
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    operator String
    tags List<String>
    Required tags of the service to find
    id string
    The provider-assigned unique ID for this managed resource.
    name string
    operator string
    tags string[]
    Required tags of the service to find
    id str
    The provider-assigned unique ID for this managed resource.
    name str
    operator str
    tags Sequence[str]
    Required tags of the service to find
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    operator String
    tags List<String>
    Required tags of the service to find

    Package Details

    Repository
    dynatrace pulumiverse/pulumi-dynatrace
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the dynatrace Terraform Provider.
    dynatrace logo
    Viewing docs for Dynatrace v0.36.0
    published on Tuesday, Jun 9, 2026 by Pulumiverse

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial