1. Registry
  2. Packages
  3. Zenduty Provider
  4. API Docs
  5. getServiceContexts
Viewing docs for zenduty 2.2.0
published on Friday, Oct 30, 2026 by zenduty
zenduty
Viewing docs for zenduty 2.2.0
published on Friday, Oct 30, 2026 by zenduty

    zenduty.getServiceContexts lists the context integrations attached to a service.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as zenduty from "@pulumi/zenduty";
    
    const api = zenduty.getServiceContexts({
        teamId: ops.id,
        serviceId: apiZendutyServices.id,
    });
    
    import pulumi
    import pulumi_zenduty as zenduty
    
    api = zenduty.get_service_contexts(team_id=ops["id"],
        service_id=api_zenduty_services["id"])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/zenduty/v2/zenduty"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := zenduty.GetServiceContexts(ctx, &zenduty.GetServiceContextsArgs{
    			TeamId:    ops.Id,
    			ServiceId: apiZendutyServices.Id,
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Zenduty = Pulumi.Zenduty;
    
    return await Deployment.RunAsync(() => 
    {
        var api = Zenduty.GetServiceContexts.Invoke(new()
        {
            TeamId = ops.Id,
            ServiceId = apiZendutyServices.Id,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.zenduty.ZendutyFunctions;
    import com.pulumi.zenduty.inputs.GetServiceContextsArgs;
    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 api = ZendutyFunctions.getServiceContexts(GetServiceContextsArgs.builder()
                .teamId(ops.id())
                .serviceId(apiZendutyServices.id())
                .build());
    
        }
    }
    
    variables:
      api:
        fn::invoke:
          function: zenduty:getServiceContexts
          arguments:
            teamId: ${ops.id}
            serviceId: ${apiZendutyServices.id}
    
    Example coming soon!
    

    Using getServiceContexts

    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 getServiceContexts(args: GetServiceContextsArgs, opts?: InvokeOptions): Promise<GetServiceContextsResult>
    function getServiceContextsOutput(args: GetServiceContextsOutputArgs, opts?: InvokeOutputOptions): Output<GetServiceContextsResult>
    def get_service_contexts(id: Optional[str] = None,
                             service_id: Optional[str] = None,
                             team_id: Optional[str] = None,
                             opts: Optional[InvokeOptions] = None) -> GetServiceContextsResult
    def get_service_contexts_output(id: pulumi.Input[Optional[str]] = None,
                             service_id: pulumi.Input[Optional[str]] = None,
                             team_id: pulumi.Input[Optional[str]] = None,
                             opts: Optional[InvokeOutputOptions] = None) -> Output[GetServiceContextsResult]
    func GetServiceContexts(ctx *Context, args *GetServiceContextsArgs, opts ...InvokeOption) (*GetServiceContextsResult, error)
    func GetServiceContextsOutput(ctx *Context, args *GetServiceContextsOutputArgs, opts ...InvokeOption) GetServiceContextsResultOutput

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

    public static class GetServiceContexts 
    {
        public static Task<GetServiceContextsResult> InvokeAsync(GetServiceContextsArgs args, InvokeOptions? opts = null)
        public static Output<GetServiceContextsResult> Invoke(GetServiceContextsInvokeArgs args, InvokeOptions? opts = null)
        public static Output<GetServiceContextsResult> Invoke(GetServiceContextsInvokeArgs args, InvokeOutputOptions opts)
    }
    public static CompletableFuture<GetServiceContextsResult> getServiceContexts(GetServiceContextsArgs args, InvokeOptions options)
    public static Output<GetServiceContextsResult> getServiceContexts(GetServiceContextsArgs args, InvokeOptions options)
    public static Output<GetServiceContextsResult> getServiceContexts(GetServiceContextsArgs args, InvokeOutputOptions options)
    
    fn::invoke:
      function: zenduty:index/getServiceContexts:getServiceContexts
      arguments:
        # arguments dictionary
    data "zenduty_get_service_contexts" "name" {
        # arguments
    }

    The following arguments are supported:

    ServiceId string
    The unique_id of the service.
    TeamId string
    The unique_id of the team.
    Id string
    ServiceId string
    The unique_id of the service.
    TeamId string
    The unique_id of the team.
    Id string
    service_id string
    The unique_id of the service.
    team_id string
    The unique_id of the team.
    id string
    serviceId String
    The unique_id of the service.
    teamId String
    The unique_id of the team.
    id String
    serviceId string
    The unique_id of the service.
    teamId string
    The unique_id of the team.
    id string
    service_id str
    The unique_id of the service.
    team_id str
    The unique_id of the team.
    id str
    serviceId String
    The unique_id of the service.
    teamId String
    The unique_id of the team.
    id String

    getServiceContexts Result

    The following output properties are available:

    Id string
    ServiceContexts List<GetServiceContextsServiceContext>
    The list of links, each with:
    ServiceId string
    TeamId string
    Id string
    ServiceContexts []GetServiceContextsServiceContext
    The list of links, each with:
    ServiceId string
    TeamId string
    id string
    service_contexts list(object)
    The list of links, each with:
    service_id string
    team_id string
    id String
    serviceContexts List<GetServiceContextsServiceContext>
    The list of links, each with:
    serviceId String
    teamId String
    id string
    serviceContexts GetServiceContextsServiceContext[]
    The list of links, each with:
    serviceId string
    teamId string
    id String
    serviceContexts List<Property Map>
    The list of links, each with:
    serviceId String
    teamId String

    Supporting Types

    GetServiceContextsServiceContext

    CreatedBy string
    Username of the creator.
    CreationDate string
    When the link was created.
    Integration string
    The unique_id of the context integration.
    UniqueId string
    The unique_id of the service context.
    CreatedBy string
    Username of the creator.
    CreationDate string
    When the link was created.
    Integration string
    The unique_id of the context integration.
    UniqueId string
    The unique_id of the service context.
    created_by string
    Username of the creator.
    creation_date string
    When the link was created.
    integration string
    The unique_id of the context integration.
    unique_id string
    The unique_id of the service context.
    createdBy String
    Username of the creator.
    creationDate String
    When the link was created.
    integration String
    The unique_id of the context integration.
    uniqueId String
    The unique_id of the service context.
    createdBy string
    Username of the creator.
    creationDate string
    When the link was created.
    integration string
    The unique_id of the context integration.
    uniqueId string
    The unique_id of the service context.
    created_by str
    Username of the creator.
    creation_date str
    When the link was created.
    integration str
    The unique_id of the context integration.
    unique_id str
    The unique_id of the service context.
    createdBy String
    Username of the creator.
    creationDate String
    When the link was created.
    integration String
    The unique_id of the context integration.
    uniqueId String
    The unique_id of the service context.

    Package Details

    Repository
    zenduty zenduty/terraform-provider-zenduty
    License
    Notes
    This Pulumi package is based on the zenduty Terraform Provider.
    zenduty
    Viewing docs for zenduty 2.2.0
    published on Friday, Oct 30, 2026 by zenduty

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial