1. Packages
  2. Volcengine
  3. API Docs
  4. alb
  5. getServerGroupServers
Volcengine v0.0.31 published on Monday, May 12, 2025 by Volcengine

volcengine.alb.getServerGroupServers

Explore with Pulumi AI

volcengine logo
Volcengine v0.0.31 published on Monday, May 12, 2025 by Volcengine

    Use this data source to query detailed information of alb server group servers

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as volcengine from "@pulumi/volcengine";
    
    const foo = volcengine.alb.getServerGroupServers({
        serverGroupId: "rsp-1g7317vrcx3pc2zbhq4c3i6a2",
    });
    
    import pulumi
    import pulumi_volcengine as volcengine
    
    foo = volcengine.alb.get_server_group_servers(server_group_id="rsp-1g7317vrcx3pc2zbhq4c3i6a2")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/alb"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := alb.GetServerGroupServers(ctx, &alb.GetServerGroupServersArgs{
    			ServerGroupId: "rsp-1g7317vrcx3pc2zbhq4c3i6a2",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Volcengine = Pulumi.Volcengine;
    
    return await Deployment.RunAsync(() => 
    {
        var foo = Volcengine.Alb.GetServerGroupServers.Invoke(new()
        {
            ServerGroupId = "rsp-1g7317vrcx3pc2zbhq4c3i6a2",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.volcengine.alb.AlbFunctions;
    import com.pulumi.volcengine.alb.inputs.GetServerGroupServersArgs;
    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 = AlbFunctions.getServerGroupServers(GetServerGroupServersArgs.builder()
                .serverGroupId("rsp-1g7317vrcx3pc2zbhq4c3i6a2")
                .build());
    
        }
    }
    
    variables:
      foo:
        fn::invoke:
          Function: volcengine:alb:getServerGroupServers
          Arguments:
            serverGroupId: rsp-1g7317vrcx3pc2zbhq4c3i6a2
    

    Using getServerGroupServers

    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 getServerGroupServers(args: GetServerGroupServersArgs, opts?: InvokeOptions): Promise<GetServerGroupServersResult>
    function getServerGroupServersOutput(args: GetServerGroupServersOutputArgs, opts?: InvokeOptions): Output<GetServerGroupServersResult>
    def get_server_group_servers(output_file: Optional[str] = None,
                                 server_group_id: Optional[str] = None,
                                 opts: Optional[InvokeOptions] = None) -> GetServerGroupServersResult
    def get_server_group_servers_output(output_file: Optional[pulumi.Input[str]] = None,
                                 server_group_id: Optional[pulumi.Input[str]] = None,
                                 opts: Optional[InvokeOptions] = None) -> Output[GetServerGroupServersResult]
    func GetServerGroupServers(ctx *Context, args *GetServerGroupServersArgs, opts ...InvokeOption) (*GetServerGroupServersResult, error)
    func GetServerGroupServersOutput(ctx *Context, args *GetServerGroupServersOutputArgs, opts ...InvokeOption) GetServerGroupServersResultOutput

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

    public static class GetServerGroupServers 
    {
        public static Task<GetServerGroupServersResult> InvokeAsync(GetServerGroupServersArgs args, InvokeOptions? opts = null)
        public static Output<GetServerGroupServersResult> Invoke(GetServerGroupServersInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetServerGroupServersResult> getServerGroupServers(GetServerGroupServersArgs args, InvokeOptions options)
    public static Output<GetServerGroupServersResult> getServerGroupServers(GetServerGroupServersArgs args, InvokeOptions options)
    
    fn::invoke:
      function: volcengine:alb/getServerGroupServers:getServerGroupServers
      arguments:
        # arguments dictionary

    The following arguments are supported:

    ServerGroupId string
    The ID of the ServerGroup.
    OutputFile string
    File name where to save data source results.
    ServerGroupId string
    The ID of the ServerGroup.
    OutputFile string
    File name where to save data source results.
    serverGroupId String
    The ID of the ServerGroup.
    outputFile String
    File name where to save data source results.
    serverGroupId string
    The ID of the ServerGroup.
    outputFile string
    File name where to save data source results.
    server_group_id str
    The ID of the ServerGroup.
    output_file str
    File name where to save data source results.
    serverGroupId String
    The ID of the ServerGroup.
    outputFile String
    File name where to save data source results.

    getServerGroupServers Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    ServerGroupId string
    Servers List<GetServerGroupServersServer>
    The server list of ServerGroup.
    TotalCount int
    The total count of ServerGroupServer query.
    OutputFile string
    Id string
    The provider-assigned unique ID for this managed resource.
    ServerGroupId string
    Servers []GetServerGroupServersServer
    The server list of ServerGroup.
    TotalCount int
    The total count of ServerGroupServer query.
    OutputFile string
    id String
    The provider-assigned unique ID for this managed resource.
    serverGroupId String
    servers List<GetServerGroupServersServer>
    The server list of ServerGroup.
    totalCount Integer
    The total count of ServerGroupServer query.
    outputFile String
    id string
    The provider-assigned unique ID for this managed resource.
    serverGroupId string
    servers GetServerGroupServersServer[]
    The server list of ServerGroup.
    totalCount number
    The total count of ServerGroupServer query.
    outputFile string
    id str
    The provider-assigned unique ID for this managed resource.
    server_group_id str
    servers Sequence[GetServerGroupServersServer]
    The server list of ServerGroup.
    total_count int
    The total count of ServerGroupServer query.
    output_file str
    id String
    The provider-assigned unique ID for this managed resource.
    serverGroupId String
    servers List<Property Map>
    The server list of ServerGroup.
    totalCount Number
    The total count of ServerGroupServer query.
    outputFile String

    Supporting Types

    GetServerGroupServersServer

    Description string
    The description of the instance.
    Id string
    The server id of instance in ServerGroup.
    InstanceId string
    The ID of ecs instance or the network card bound to ecs instance.
    Ip string
    The private ip of the instance.
    Port int
    The port receiving request.
    ServerId string
    The server id of instance in ServerGroup.
    Type string
    The type of instance. Optional choice contains ecs, eni.
    Weight int
    The weight of the instance.
    Description string
    The description of the instance.
    Id string
    The server id of instance in ServerGroup.
    InstanceId string
    The ID of ecs instance or the network card bound to ecs instance.
    Ip string
    The private ip of the instance.
    Port int
    The port receiving request.
    ServerId string
    The server id of instance in ServerGroup.
    Type string
    The type of instance. Optional choice contains ecs, eni.
    Weight int
    The weight of the instance.
    description String
    The description of the instance.
    id String
    The server id of instance in ServerGroup.
    instanceId String
    The ID of ecs instance or the network card bound to ecs instance.
    ip String
    The private ip of the instance.
    port Integer
    The port receiving request.
    serverId String
    The server id of instance in ServerGroup.
    type String
    The type of instance. Optional choice contains ecs, eni.
    weight Integer
    The weight of the instance.
    description string
    The description of the instance.
    id string
    The server id of instance in ServerGroup.
    instanceId string
    The ID of ecs instance or the network card bound to ecs instance.
    ip string
    The private ip of the instance.
    port number
    The port receiving request.
    serverId string
    The server id of instance in ServerGroup.
    type string
    The type of instance. Optional choice contains ecs, eni.
    weight number
    The weight of the instance.
    description str
    The description of the instance.
    id str
    The server id of instance in ServerGroup.
    instance_id str
    The ID of ecs instance or the network card bound to ecs instance.
    ip str
    The private ip of the instance.
    port int
    The port receiving request.
    server_id str
    The server id of instance in ServerGroup.
    type str
    The type of instance. Optional choice contains ecs, eni.
    weight int
    The weight of the instance.
    description String
    The description of the instance.
    id String
    The server id of instance in ServerGroup.
    instanceId String
    The ID of ecs instance or the network card bound to ecs instance.
    ip String
    The private ip of the instance.
    port Number
    The port receiving request.
    serverId String
    The server id of instance in ServerGroup.
    type String
    The type of instance. Optional choice contains ecs, eni.
    weight Number
    The weight of the instance.

    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.31 published on Monday, May 12, 2025 by Volcengine