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

volcengine.alb.ServerGroupServers

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 alb server group servers

    Example Usage

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Volcengine = Pulumi.Volcengine;
    
    return await Deployment.RunAsync(() => 
    {
        var foo = Volcengine.Alb.ServerGroupServers.Invoke(new()
        {
            ServerGroupId = "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.ServerGroupServers(ctx, &alb.ServerGroupServersArgs{
    			ServerGroupId: "rsp-1g7317vrcx3pc2zbhq4c3i6a2",
    		}, 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.alb.AlbFunctions;
    import com.pulumi.volcengine.alb.inputs.ServerGroupServersArgs;
    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.ServerGroupServers(ServerGroupServersArgs.builder()
                .serverGroupId("rsp-1g7317vrcx3pc2zbhq4c3i6a2")
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_volcengine as volcengine
    
    foo = volcengine.alb.server_group_servers(server_group_id="rsp-1g7317vrcx3pc2zbhq4c3i6a2")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as volcengine from "@pulumi/volcengine";
    
    const foo = volcengine.alb.ServerGroupServers({
        serverGroupId: "rsp-1g7317vrcx3pc2zbhq4c3i6a2",
    });
    
    variables:
      foo:
        fn::invoke:
          Function: volcengine:alb:ServerGroupServers
          Arguments:
            serverGroupId: rsp-1g7317vrcx3pc2zbhq4c3i6a2
    

    Using ServerGroupServers

    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 serverGroupServers(args: ServerGroupServersArgs, opts?: InvokeOptions): Promise<ServerGroupServersResult>
    function serverGroupServersOutput(args: ServerGroupServersOutputArgs, opts?: InvokeOptions): Output<ServerGroupServersResult>
    def server_group_servers(output_file: Optional[str] = None,
                             server_group_id: Optional[str] = None,
                             opts: Optional[InvokeOptions] = None) -> ServerGroupServersResult
    def server_group_servers_output(output_file: Optional[pulumi.Input[str]] = None,
                             server_group_id: Optional[pulumi.Input[str]] = None,
                             opts: Optional[InvokeOptions] = None) -> Output[ServerGroupServersResult]
    func ServerGroupServers(ctx *Context, args *ServerGroupServersArgs, opts ...InvokeOption) (*ServerGroupServersResult, error)
    func ServerGroupServersOutput(ctx *Context, args *ServerGroupServersOutputArgs, opts ...InvokeOption) ServerGroupServersResultOutput
    public static class ServerGroupServers 
    {
        public static Task<ServerGroupServersResult> InvokeAsync(ServerGroupServersArgs args, InvokeOptions? opts = null)
        public static Output<ServerGroupServersResult> Invoke(ServerGroupServersInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<ServerGroupServersResult> serverGroupServers(ServerGroupServersArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: volcengine:alb:ServerGroupServers
      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.

    ServerGroupServers Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    ServerGroupId string
    Servers List<ServerGroupServersServer>
    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 []ServerGroupServersServer
    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<ServerGroupServersServer>
    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 ServerGroupServersServer[]
    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[ServerGroupServersServer]
    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

    ServerGroupServersServer

    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.26 published on Friday, Sep 13, 2024 by Volcengine