getContainerGroups

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

argument

A collection of arguments for invoking getContainerGroups.


suspend fun getContainerGroups(containerGroupName: String? = null, enableDetails: Boolean? = null, ids: List<String>? = null, limit: Int? = null, nameRegex: String? = null, outputFile: String? = null, resourceGroupId: String? = null, status: String? = null, tags: Map<String, Any>? = null, vswitchId: String? = null, withEvent: Boolean? = null, zoneId: String? = null): GetContainerGroupsResult

Return

A collection of values returned by getContainerGroups.

See also

Parameters

containerGroupName

The name of ContainerGroup.

enableDetails

Default to false. Set it to true can output more details about resource attributes.

ids

A list of Container Group IDs.

limit

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.

nameRegex

A regex string to filter results by Container Group name.

outputFile

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

resourceGroupId

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.

status

The status of container.

tags

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.

vswitchId

The vswitch id.

withEvent
zoneId

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

argument

Builder for com.pulumi.alicloud.eci.kotlin.inputs.GetContainerGroupsPlainArgs.