Volcengine v0.0.34 published on Wednesday, Jul 2, 2025 by Volcengine
volcengine.vmp.getContacts
Explore with Pulumi AI
Use this data source to query detailed information of vmp contacts
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as volcengine from "@pulumi/volcengine";
import * as volcengine from "@volcengine/pulumi";
const fooContact = new volcengine.vmp.Contact("fooContact", {
email: "acctest1@tftest.com",
webhook: {
address: "https://www.acctest1.com",
},
larkBotWebhook: {
address: "https://www.acctest1.com",
},
dingTalkBotWebhook: {
address: "https://www.dingacctest1.com",
atMobiles: ["18046891812"],
},
phoneNumber: {
countryCode: "+86",
number: "18310101010",
},
});
const fooContacts = volcengine.vmp.getContactsOutput({
ids: [fooContact.id],
});
import pulumi
import pulumi_volcengine as volcengine
foo_contact = volcengine.vmp.Contact("fooContact",
email="acctest1@tftest.com",
webhook=volcengine.vmp.ContactWebhookArgs(
address="https://www.acctest1.com",
),
lark_bot_webhook=volcengine.vmp.ContactLarkBotWebhookArgs(
address="https://www.acctest1.com",
),
ding_talk_bot_webhook=volcengine.vmp.ContactDingTalkBotWebhookArgs(
address="https://www.dingacctest1.com",
at_mobiles=["18046891812"],
),
phone_number=volcengine.vmp.ContactPhoneNumberArgs(
country_code="+86",
number="18310101010",
))
foo_contacts = volcengine.vmp.get_contacts_output(ids=[foo_contact.id])
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/vmp"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
fooContact, err := vmp.NewContact(ctx, "fooContact", &vmp.ContactArgs{
Email: pulumi.String("acctest1@tftest.com"),
Webhook: &vmp.ContactWebhookArgs{
Address: pulumi.String("https://www.acctest1.com"),
},
LarkBotWebhook: &vmp.ContactLarkBotWebhookArgs{
Address: pulumi.String("https://www.acctest1.com"),
},
DingTalkBotWebhook: &vmp.ContactDingTalkBotWebhookArgs{
Address: pulumi.String("https://www.dingacctest1.com"),
AtMobiles: pulumi.StringArray{
pulumi.String("18046891812"),
},
},
PhoneNumber: &vmp.ContactPhoneNumberArgs{
CountryCode: pulumi.String("+86"),
Number: pulumi.String("18310101010"),
},
})
if err != nil {
return err
}
_ = vmp.GetContactsOutput(ctx, vmp.GetContactsOutputArgs{
Ids: pulumi.StringArray{
fooContact.ID(),
},
}, nil)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Volcengine = Pulumi.Volcengine;
return await Deployment.RunAsync(() =>
{
var fooContact = new Volcengine.Vmp.Contact("fooContact", new()
{
Email = "acctest1@tftest.com",
Webhook = new Volcengine.Vmp.Inputs.ContactWebhookArgs
{
Address = "https://www.acctest1.com",
},
LarkBotWebhook = new Volcengine.Vmp.Inputs.ContactLarkBotWebhookArgs
{
Address = "https://www.acctest1.com",
},
DingTalkBotWebhook = new Volcengine.Vmp.Inputs.ContactDingTalkBotWebhookArgs
{
Address = "https://www.dingacctest1.com",
AtMobiles = new[]
{
"18046891812",
},
},
PhoneNumber = new Volcengine.Vmp.Inputs.ContactPhoneNumberArgs
{
CountryCode = "+86",
Number = "18310101010",
},
});
var fooContacts = Volcengine.Vmp.GetContacts.Invoke(new()
{
Ids = new[]
{
fooContact.Id,
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.volcengine.vmp.Contact;
import com.pulumi.volcengine.vmp.ContactArgs;
import com.pulumi.volcengine.vmp.inputs.ContactWebhookArgs;
import com.pulumi.volcengine.vmp.inputs.ContactLarkBotWebhookArgs;
import com.pulumi.volcengine.vmp.inputs.ContactDingTalkBotWebhookArgs;
import com.pulumi.volcengine.vmp.inputs.ContactPhoneNumberArgs;
import com.pulumi.volcengine.vmp.VmpFunctions;
import com.pulumi.volcengine.vmp.inputs.GetContactsArgs;
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) {
var fooContact = new Contact("fooContact", ContactArgs.builder()
.email("acctest1@tftest.com")
.webhook(ContactWebhookArgs.builder()
.address("https://www.acctest1.com")
.build())
.larkBotWebhook(ContactLarkBotWebhookArgs.builder()
.address("https://www.acctest1.com")
.build())
.dingTalkBotWebhook(ContactDingTalkBotWebhookArgs.builder()
.address("https://www.dingacctest1.com")
.atMobiles("18046891812")
.build())
.phoneNumber(ContactPhoneNumberArgs.builder()
.countryCode("+86")
.number("18310101010")
.build())
.build());
final var fooContacts = VmpFunctions.getContacts(GetContactsArgs.builder()
.ids(fooContact.id())
.build());
}
}
resources:
fooContact:
type: volcengine:vmp:Contact
properties:
email: acctest1@tftest.com
webhook:
address: https://www.acctest1.com
larkBotWebhook:
address: https://www.acctest1.com
dingTalkBotWebhook:
address: https://www.dingacctest1.com
atMobiles:
- '18046891812'
phoneNumber:
countryCode: '+86'
number: '18310101010'
variables:
fooContacts:
fn::invoke:
Function: volcengine:vmp:getContacts
Arguments:
ids:
- ${fooContact.id}
Using getContacts
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 getContacts(args: GetContactsArgs, opts?: InvokeOptions): Promise<GetContactsResult>
function getContactsOutput(args: GetContactsOutputArgs, opts?: InvokeOptions): Output<GetContactsResult>
def get_contacts(email: Optional[str] = None,
ids: Optional[Sequence[str]] = None,
name: Optional[str] = None,
output_file: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetContactsResult
def get_contacts_output(email: Optional[pulumi.Input[str]] = None,
ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
name: Optional[pulumi.Input[str]] = None,
output_file: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetContactsResult]
func GetContacts(ctx *Context, args *GetContactsArgs, opts ...InvokeOption) (*GetContactsResult, error)
func GetContactsOutput(ctx *Context, args *GetContactsOutputArgs, opts ...InvokeOption) GetContactsResultOutput
> Note: This function is named GetContacts
in the Go SDK.
public static class GetContacts
{
public static Task<GetContactsResult> InvokeAsync(GetContactsArgs args, InvokeOptions? opts = null)
public static Output<GetContactsResult> Invoke(GetContactsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetContactsResult> getContacts(GetContactsArgs args, InvokeOptions options)
public static Output<GetContactsResult> getContacts(GetContactsArgs args, InvokeOptions options)
fn::invoke:
function: volcengine:vmp/getContacts:getContacts
arguments:
# arguments dictionary
The following arguments are supported:
- Email string
- The email of contact.
- Ids List<string>
- A list of contact ids.
- Name string
- The name of contact.
- Output
File string - File name where to save data source results.
- Email string
- The email of contact.
- Ids []string
- A list of contact ids.
- Name string
- The name of contact.
- Output
File string - File name where to save data source results.
- email String
- The email of contact.
- ids List<String>
- A list of contact ids.
- name String
- The name of contact.
- output
File String - File name where to save data source results.
- email string
- The email of contact.
- ids string[]
- A list of contact ids.
- name string
- The name of contact.
- output
File string - File name where to save data source results.
- email str
- The email of contact.
- ids Sequence[str]
- A list of contact ids.
- name str
- The name of contact.
- output_
file str - File name where to save data source results.
- email String
- The email of contact.
- ids List<String>
- A list of contact ids.
- name String
- The name of contact.
- output
File String - File name where to save data source results.
getContacts Result
The following output properties are available:
- Contacts
List<Get
Contacts Contact> - The collection of query.
- Id string
- The provider-assigned unique ID for this managed resource.
- Total
Count int - The total count of query.
- Email string
- The email of contact.
- Ids List<string>
- Name string
- The name of contact.
- Output
File string
- Contacts
[]Get
Contacts Contact - The collection of query.
- Id string
- The provider-assigned unique ID for this managed resource.
- Total
Count int - The total count of query.
- Email string
- The email of contact.
- Ids []string
- Name string
- The name of contact.
- Output
File string
- contacts
List<Get
Contacts Contact> - The collection of query.
- id String
- The provider-assigned unique ID for this managed resource.
- total
Count Integer - The total count of query.
- email String
- The email of contact.
- ids List<String>
- name String
- The name of contact.
- output
File String
- contacts
Get
Contacts Contact[] - The collection of query.
- id string
- The provider-assigned unique ID for this managed resource.
- total
Count number - The total count of query.
- email string
- The email of contact.
- ids string[]
- name string
- The name of contact.
- output
File string
- contacts
Sequence[Get
Contacts Contact] - The collection of query.
- id str
- The provider-assigned unique ID for this managed resource.
- total_
count int - The total count of query.
- email str
- The email of contact.
- ids Sequence[str]
- name str
- The name of contact.
- output_
file str
- contacts List<Property Map>
- The collection of query.
- id String
- The provider-assigned unique ID for this managed resource.
- total
Count Number - The total count of query.
- email String
- The email of contact.
- ids List<String>
- name String
- The name of contact.
- output
File String
Supporting Types
GetContactsContact
- Contact
Group List<string>Ids - A list of contact group ids.
- Create
Time string - The create time of contact.
- Ding
Talk List<GetBot Webhooks Contacts Contact Ding Talk Bot Webhook> - The ding talk bot webhook of contact.
- Email string
- The email of contact.
- Email
Active bool - Whether the email of contact active.
- Id string
- The ID of contact.
- Lark
Bot List<GetWebhooks Contacts Contact Lark Bot Webhook> - The lark bot webhook of contact.
- Name string
- The name of contact.
- Phone
Number boolActive - Whether phone number is active.
- Phone
Numbers List<GetContacts Contact Phone Number> - The phone number of contact.
- We
Com List<GetBot Webhooks Contacts Contact We Com Bot Webhook> - The we com bot webhook of contact.
- Webhooks
List<Get
Contacts Contact Webhook> - The webhook of contact.
- Contact
Group []stringIds - A list of contact group ids.
- Create
Time string - The create time of contact.
- Ding
Talk []GetBot Webhooks Contacts Contact Ding Talk Bot Webhook - The ding talk bot webhook of contact.
- Email string
- The email of contact.
- Email
Active bool - Whether the email of contact active.
- Id string
- The ID of contact.
- Lark
Bot []GetWebhooks Contacts Contact Lark Bot Webhook - The lark bot webhook of contact.
- Name string
- The name of contact.
- Phone
Number boolActive - Whether phone number is active.
- Phone
Numbers []GetContacts Contact Phone Number - The phone number of contact.
- We
Com []GetBot Webhooks Contacts Contact We Com Bot Webhook - The we com bot webhook of contact.
- Webhooks
[]Get
Contacts Contact Webhook - The webhook of contact.
- contact
Group List<String>Ids - A list of contact group ids.
- create
Time String - The create time of contact.
- ding
Talk List<GetBot Webhooks Contacts Contact Ding Talk Bot Webhook> - The ding talk bot webhook of contact.
- email String
- The email of contact.
- email
Active Boolean - Whether the email of contact active.
- id String
- The ID of contact.
- lark
Bot List<GetWebhooks Contacts Contact Lark Bot Webhook> - The lark bot webhook of contact.
- name String
- The name of contact.
- phone
Number BooleanActive - Whether phone number is active.
- phone
Numbers List<GetContacts Contact Phone Number> - The phone number of contact.
- we
Com List<GetBot Webhooks Contacts Contact We Com Bot Webhook> - The we com bot webhook of contact.
- webhooks
List<Get
Contacts Contact Webhook> - The webhook of contact.
- contact
Group string[]Ids - A list of contact group ids.
- create
Time string - The create time of contact.
- ding
Talk GetBot Webhooks Contacts Contact Ding Talk Bot Webhook[] - The ding talk bot webhook of contact.
- email string
- The email of contact.
- email
Active boolean - Whether the email of contact active.
- id string
- The ID of contact.
- lark
Bot GetWebhooks Contacts Contact Lark Bot Webhook[] - The lark bot webhook of contact.
- name string
- The name of contact.
- phone
Number booleanActive - Whether phone number is active.
- phone
Numbers GetContacts Contact Phone Number[] - The phone number of contact.
- we
Com GetBot Webhooks Contacts Contact We Com Bot Webhook[] - The we com bot webhook of contact.
- webhooks
Get
Contacts Contact Webhook[] - The webhook of contact.
- contact_
group_ Sequence[str]ids - A list of contact group ids.
- create_
time str - The create time of contact.
- ding_
talk_ Sequence[Getbot_ webhooks Contacts Contact Ding Talk Bot Webhook] - The ding talk bot webhook of contact.
- email str
- The email of contact.
- email_
active bool - Whether the email of contact active.
- id str
- The ID of contact.
- lark_
bot_ Sequence[Getwebhooks Contacts Contact Lark Bot Webhook] - The lark bot webhook of contact.
- name str
- The name of contact.
- phone_
number_ boolactive - Whether phone number is active.
- phone_
numbers Sequence[GetContacts Contact Phone Number] - The phone number of contact.
- we_
com_ Sequence[Getbot_ webhooks Contacts Contact We Com Bot Webhook] - The we com bot webhook of contact.
- webhooks
Sequence[Get
Contacts Contact Webhook] - The webhook of contact.
- contact
Group List<String>Ids - A list of contact group ids.
- create
Time String - The create time of contact.
- ding
Talk List<Property Map>Bot Webhooks - The ding talk bot webhook of contact.
- email String
- The email of contact.
- email
Active Boolean - Whether the email of contact active.
- id String
- The ID of contact.
- lark
Bot List<Property Map>Webhooks - The lark bot webhook of contact.
- name String
- The name of contact.
- phone
Number BooleanActive - Whether phone number is active.
- phone
Numbers List<Property Map> - The phone number of contact.
- we
Com List<Property Map>Bot Webhooks - The we com bot webhook of contact.
- webhooks List<Property Map>
- The webhook of contact.
GetContactsContactDingTalkBotWebhook
- address str
- The address of webhook.
- at_
mobiles Sequence[str] - The mobiles of user.
- at_
user_ Sequence[str]ids - The ids of user.
- secret_
key str - The secret key of webhook.
GetContactsContactLarkBotWebhook
- address str
- The address of webhook.
- secret_
key str - The secret key of webhook.
GetContactsContactPhoneNumber
- Country
Code string - The country code of phone number.
- Number string
- The number of phone number.
- Country
Code string - The country code of phone number.
- Number string
- The number of phone number.
- country
Code String - The country code of phone number.
- number String
- The number of phone number.
- country
Code string - The country code of phone number.
- number string
- The number of phone number.
- country_
code str - The country code of phone number.
- number str
- The number of phone number.
- country
Code String - The country code of phone number.
- number String
- The number of phone number.
GetContactsContactWeComBotWebhook
- address str
- The address of webhook.
- at_
user_ Sequence[str]ids - The ids of user.
GetContactsContactWebhook
Package Details
- Repository
- volcengine volcengine/pulumi-volcengine
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
volcengine
Terraform Provider.