zenduty 1.0.3 published on Monday, Mar 24, 2025 by zenduty
zenduty.getUsercontact
Explore with Pulumi AI
import * as pulumi from "@pulumi/pulumi";
import * as zenduty from "@pulumi/zenduty";
const user1 = zenduty.getUser({
email: "demouser@gmail.com",
});
import pulumi
import pulumi_zenduty as zenduty
user1 = zenduty.get_user(email="demouser@gmail.com")
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.LookupUser(ctx, &zenduty.LookupUserArgs{
Email: "demouser@gmail.com",
}, 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 user1 = Zenduty.GetUser.Invoke(new()
{
Email = "demouser@gmail.com",
});
});
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.GetUserArgs;
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 user1 = ZendutyFunctions.getUser(GetUserArgs.builder()
.email("demouser@gmail.com")
.build());
}
}
variables:
user1:
fn::invoke:
function: zenduty:getUser
arguments:
email: demouser@gmail.com
import * as pulumi from "@pulumi/pulumi";
import * as zenduty from "@pulumi/zenduty";
const exampleusercontact = zenduty.getUsercontact({
userId: data.zenduty_user.user1.users[0].username,
contactType: 1,
});
import pulumi
import pulumi_zenduty as zenduty
exampleusercontact = zenduty.get_usercontact(user_id=data["zenduty_user"]["user1"]["users"][0]["username"],
contact_type=1)
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.GetUsercontact(ctx, &zenduty.GetUsercontactArgs{
UserId: data.Zenduty_user.User1.Users[0].Username,
ContactType: 1,
}, 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 exampleusercontact = Zenduty.GetUsercontact.Invoke(new()
{
UserId = data.Zenduty_user.User1.Users[0].Username,
ContactType = 1,
});
});
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.GetUsercontactArgs;
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 exampleusercontact = ZendutyFunctions.getUsercontact(GetUsercontactArgs.builder()
.userId(data.zenduty_user().user1().users()[0].username())
.contactType(1)
.build());
}
}
variables:
exampleusercontact:
fn::invoke:
function: zenduty:getUsercontact
arguments:
userId: ${data.zenduty_user.user1.users[0].username}
contactType: 1
import * as pulumi from "@pulumi/pulumi";
export const usercontact = data.zenduty_usercontact.exampleusercontact;
import pulumi
pulumi.export("usercontact", data["zenduty_usercontact"]["exampleusercontact"])
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
ctx.Export("usercontact", data.Zenduty_usercontact.Exampleusercontact)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
return await Deployment.RunAsync(() =>
{
return new Dictionary<string, object?>
{
["usercontact"] = data.Zenduty_usercontact.Exampleusercontact,
};
});
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("usercontact", data.zenduty_usercontact().exampleusercontact());
}
}
outputs:
usercontact: ${data.zenduty_usercontact.exampleusercontact}
Using getUsercontact
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 getUsercontact(args: GetUsercontactArgs, opts?: InvokeOptions): Promise<GetUsercontactResult>
function getUsercontactOutput(args: GetUsercontactOutputArgs, opts?: InvokeOptions): Output<GetUsercontactResult>
def get_usercontact(contact_type: Optional[float] = None,
id: Optional[str] = None,
user_id: Optional[str] = None,
value: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetUsercontactResult
def get_usercontact_output(contact_type: Optional[pulumi.Input[float]] = None,
id: Optional[pulumi.Input[str]] = None,
user_id: Optional[pulumi.Input[str]] = None,
value: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetUsercontactResult]
func GetUsercontact(ctx *Context, args *GetUsercontactArgs, opts ...InvokeOption) (*GetUsercontactResult, error)
func GetUsercontactOutput(ctx *Context, args *GetUsercontactOutputArgs, opts ...InvokeOption) GetUsercontactResultOutput
> Note: This function is named GetUsercontact
in the Go SDK.
public static class GetUsercontact
{
public static Task<GetUsercontactResult> InvokeAsync(GetUsercontactArgs args, InvokeOptions? opts = null)
public static Output<GetUsercontactResult> Invoke(GetUsercontactInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetUsercontactResult> getUsercontact(GetUsercontactArgs args, InvokeOptions options)
public static Output<GetUsercontactResult> getUsercontact(GetUsercontactArgs args, InvokeOptions options)
fn::invoke:
function: zenduty:index/getUsercontact:getUsercontact
arguments:
# arguments dictionary
The following arguments are supported:
- Contact
Type double - The contact type of the user to query.
values are
1
Email,2
SMS,3
Phone,4
Slack,5
MS Teams - User
Id string - The username of the user to query.
- Id string
- Unique ID of the contact.
- Value string
- The value of the contact type.
- Contact
Type float64 - The contact type of the user to query.
values are
1
Email,2
SMS,3
Phone,4
Slack,5
MS Teams - User
Id string - The username of the user to query.
- Id string
- Unique ID of the contact.
- Value string
- The value of the contact type.
- contact
Type Double - The contact type of the user to query.
values are
1
Email,2
SMS,3
Phone,4
Slack,5
MS Teams - user
Id String - The username of the user to query.
- id String
- Unique ID of the contact.
- value String
- The value of the contact type.
- contact
Type number - The contact type of the user to query.
values are
1
Email,2
SMS,3
Phone,4
Slack,5
MS Teams - user
Id string - The username of the user to query.
- id string
- Unique ID of the contact.
- value string
- The value of the contact type.
- contact_
type float - The contact type of the user to query.
values are
1
Email,2
SMS,3
Phone,4
Slack,5
MS Teams - user_
id str - The username of the user to query.
- id str
- Unique ID of the contact.
- value str
- The value of the contact type.
- contact
Type Number - The contact type of the user to query.
values are
1
Email,2
SMS,3
Phone,4
Slack,5
MS Teams - user
Id String - The username of the user to query.
- id String
- Unique ID of the contact.
- value String
- The value of the contact type.
getUsercontact Result
The following output properties are available:
- Contact
Type double - Id string
- Unique ID of the contact.
- Name string
- The name of the contact.
- User
Id string - Value string
- The value of the contact.
- Contact
Type float64 - Id string
- Unique ID of the contact.
- Name string
- The name of the contact.
- User
Id string - Value string
- The value of the contact.
- contact
Type Double - id String
- Unique ID of the contact.
- name String
- The name of the contact.
- user
Id String - value String
- The value of the contact.
- contact
Type number - id string
- Unique ID of the contact.
- name string
- The name of the contact.
- user
Id string - value string
- The value of the contact.
- contact_
type float - id str
- Unique ID of the contact.
- name str
- The name of the contact.
- user_
id str - value str
- The value of the contact.
- contact
Type Number - id String
- Unique ID of the contact.
- name String
- The name of the contact.
- user
Id String - value String
- The value of the contact.
Package Details
- Repository
- zenduty zenduty/terraform-provider-zenduty
- License
- Notes
- This Pulumi package is based on the
zenduty
Terraform Provider.