Viewing docs for Volcengine v0.0.47
published on Friday, Mar 13, 2026 by Volcengine
published on Friday, Mar 13, 2026 by Volcengine
Viewing docs for Volcengine v0.0.47
published on Friday, Mar 13, 2026 by Volcengine
published on Friday, Mar 13, 2026 by Volcengine
Deprecated: volcengine.vmp.Contacts has been deprecated in favor of volcengine.vmp.getContacts
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 Contacts
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 contacts(args: ContactsArgs, opts?: InvokeOptions): Promise<ContactsResult>
function contactsOutput(args: ContactsOutputArgs, opts?: InvokeOptions): Output<ContactsResult>def contacts(email: Optional[str] = None,
ids: Optional[Sequence[str]] = None,
name: Optional[str] = None,
output_file: Optional[str] = None,
sort_by: Optional[str] = None,
sort_order: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> ContactsResult
def 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,
sort_by: Optional[pulumi.Input[str]] = None,
sort_order: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[ContactsResult]func Contacts(ctx *Context, args *ContactsArgs, opts ...InvokeOption) (*ContactsResult, error)
func ContactsOutput(ctx *Context, args *ContactsOutputArgs, opts ...InvokeOption) ContactsResultOutputpublic static class Contacts
{
public static Task<ContactsResult> InvokeAsync(ContactsArgs args, InvokeOptions? opts = null)
public static Output<ContactsResult> Invoke(ContactsInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<ContactsResult> contacts(ContactsArgs args, InvokeOptions options)
public static Output<ContactsResult> contacts(ContactsArgs args, InvokeOptions options)
fn::invoke:
function: volcengine:vmp:Contacts
arguments:
# arguments dictionaryThe following arguments are supported:
- 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.
- sort_
by str - The sort field of query.
- sort_
order str - The sort order of query.
Contacts Result
The following output properties are available:
- Contacts
List<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 - Sort
By string - Sort
Order string
- Contacts
[]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 - Sort
By string - Sort
Order string
- contacts
List<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 - sort
By String - sort
Order String
- contacts
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 - sort
By string - sort
Order string
- contacts
Sequence[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 - sort_
by str - sort_
order 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 - sort
By String - sort
Order String
Supporting Types
ContactsContact
- Contact
Group List<string>Ids - A list of contact group ids.
- Create
Time string - The create time of contact.
- Ding
Talk List<ContactsBot Webhooks 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<ContactsWebhooks 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<ContactsContact Phone Number> - The phone number of contact.
- We
Com List<ContactsBot Webhooks Contact We Com Bot Webhook> - The we com bot webhook of contact.
- Webhooks
List<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 []ContactsBot Webhooks 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 []ContactsWebhooks 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 []ContactsContact Phone Number - The phone number of contact.
- We
Com []ContactsBot Webhooks Contact We Com Bot Webhook - The we com bot webhook of contact.
- Webhooks
[]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<ContactsBot Webhooks 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<ContactsWebhooks 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<ContactsContact Phone Number> - The phone number of contact.
- we
Com List<ContactsBot Webhooks Contact We Com Bot Webhook> - The we com bot webhook of contact.
- webhooks
List<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 ContactsBot Webhooks 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 ContactsWebhooks 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 ContactsContact Phone Number[] - The phone number of contact.
- we
Com ContactsBot Webhooks Contact We Com Bot Webhook[] - The we com bot webhook of contact.
- webhooks
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[Contactsbot_ webhooks 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[Contactswebhooks 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[ContactsContact Phone Number] - The phone number of contact.
- we_
com_ Sequence[Contactsbot_ webhooks Contact We Com Bot Webhook] - The we com bot webhook of contact.
- webhooks
Sequence[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.
ContactsContactDingTalkBotWebhook
- 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.
ContactsContactLarkBotWebhook
- address str
- The address of webhook.
- secret_
key str - The secret key of webhook.
ContactsContactPhoneNumber
- 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.
ContactsContactWeComBotWebhook
- address str
- The address of webhook.
- at_
user_ Sequence[str]ids - The ids of user.
ContactsContactWebhook
Package Details
- Repository
- volcengine volcengine/pulumi-volcengine
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
volcengineTerraform Provider.
Viewing docs for Volcengine v0.0.47
published on Friday, Mar 13, 2026 by Volcengine
published on Friday, Mar 13, 2026 by Volcengine
