1. Packages
  2. Volcengine
  3. API Docs
  4. cloud_monitor
  5. Contacts
Volcengine v0.0.26 published on Friday, Sep 13, 2024 by Volcengine

volcengine.cloud_monitor.Contacts

Explore with Pulumi AI

volcengine logo
Volcengine v0.0.26 published on Friday, Sep 13, 2024 by Volcengine

    Use this data source to query detailed information of cloud monitor contacts

    Example Usage

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Volcengine = Pulumi.Volcengine;
    
    return await Deployment.RunAsync(() => 
    {
        var foo = Volcengine.Cloud_monitor.Contacts.Invoke(new()
        {
            Ids = new[]
            {
                "17******516",
                "1712**********0",
            },
        });
    
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/cloud_monitor"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := cloud_monitor.Contacts(ctx, &cloud_monitor.ContactsArgs{
    			Ids: []string{
    				"17******516",
    				"1712**********0",
    			},
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.volcengine.cloud_monitor.Cloud_monitorFunctions;
    import com.pulumi.volcengine.cloud_monitor.inputs.ContactsArgs;
    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 foo = Cloud_monitorFunctions.Contacts(ContactsArgs.builder()
                .ids(            
                    "17******516",
                    "1712**********0")
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_volcengine as volcengine
    
    foo = volcengine.cloud_monitor.contacts(ids=[
        "17******516",
        "1712**********0",
    ])
    
    import * as pulumi from "@pulumi/pulumi";
    import * as volcengine from "@pulumi/volcengine";
    
    const foo = volcengine.cloud_monitor.Contacts({
        ids: [
            "17******516",
            "1712**********0",
        ],
    });
    
    variables:
      foo:
        fn::invoke:
          Function: volcengine:cloud_monitor:Contacts
          Arguments:
            ids:
              - 17******516
              - 1712**********0
    

    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(ids: Optional[Sequence[str]] = None,
                 output_file: Optional[str] = None,
                 opts: Optional[InvokeOptions] = None) -> ContactsResult
    def contacts_output(ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                 output_file: 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) ContactsResultOutput
    public 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)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: volcengine:cloud_monitor:Contacts
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Ids List<string>
    A list of Contact IDs.
    OutputFile string
    File name where to save data source results.
    Ids []string
    A list of Contact IDs.
    OutputFile string
    File name where to save data source results.
    ids List<String>
    A list of Contact IDs.
    outputFile String
    File name where to save data source results.
    ids string[]
    A list of Contact IDs.
    outputFile string
    File name where to save data source results.
    ids Sequence[str]
    A list of Contact IDs.
    output_file str
    File name where to save data source results.
    ids List<String>
    A list of Contact IDs.
    outputFile String
    File name where to save data source results.

    Contacts Result

    The following output properties are available:

    Contacts List<ContactsContact>
    The collection of query.
    Id string
    The provider-assigned unique ID for this managed resource.
    Ids List<string>
    TotalCount int
    The total count of query.
    OutputFile string
    Contacts []ContactsContact
    The collection of query.
    Id string
    The provider-assigned unique ID for this managed resource.
    Ids []string
    TotalCount int
    The total count of query.
    OutputFile string
    contacts List<ContactsContact>
    The collection of query.
    id String
    The provider-assigned unique ID for this managed resource.
    ids List<String>
    totalCount Integer
    The total count of query.
    outputFile String
    contacts ContactsContact[]
    The collection of query.
    id string
    The provider-assigned unique ID for this managed resource.
    ids string[]
    totalCount number
    The total count of query.
    outputFile string
    contacts Sequence[ContactsContact]
    The collection of query.
    id str
    The provider-assigned unique ID for this managed resource.
    ids Sequence[str]
    total_count int
    The total count of query.
    output_file str
    contacts List<Property Map>
    The collection of query.
    id String
    The provider-assigned unique ID for this managed resource.
    ids List<String>
    totalCount Number
    The total count of query.
    outputFile String

    Supporting Types

    ContactsContact

    Email string
    The email of contact.
    Id string
    The ID of contact.
    Name string
    The name of contact.
    Phone string
    The phone of contact.
    Email string
    The email of contact.
    Id string
    The ID of contact.
    Name string
    The name of contact.
    Phone string
    The phone of contact.
    email String
    The email of contact.
    id String
    The ID of contact.
    name String
    The name of contact.
    phone String
    The phone of contact.
    email string
    The email of contact.
    id string
    The ID of contact.
    name string
    The name of contact.
    phone string
    The phone of contact.
    email str
    The email of contact.
    id str
    The ID of contact.
    name str
    The name of contact.
    phone str
    The phone of contact.
    email String
    The email of contact.
    id String
    The ID of contact.
    name String
    The name of contact.
    phone String
    The phone of contact.

    Package Details

    Repository
    volcengine volcengine/pulumi-volcengine
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the volcengine Terraform Provider.
    volcengine logo
    Volcengine v0.0.26 published on Friday, Sep 13, 2024 by Volcengine