Viewing docs for zenduty 2.2.0
published on Friday, Oct 30, 2026 by zenduty
published on Friday, Oct 30, 2026 by zenduty
zenduty
Viewing docs for zenduty 2.2.0
published on Friday, Oct 30, 2026 by zenduty
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 dictionarydata "zenduty_get_service_contexts" "name" {
# arguments
}The following arguments are supported:
- service_
id string - The unique_id of the service.
- team_
id 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
getServiceContexts Result
The following output properties are available:
- Id string
- Service
Contexts List<GetService Contexts Service Context> - The list of links, each with:
- Service
Id string - Team
Id string
- Id string
- Service
Contexts []GetService Contexts Service Context - The list of links, each with:
- Service
Id string - Team
Id string
- id string
- service_
contexts list(object) - The list of links, each with:
- service_
id string - team_
id string
- id String
- service
Contexts List<GetService Contexts Service Context> - The list of links, each with:
- service
Id String - team
Id String
- id string
- service
Contexts GetService Contexts Service Context[] - The list of links, each with:
- service
Id string - team
Id string
- id str
- service_
contexts Sequence[GetService Contexts Service Context] - The list of links, each with:
- service_
id str - team_
id str
- id String
- service
Contexts List<Property Map> - The list of links, each with:
- service
Id String - team
Id String
Supporting Types
GetServiceContextsServiceContext
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
Package Details
- Repository
- zenduty zenduty/terraform-provider-zenduty
- License
- Notes
- This Pulumi package is based on the
zendutyTerraform Provider.
zenduty
Viewing docs for zenduty 2.2.0
published on Friday, Oct 30, 2026 by zenduty
published on Friday, Oct 30, 2026 by zenduty