getServerGroupServerAttachments

This data source provides the Nlb Server Group Server Attachments of the current Alibaba Cloud user.

NOTE: Available in v1.192.0+.

Example Usage

Basic Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.nlb.NlbFunctions;
import com.pulumi.alicloud.nlb.inputs.GetServerGroupServerAttachmentsArgs;
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 ids = NlbFunctions.getServerGroupServerAttachments(GetServerGroupServerAttachmentsArgs.builder()
.ids("example_value")
.build());
ctx.export("nlbServerGroupServerAttachmentId1", ids.applyValue(getServerGroupServerAttachmentsResult -> getServerGroupServerAttachmentsResult.attachments()[0].id()));
}
}

Return

A collection of values returned by getServerGroupServerAttachments.

Parameters

argument

A collection of arguments for invoking getServerGroupServerAttachments.


suspend fun getServerGroupServerAttachments(ids: List<String>? = null, outputFile: String? = null, serverGroupId: String? = null, serverIds: List<String>? = null, serverIps: List<String>? = null): GetServerGroupServerAttachmentsResult

Return

A collection of values returned by getServerGroupServerAttachments.

See also

Parameters

ids

A list of Server Group Server Attachment IDs.

outputFile

File name where to save data source results (after running pulumi preview).

serverGroupId

The ID of the server group.

serverIds

The IDs of the servers. You can specify at most 40 server IDs in each call.

serverIps

The IP addresses of the servers. You can specify at most 40 server IP addresses in each call.


Return

A collection of values returned by getServerGroupServerAttachments.

See also

Parameters

argument

Builder for com.pulumi.alicloud.nlb.kotlin.inputs.GetServerGroupServerAttachmentsPlainArgs.