get Container Groups
This data source provides the Eci Container Groups of the current Alibaba Cloud user.
NOTE: Available in v1.111.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.eci.EciFunctions;
import com.pulumi.alicloud.eci.inputs.GetContainerGroupsArgs;
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 = EciFunctions.getContainerGroups(GetContainerGroupsArgs.builder()
.ids("example_value")
.build());
ctx.export("firstEciContainerGroupId", example.applyValue(getContainerGroupsResult -> getContainerGroupsResult.groups()[0].id()));
}
}
Return
A collection of values returned by getContainerGroups.
Parameters
A collection of arguments for invoking getContainerGroups.
Return
A collection of values returned by getContainerGroups.
See also
Parameters
The name of ContainerGroup.
Default to false
. Set it to true
can output more details about resource attributes.
A list of Container Group IDs.
The maximum number of resources returned in the response. Default value is 20
. Maximum value: 20
. The number of returned results is no greater than the specified number.
A regex string to filter results by Container Group name.
File name where to save data source results (after running pulumi preview
).
The ID of the resource group to which the container group belongs. If you have not specified a resource group for the container group, it is added to the default resource group.
The status of container.
The tags attached to the container group. Each tag is a key-value pair. You can attach up to 20 tags to a container group.
The vswitch id.
The IDs of the zones where the container groups are deployed. If this parameter is not set, the system automatically selects the zones. By default, no value is specified.
Return
A collection of values returned by getContainerGroups.
See also
Parameters
Builder for com.pulumi.alicloud.eci.kotlin.inputs.GetContainerGroupsPlainArgs.