1. Packages
  2. Volcengine
  3. API Docs
  4. alb
  5. ServerGroupServers
Volcengine v0.0.27 published on Tuesday, Dec 10, 2024 by Volcengine

volcengine.alb.ServerGroupServers

Explore with Pulumi AI

Volcengine v0.0.27 published on Tuesday, Dec 10, 2024 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.ServerGroupServers({
    serverGroupId: "rsp-1g7317vrcx3pc2zbhq4c3i6a2",
});
Copy
import pulumi
import pulumi_volcengine as volcengine

foo = volcengine.alb.server_group_servers(server_group_id="rsp-1g7317vrcx3pc2zbhq4c3i6a2")
Copy
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
	})
}
Copy
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",
    });

});
Copy
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());

    }
}
Copy
variables:
  foo:
    fn::invoke:
      Function: volcengine:alb:ServerGroupServers
      Arguments:
        serverGroupId: rsp-1g7317vrcx3pc2zbhq4c3i6a2
Copy

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>
Copy
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]
Copy
func ServerGroupServers(ctx *Context, args *ServerGroupServersArgs, opts ...InvokeOption) (*ServerGroupServersResult, error)
func ServerGroupServersOutput(ctx *Context, args *ServerGroupServersOutputArgs, opts ...InvokeOption) ServerGroupServersResultOutput
Copy
public static class ServerGroupServers 
{
    public static Task<ServerGroupServersResult> InvokeAsync(ServerGroupServersArgs args, InvokeOptions? opts = null)
    public static Output<ServerGroupServersResult> Invoke(ServerGroupServersInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<ServerGroupServersResult> serverGroupServers(ServerGroupServersArgs args, InvokeOptions options)
public static Output<ServerGroupServersResult> serverGroupServers(ServerGroupServersArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: volcengine:alb:ServerGroupServers
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

ServerGroupId This property is required. string
The ID of the ServerGroup.
OutputFile string
File name where to save data source results.
ServerGroupId This property is required. string
The ID of the ServerGroup.
OutputFile string
File name where to save data source results.
serverGroupId This property is required. String
The ID of the ServerGroup.
outputFile String
File name where to save data source results.
serverGroupId This property is required. string
The ID of the ServerGroup.
outputFile string
File name where to save data source results.
server_group_id This property is required. str
The ID of the ServerGroup.
output_file str
File name where to save data source results.
serverGroupId This property is required. 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 This property is required. string
The description of the instance.
Id This property is required. string
The server id of instance in ServerGroup.
InstanceId This property is required. string
The ID of ecs instance or the network card bound to ecs instance.
Ip This property is required. string
The private ip of the instance.
Port This property is required. int
The port receiving request.
ServerId This property is required. string
The server id of instance in ServerGroup.
Type This property is required. string
The type of instance. Optional choice contains ecs, eni.
Weight This property is required. int
The weight of the instance.
Description This property is required. string
The description of the instance.
Id This property is required. string
The server id of instance in ServerGroup.
InstanceId This property is required. string
The ID of ecs instance or the network card bound to ecs instance.
Ip This property is required. string
The private ip of the instance.
Port This property is required. int
The port receiving request.
ServerId This property is required. string
The server id of instance in ServerGroup.
Type This property is required. string
The type of instance. Optional choice contains ecs, eni.
Weight This property is required. int
The weight of the instance.
description This property is required. String
The description of the instance.
id This property is required. String
The server id of instance in ServerGroup.
instanceId This property is required. String
The ID of ecs instance or the network card bound to ecs instance.
ip This property is required. String
The private ip of the instance.
port This property is required. Integer
The port receiving request.
serverId This property is required. String
The server id of instance in ServerGroup.
type This property is required. String
The type of instance. Optional choice contains ecs, eni.
weight This property is required. Integer
The weight of the instance.
description This property is required. string
The description of the instance.
id This property is required. string
The server id of instance in ServerGroup.
instanceId This property is required. string
The ID of ecs instance or the network card bound to ecs instance.
ip This property is required. string
The private ip of the instance.
port This property is required. number
The port receiving request.
serverId This property is required. string
The server id of instance in ServerGroup.
type This property is required. string
The type of instance. Optional choice contains ecs, eni.
weight This property is required. number
The weight of the instance.
description This property is required. str
The description of the instance.
id This property is required. str
The server id of instance in ServerGroup.
instance_id This property is required. str
The ID of ecs instance or the network card bound to ecs instance.
ip This property is required. str
The private ip of the instance.
port This property is required. int
The port receiving request.
server_id This property is required. str
The server id of instance in ServerGroup.
type This property is required. str
The type of instance. Optional choice contains ecs, eni.
weight This property is required. int
The weight of the instance.
description This property is required. String
The description of the instance.
id This property is required. String
The server id of instance in ServerGroup.
instanceId This property is required. String
The ID of ecs instance or the network card bound to ecs instance.
ip This property is required. String
The private ip of the instance.
port This property is required. Number
The port receiving request.
serverId This property is required. String
The server id of instance in ServerGroup.
type This property is required. String
The type of instance. Optional choice contains ecs, eni.
weight This property is required. 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 v0.0.27 published on Tuesday, Dec 10, 2024 by Volcengine