get Server Group Server Attachments
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
A collection of arguments for invoking getServerGroupServerAttachments.
Return
A collection of values returned by getServerGroupServerAttachments.
See also
Parameters
A list of Server Group Server Attachment IDs.
File name where to save data source results (after running pulumi preview
).
The ID of the server group.
The IDs of the servers. You can specify at most 40 server IDs in each call.
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
Builder for com.pulumi.alicloud.nlb.kotlin.inputs.GetServerGroupServerAttachmentsPlainArgs.