1. Packages
  2. Zenduty Provider
  3. API Docs
  4. getRoles
zenduty 1.0.4 published on Wednesday, Apr 2, 2025 by zenduty

zenduty.getRoles

Explore with Pulumi AI

zenduty 1.0.4 published on Wednesday, Apr 2, 2025 by zenduty
import * as pulumi from "@pulumi/pulumi";
import * as zenduty from "@pulumi/zenduty";

const exampleroles = zenduty.getRoles({
    teamId: "",
});
Copy
import pulumi
import pulumi_zenduty as zenduty

exampleroles = zenduty.get_roles(team_id="")
Copy
package main

import (
	"github.com/pulumi/pulumi-terraform-provider/sdks/go/zenduty/zenduty"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := zenduty.LookupRoles(ctx, &zenduty.LookupRolesArgs{
			TeamId: "",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Zenduty = Pulumi.Zenduty;

return await Deployment.RunAsync(() => 
{
    var exampleroles = Zenduty.GetRoles.Invoke(new()
    {
        TeamId = "",
    });

});
Copy
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.GetRolesArgs;
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 exampleroles = ZendutyFunctions.getRoles(GetRolesArgs.builder()
            .teamId("")
            .build());

    }
}
Copy
variables:
  exampleroles:
    fn::invoke:
      function: zenduty:getRoles
      arguments:
        teamId: ""
Copy
import * as pulumi from "@pulumi/pulumi";

export const zendutyRoles = data.zenduty_roles.exampleroles.roles;
Copy
import pulumi

pulumi.export("zendutyRoles", data["zenduty_roles"]["exampleroles"]["roles"])
Copy
package main

import (
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		ctx.Export("zendutyRoles", data.Zenduty_roles.Exampleroles.Roles)
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;

return await Deployment.RunAsync(() => 
{
    return new Dictionary<string, object?>
    {
        ["zendutyRoles"] = data.Zenduty_roles.Exampleroles.Roles,
    };
});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
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) {
        ctx.export("zendutyRoles", data.zenduty_roles().exampleroles().roles());
    }
}
Copy
outputs:
  zendutyRoles: ${data.zenduty_roles.exampleroles.roles}
Copy

Using getRoles

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 getRoles(args: GetRolesArgs, opts?: InvokeOptions): Promise<GetRolesResult>
function getRolesOutput(args: GetRolesOutputArgs, opts?: InvokeOptions): Output<GetRolesResult>
Copy
def get_roles(id: Optional[str] = None,
              team_id: Optional[str] = None,
              opts: Optional[InvokeOptions] = None) -> GetRolesResult
def get_roles_output(id: Optional[pulumi.Input[str]] = None,
              team_id: Optional[pulumi.Input[str]] = None,
              opts: Optional[InvokeOptions] = None) -> Output[GetRolesResult]
Copy
func LookupRoles(ctx *Context, args *LookupRolesArgs, opts ...InvokeOption) (*LookupRolesResult, error)
func LookupRolesOutput(ctx *Context, args *LookupRolesOutputArgs, opts ...InvokeOption) LookupRolesResultOutput
Copy

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

public static class GetRoles 
{
    public static Task<GetRolesResult> InvokeAsync(GetRolesArgs args, InvokeOptions? opts = null)
    public static Output<GetRolesResult> Invoke(GetRolesInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetRolesResult> getRoles(GetRolesArgs args, InvokeOptions options)
public static Output<GetRolesResult> getRoles(GetRolesArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: zenduty:index/getRoles:getRoles
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

TeamId This property is required. string
The UniqueID of the team to query.
Id string
TeamId This property is required. string
The UniqueID of the team to query.
Id string
teamId This property is required. String
The UniqueID of the team to query.
id String
teamId This property is required. string
The UniqueID of the team to query.
id string
team_id This property is required. str
The UniqueID of the team to query.
id str
teamId This property is required. String
The UniqueID of the team to query.
id String

getRoles Result

The following output properties are available:

Supporting Types

GetRolesRole

CreationDate This property is required. string
Description This property is required. string
The description of the role.
Rank This property is required. double
The rank of the role.
Team This property is required. string
The unique_id of team that the role belongs to.
Title This property is required. string
The title of the role.
UniqueId This property is required. string
The unique_id of the role.
CreationDate This property is required. string
Description This property is required. string
The description of the role.
Rank This property is required. float64
The rank of the role.
Team This property is required. string
The unique_id of team that the role belongs to.
Title This property is required. string
The title of the role.
UniqueId This property is required. string
The unique_id of the role.
creationDate This property is required. String
description This property is required. String
The description of the role.
rank This property is required. Double
The rank of the role.
team This property is required. String
The unique_id of team that the role belongs to.
title This property is required. String
The title of the role.
uniqueId This property is required. String
The unique_id of the role.
creationDate This property is required. string
description This property is required. string
The description of the role.
rank This property is required. number
The rank of the role.
team This property is required. string
The unique_id of team that the role belongs to.
title This property is required. string
The title of the role.
uniqueId This property is required. string
The unique_id of the role.
creation_date This property is required. str
description This property is required. str
The description of the role.
rank This property is required. float
The rank of the role.
team This property is required. str
The unique_id of team that the role belongs to.
title This property is required. str
The title of the role.
unique_id This property is required. str
The unique_id of the role.
creationDate This property is required. String
description This property is required. String
The description of the role.
rank This property is required. Number
The rank of the role.
team This property is required. String
The unique_id of team that the role belongs to.
title This property is required. String
The title of the role.
uniqueId This property is required. String
The unique_id of the role.

Package Details

Repository
zenduty zenduty/terraform-provider-zenduty
License
Notes
This Pulumi package is based on the zenduty Terraform Provider.
zenduty 1.0.4 published on Wednesday, Apr 2, 2025 by zenduty