flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud
flexibleengine.getSmsSourceServers
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 dictionaryThe following arguments are supported:
getSmsSourceServers Result
The following output properties are available:
- Id string
- The ID of the source server.
- Servers
List<Get
Sms Source Servers Server> - 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<Get
Sms Source Servers Server> - 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
- Agent
Version string - The version of Agent installed on the source server.
- Connected bool
- Whether the source server is properly connected to SMS.
- Disks
List<Get
Sms Source Servers Server Disk> - 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.
- Os
Type string - The OS type of the source server. The value can be WINDOWS and LINUX.
- Os
Version string - The OS version of the source server, for example, UBUNTU_20_4_64BIT.
- Registered
Time 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.
- Agent
Version string - The version of Agent installed on the source server.
- Connected bool
- Whether the source server is properly connected to SMS.
- Disks
[]Get
Sms Source Servers Server Disk - 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.
- Os
Type string - The OS type of the source server. The value can be WINDOWS and LINUX.
- Os
Version string - The OS version of the source server, for example, UBUNTU_20_4_64BIT.
- Registered
Time 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.
- agent
Version String - The version of Agent installed on the source server.
- connected Boolean
- Whether the source server is properly connected to SMS.
- disks
List<Get
Sms Source Servers Server Disk> - 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.
- os
Type String - The OS type of the source server. The value can be WINDOWS and LINUX.
- os
Version String - The OS version of the source server, for example, UBUNTU_20_4_64BIT.
- registered
Time 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.
- agent
Version string - The version of Agent installed on the source server.
- connected boolean
- Whether the source server is properly connected to SMS.
- disks
Get
Sms Source Servers Server Disk[] - 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.
- os
Type string - The OS type of the source server. The value can be WINDOWS and LINUX.
- os
Version string - The OS version of the source server, for example, UBUNTU_20_4_64BIT.
- registered
Time 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[Get
Sms Source Servers Server Disk] - 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.
- agent
Version 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.
- os
Type String - The OS type of the source server. The value can be WINDOWS and LINUX.
- os
Version String - The OS version of the source server, for example, UBUNTU_20_4_64BIT.
- registered
Time 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
- Device
Type 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.
- Device
Type 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.
- device
Type 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.
- device
Type 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.
- device
Type 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
flexibleengineTerraform Provider.
flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud
