get Server Plans
This data source provides the Simple Application Server Plans of the current Alibaba Cloud user.
NOTE: Available in v1.135.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.simpleapplicationserver.SimpleapplicationserverFunctions;
import com.pulumi.alicloud.simpleapplicationserver.inputs.GetServerPlansArgs;
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 example = SimpleapplicationserverFunctions.getServerPlans(GetServerPlansArgs.builder()
.memory(1)
.bandwidth(3)
.diskSize(40)
.flow(6)
.core(2)
.build());
ctx.export("simpleApplicationServerPlanId1", data.alicloud_simple_application_server_plans().ids().plans()[0].id());
}
}
Return
A collection of values returned by getServerPlans.
Parameters
A collection of arguments for invoking getServerPlans.
Return
A collection of values returned by getServerPlans.
See also
Parameters
The peak bandwidth. Unit: Mbit/s.
The number of CPU cores.
The size of the enhanced SSD (ESSD). Unit: GB.
The monthly data transfer quota. Unit: GB.
A list of Instance Plan IDs.
The memory size. Unit: GB.
File name where to save data source results (after running pulumi preview
).
The platform of Plan supported. Valid values: "Linux", "Windows".
Return
A collection of values returned by getServerPlans.
See also
Parameters
Builder for com.pulumi.alicloud.simpleapplicationserver.kotlin.inputs.GetServerPlansPlainArgs.