get Server Group Server Attachments
suspend fun getServerGroupServerAttachments(argument: GetServerGroupServerAttachmentsPlainArgs): GetServerGroupServerAttachmentsResult
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()));
}
}
Content copied to clipboard
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.
output File
server Group Id
The ID of the server group.
server Ids
The IDs of the servers. You can specify at most 40 server IDs in each call.
server Ips
The IP addresses of the servers. You can specify at most 40 server IP addresses in each call.
suspend fun getServerGroupServerAttachments(argument: suspend GetServerGroupServerAttachmentsPlainArgsBuilder.() -> Unit): GetServerGroupServerAttachmentsResult
Return
A collection of values returned by getServerGroupServerAttachments.
See also
Parameters
argument
Builder for com.pulumi.alicloud.nlb.kotlin.inputs.GetServerGroupServerAttachmentsPlainArgs.