1. Packages
  2. Flexibleengine Provider
  3. API Docs
  4. getSmsSourceServers
flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud

flexibleengine.getSmsSourceServers

Explore with Pulumi AI

flexibleengine logo
flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud

    Use this data source to get a list of SMS source servers.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as flexibleengine from "@pulumi/flexibleengine";
    
    const config = new pulumi.Config();
    const serverName = config.requireObject("serverName");
    const demo = flexibleengine.getSmsSourceServers({
        name: serverName,
    });
    
    import pulumi
    import pulumi_flexibleengine as flexibleengine
    
    config = pulumi.Config()
    server_name = config.require_object("serverName")
    demo = flexibleengine.get_sms_source_servers(name=server_name)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/flexibleengine/flexibleengine"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		cfg := config.New(ctx, "")
    		serverName := cfg.RequireObject("serverName")
    		_, err := flexibleengine.GetSmsSourceServers(ctx, &flexibleengine.GetSmsSourceServersArgs{
    			Name: pulumi.StringRef(serverName),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Flexibleengine = Pulumi.Flexibleengine;
    
    return await Deployment.RunAsync(() => 
    {
        var config = new Config();
        var serverName = config.RequireObject<dynamic>("serverName");
        var demo = Flexibleengine.GetSmsSourceServers.Invoke(new()
        {
            Name = serverName,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.flexibleengine.FlexibleengineFunctions;
    import com.pulumi.flexibleengine.inputs.GetSmsSourceServersArgs;
    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 config = ctx.config();
            final var serverName = config.get("serverName");
            final var demo = FlexibleengineFunctions.getSmsSourceServers(GetSmsSourceServersArgs.builder()
                .name(serverName)
                .build());
    
        }
    }
    
    configuration:
      serverName:
        type: dynamic
    variables:
      demo:
        fn::invoke:
          function: flexibleengine:getSmsSourceServers
          arguments:
            name: ${serverName}
    

    Using getSmsSourceServers

    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 getSmsSourceServers(args: GetSmsSourceServersArgs, opts?: InvokeOptions): Promise<GetSmsSourceServersResult>
    function getSmsSourceServersOutput(args: GetSmsSourceServersOutputArgs, opts?: InvokeOptions): Output<GetSmsSourceServersResult>
    def get_sms_source_servers(id: Optional[str] = None,
                               ip: Optional[str] = None,
                               name: Optional[str] = None,
                               state: Optional[str] = None,
                               opts: Optional[InvokeOptions] = None) -> GetSmsSourceServersResult
    def get_sms_source_servers_output(id: Optional[pulumi.Input[str]] = None,
                               ip: Optional[pulumi.Input[str]] = None,
                               name: Optional[pulumi.Input[str]] = None,
                               state: Optional[pulumi.Input[str]] = None,
                               opts: Optional[InvokeOptions] = None) -> Output[GetSmsSourceServersResult]
    func GetSmsSourceServers(ctx *Context, args *GetSmsSourceServersArgs, opts ...InvokeOption) (*GetSmsSourceServersResult, error)
    func GetSmsSourceServersOutput(ctx *Context, args *GetSmsSourceServersOutputArgs, opts ...InvokeOption) GetSmsSourceServersResultOutput

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

    public static class GetSmsSourceServers 
    {
        public static Task<GetSmsSourceServersResult> InvokeAsync(GetSmsSourceServersArgs args, InvokeOptions? opts = null)
        public static Output<GetSmsSourceServersResult> Invoke(GetSmsSourceServersInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetSmsSourceServersResult> getSmsSourceServers(GetSmsSourceServersArgs args, InvokeOptions options)
    public static Output<GetSmsSourceServersResult> getSmsSourceServers(GetSmsSourceServersArgs args, InvokeOptions options)
    
    fn::invoke:
      function: flexibleengine:index/getSmsSourceServers:getSmsSourceServers
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Id string
    Specifies the ID of the source server.
    Ip string
    Specifies the IP address of the source server.
    Name string
    Specifies the name of the source server.
    State string
    Specifies the status of the source server.
    Id string
    Specifies the ID of the source server.
    Ip string
    Specifies the IP address of the source server.
    Name string
    Specifies the name of the source server.
    State string
    Specifies the status of the source server.
    id String
    Specifies the ID of the source server.
    ip String
    Specifies the IP address of the source server.
    name String
    Specifies the name of the source server.
    state String
    Specifies the status of the source server.
    id string
    Specifies the ID of the source server.
    ip string
    Specifies the IP address of the source server.
    name string
    Specifies the name of the source server.
    state string
    Specifies the status of the source server.
    id str
    Specifies the ID of the source server.
    ip str
    Specifies the IP address of the source server.
    name str
    Specifies the name of the source server.
    state str
    Specifies the status of the source server.
    id String
    Specifies the ID of the source server.
    ip String
    Specifies the IP address of the source server.
    name String
    Specifies the name of the source server.
    state String
    Specifies the status of the source server.

    getSmsSourceServers Result

    The following output properties are available:

    Id string
    The ID of the source server.
    Servers List<GetSmsSourceServersServer>
    An array of SMS source servers found. The servers object structure is documented below.
    Ip string
    The IP address of the source server.
    Name string
    The disk name, for example, /dev/vda.
    State string
    The status of the source server.
    Id string
    The ID of the source server.
    Servers []GetSmsSourceServersServer
    An array of SMS source servers found. The servers object structure is documented below.
    Ip string
    The IP address of the source server.
    Name string
    The disk name, for example, /dev/vda.
    State string
    The status of the source server.
    id String
    The ID of the source server.
    servers List<GetSmsSourceServersServer>
    An array of SMS source servers found. The servers object structure is documented below.
    ip String
    The IP address of the source server.
    name String
    The disk name, for example, /dev/vda.
    state String
    The status of the source server.
    id string
    The ID of the source server.
    servers GetSmsSourceServersServer[]
    An array of SMS source servers found. The servers object structure is documented below.
    ip string
    The IP address of the source server.
    name string
    The disk name, for example, /dev/vda.
    state string
    The status of the source server.
    id str
    The ID of the source server.
    servers Sequence[GetSmsSourceServersServer]
    An array of SMS source servers found. The servers object structure is documented below.
    ip str
    The IP address of the source server.
    name str
    The disk name, for example, /dev/vda.
    state str
    The status of the source server.
    id String
    The ID of the source server.
    servers List<Property Map>
    An array of SMS source servers found. The servers object structure is documented below.
    ip String
    The IP address of the source server.
    name String
    The disk name, for example, /dev/vda.
    state String
    The status of the source server.

    Supporting Types

    GetSmsSourceServersServer

    AgentVersion string
    The version of Agent installed on the source server.
    Connected bool
    Whether the source server is properly connected to SMS.
    Disks List<GetSmsSourceServersServerDisk>
    The disk information of the source server. The disks object structure is documented below.
    Id string
    Specifies the ID of the source server.
    Ip string
    Specifies the IP address of the source server.
    Memory double
    The memory size in MB.
    Name string
    Specifies the name of the source server.
    OsType string
    The OS type of the source server. The value can be WINDOWS and LINUX.
    OsVersion string
    The OS version of the source server, for example, UBUNTU_20_4_64BIT.
    RegisteredTime string
    The UTC time when the source server is registered.
    State string
    Specifies the status of the source server.
    Vcpus double
    The vcpus count of the source server.
    AgentVersion string
    The version of Agent installed on the source server.
    Connected bool
    Whether the source server is properly connected to SMS.
    Disks []GetSmsSourceServersServerDisk
    The disk information of the source server. The disks object structure is documented below.
    Id string
    Specifies the ID of the source server.
    Ip string
    Specifies the IP address of the source server.
    Memory float64
    The memory size in MB.
    Name string
    Specifies the name of the source server.
    OsType string
    The OS type of the source server. The value can be WINDOWS and LINUX.
    OsVersion string
    The OS version of the source server, for example, UBUNTU_20_4_64BIT.
    RegisteredTime string
    The UTC time when the source server is registered.
    State string
    Specifies the status of the source server.
    Vcpus float64
    The vcpus count of the source server.
    agentVersion String
    The version of Agent installed on the source server.
    connected Boolean
    Whether the source server is properly connected to SMS.
    disks List<GetSmsSourceServersServerDisk>
    The disk information of the source server. The disks object structure is documented below.
    id String
    Specifies the ID of the source server.
    ip String
    Specifies the IP address of the source server.
    memory Double
    The memory size in MB.
    name String
    Specifies the name of the source server.
    osType String
    The OS type of the source server. The value can be WINDOWS and LINUX.
    osVersion String
    The OS version of the source server, for example, UBUNTU_20_4_64BIT.
    registeredTime String
    The UTC time when the source server is registered.
    state String
    Specifies the status of the source server.
    vcpus Double
    The vcpus count of the source server.
    agentVersion string
    The version of Agent installed on the source server.
    connected boolean
    Whether the source server is properly connected to SMS.
    disks GetSmsSourceServersServerDisk[]
    The disk information of the source server. The disks object structure is documented below.
    id string
    Specifies the ID of the source server.
    ip string
    Specifies the IP address of the source server.
    memory number
    The memory size in MB.
    name string
    Specifies the name of the source server.
    osType string
    The OS type of the source server. The value can be WINDOWS and LINUX.
    osVersion string
    The OS version of the source server, for example, UBUNTU_20_4_64BIT.
    registeredTime string
    The UTC time when the source server is registered.
    state string
    Specifies the status of the source server.
    vcpus number
    The vcpus count of the source server.
    agent_version str
    The version of Agent installed on the source server.
    connected bool
    Whether the source server is properly connected to SMS.
    disks Sequence[GetSmsSourceServersServerDisk]
    The disk information of the source server. The disks object structure is documented below.
    id str
    Specifies the ID of the source server.
    ip str
    Specifies the IP address of the source server.
    memory float
    The memory size in MB.
    name str
    Specifies the name of the source server.
    os_type str
    The OS type of the source server. The value can be WINDOWS and LINUX.
    os_version str
    The OS version of the source server, for example, UBUNTU_20_4_64BIT.
    registered_time str
    The UTC time when the source server is registered.
    state str
    Specifies the status of the source server.
    vcpus float
    The vcpus count of the source server.
    agentVersion String
    The version of Agent installed on the source server.
    connected Boolean
    Whether the source server is properly connected to SMS.
    disks List<Property Map>
    The disk information of the source server. The disks object structure is documented below.
    id String
    Specifies the ID of the source server.
    ip String
    Specifies the IP address of the source server.
    memory Number
    The memory size in MB.
    name String
    Specifies the name of the source server.
    osType String
    The OS type of the source server. The value can be WINDOWS and LINUX.
    osVersion String
    The OS version of the source server, for example, UBUNTU_20_4_64BIT.
    registeredTime String
    The UTC time when the source server is registered.
    state String
    Specifies the status of the source server.
    vcpus Number
    The vcpus count of the source server.

    GetSmsSourceServersServerDisk

    DeviceType string
    The disk type. The value can be BOOT, OS and NORMAL.
    Name string
    Specifies the name of the source server.
    Size double
    The disk size in MB.
    DeviceType string
    The disk type. The value can be BOOT, OS and NORMAL.
    Name string
    Specifies the name of the source server.
    Size float64
    The disk size in MB.
    deviceType String
    The disk type. The value can be BOOT, OS and NORMAL.
    name String
    Specifies the name of the source server.
    size Double
    The disk size in MB.
    deviceType string
    The disk type. The value can be BOOT, OS and NORMAL.
    name string
    Specifies the name of the source server.
    size number
    The disk size in MB.
    device_type str
    The disk type. The value can be BOOT, OS and NORMAL.
    name str
    Specifies the name of the source server.
    size float
    The disk size in MB.
    deviceType String
    The disk type. The value can be BOOT, OS and NORMAL.
    name String
    Specifies the name of the source server.
    size Number
    The disk size in MB.

    Package Details

    Repository
    flexibleengine flexibleenginecloud/terraform-provider-flexibleengine
    License
    Notes
    This Pulumi package is based on the flexibleengine Terraform Provider.
    flexibleengine logo
    flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud