Alibaba Cloud v3.87.0 published on Saturday, Oct 18, 2025 by Pulumi
alicloud.eci.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
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const example = alicloud.eci.getContainerGroups({
ids: ["example_value"],
});
export const firstEciContainerGroupId = example.then(example => example.groups?.[0]?.id);
import pulumi
import pulumi_alicloud as alicloud
example = alicloud.eci.get_container_groups(ids=["example_value"])
pulumi.export("firstEciContainerGroupId", example.groups[0].id)
package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/eci"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
example, err := eci.GetContainerGroups(ctx, &eci.GetContainerGroupsArgs{
Ids: []string{
"example_value",
},
}, nil)
if err != nil {
return err
}
ctx.Export("firstEciContainerGroupId", example.Groups[0].Id)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() =>
{
var example = AliCloud.Eci.GetContainerGroups.Invoke(new()
{
Ids = new[]
{
"example_value",
},
});
return new Dictionary<string, object?>
{
["firstEciContainerGroupId"] = example.Apply(getContainerGroupsResult => getContainerGroupsResult.Groups[0]?.Id),
};
});
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.groups()[0].id());
}
}
variables:
example:
fn::invoke:
function: alicloud:eci:getContainerGroups
arguments:
ids:
- example_value
outputs:
firstEciContainerGroupId: ${example.groups[0].id}
Using getContainerGroups
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getContainerGroups(args: GetContainerGroupsArgs, opts?: InvokeOptions): Promise<GetContainerGroupsResult>
function getContainerGroupsOutput(args: GetContainerGroupsOutputArgs, opts?: InvokeOptions): Output<GetContainerGroupsResult>
def get_container_groups(container_group_name: Optional[str] = None,
enable_details: Optional[bool] = None,
ids: Optional[Sequence[str]] = None,
limit: Optional[int] = None,
name_regex: Optional[str] = None,
output_file: Optional[str] = None,
resource_group_id: Optional[str] = None,
status: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
vswitch_id: Optional[str] = None,
with_event: Optional[bool] = None,
zone_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetContainerGroupsResult
def get_container_groups_output(container_group_name: Optional[pulumi.Input[str]] = None,
enable_details: Optional[pulumi.Input[bool]] = None,
ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
limit: Optional[pulumi.Input[int]] = None,
name_regex: Optional[pulumi.Input[str]] = None,
output_file: Optional[pulumi.Input[str]] = None,
resource_group_id: Optional[pulumi.Input[str]] = None,
status: Optional[pulumi.Input[str]] = None,
tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
vswitch_id: Optional[pulumi.Input[str]] = None,
with_event: Optional[pulumi.Input[bool]] = None,
zone_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetContainerGroupsResult]
func GetContainerGroups(ctx *Context, args *GetContainerGroupsArgs, opts ...InvokeOption) (*GetContainerGroupsResult, error)
func GetContainerGroupsOutput(ctx *Context, args *GetContainerGroupsOutputArgs, opts ...InvokeOption) GetContainerGroupsResultOutput
> Note: This function is named GetContainerGroups
in the Go SDK.
public static class GetContainerGroups
{
public static Task<GetContainerGroupsResult> InvokeAsync(GetContainerGroupsArgs args, InvokeOptions? opts = null)
public static Output<GetContainerGroupsResult> Invoke(GetContainerGroupsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetContainerGroupsResult> getContainerGroups(GetContainerGroupsArgs args, InvokeOptions options)
public static Output<GetContainerGroupsResult> getContainerGroups(GetContainerGroupsArgs args, InvokeOptions options)
fn::invoke:
function: alicloud:eci/getContainerGroups:getContainerGroups
arguments:
# arguments dictionary
The following arguments are supported:
- Container
Group stringName - The name of ContainerGroup.
- Enable
Details bool - Default to
false
. Set it totrue
can output more details about resource attributes. - Ids List<string>
- A list of Container Group IDs.
- Limit int
- 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. - Name
Regex string - A regex string to filter results by Container Group name.
- Output
File string - File name where to save data source results (after running
pulumi preview
). - Resource
Group stringId - 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 string
- The status list. For more information, see the description of ContainerGroup arrays.
- Dictionary<string, string>
- Vswitch
Id string - The ID of the vSwitch. Currently, container groups can only be deployed in VPC networks.
- With
Event bool - Zone
Id string - The ID of the zone where you want to deploy the container group. If no value is specified, the system assigns a zone to the container group. By default, no value is specified.
- Container
Group stringName - The name of ContainerGroup.
- Enable
Details bool - Default to
false
. Set it totrue
can output more details about resource attributes. - Ids []string
- A list of Container Group IDs.
- Limit int
- 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. - Name
Regex string - A regex string to filter results by Container Group name.
- Output
File string - File name where to save data source results (after running
pulumi preview
). - Resource
Group stringId - 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 string
- The status list. For more information, see the description of ContainerGroup arrays.
- map[string]string
- Vswitch
Id string - The ID of the vSwitch. Currently, container groups can only be deployed in VPC networks.
- With
Event bool - Zone
Id string - The ID of the zone where you want to deploy the container group. If no value is specified, the system assigns a zone to the container group. By default, no value is specified.
- container
Group StringName - The name of ContainerGroup.
- enable
Details Boolean - Default to
false
. Set it totrue
can output more details about resource attributes. - ids List<String>
- A list of Container Group IDs.
- limit Integer
- 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. - name
Regex String - A regex string to filter results by Container Group name.
- output
File String - File name where to save data source results (after running
pulumi preview
). - resource
Group StringId - 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 String
- The status list. For more information, see the description of ContainerGroup arrays.
- Map<String,String>
- vswitch
Id String - The ID of the vSwitch. Currently, container groups can only be deployed in VPC networks.
- with
Event Boolean - zone
Id String - The ID of the zone where you want to deploy the container group. If no value is specified, the system assigns a zone to the container group. By default, no value is specified.
- container
Group stringName - The name of ContainerGroup.
- enable
Details boolean - Default to
false
. Set it totrue
can output more details about resource attributes. - ids string[]
- A list of Container Group IDs.
- limit number
- 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. - name
Regex string - A regex string to filter results by Container Group name.
- output
File string - File name where to save data source results (after running
pulumi preview
). - resource
Group stringId - 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 string
- The status list. For more information, see the description of ContainerGroup arrays.
- {[key: string]: string}
- vswitch
Id string - The ID of the vSwitch. Currently, container groups can only be deployed in VPC networks.
- with
Event boolean - zone
Id string - The ID of the zone where you want to deploy the container group. If no value is specified, the system assigns a zone to the container group. By default, no value is specified.
- container_
group_ strname - The name of ContainerGroup.
- enable_
details bool - Default to
false
. Set it totrue
can output more details about resource attributes. - ids Sequence[str]
- A list of Container Group IDs.
- limit int
- 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. - name_
regex str - A regex string to filter results by Container Group name.
- output_
file str - File name where to save data source results (after running
pulumi preview
). - resource_
group_ strid - 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 str
- The status list. For more information, see the description of ContainerGroup arrays.
- Mapping[str, str]
- vswitch_
id str - The ID of the vSwitch. Currently, container groups can only be deployed in VPC networks.
- with_
event bool - zone_
id str - The ID of the zone where you want to deploy the container group. If no value is specified, the system assigns a zone to the container group. By default, no value is specified.
- container
Group StringName - The name of ContainerGroup.
- enable
Details Boolean - Default to
false
. Set it totrue
can output more details about resource attributes. - ids List<String>
- A list of Container Group IDs.
- limit Number
- 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. - name
Regex String - A regex string to filter results by Container Group name.
- output
File String - File name where to save data source results (after running
pulumi preview
). - resource
Group StringId - 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 String
- The status list. For more information, see the description of ContainerGroup arrays.
- Map<String>
- vswitch
Id String - The ID of the vSwitch. Currently, container groups can only be deployed in VPC networks.
- with
Event Boolean - zone
Id String - The ID of the zone where you want to deploy the container group. If no value is specified, the system assigns a zone to the container group. By default, no value is specified.
getContainerGroups Result
The following output properties are available:
- Groups
List<Pulumi.
Ali Cloud. Eci. Outputs. Get Container Groups Group> - Id string
- The provider-assigned unique ID for this managed resource.
- Ids List<string>
- Names List<string>
- Container
Group stringName - Enable
Details bool - Limit int
- Name
Regex string - Output
File string - Resource
Group stringId - Status string
- Dictionary<string, string>
- Vswitch
Id string - With
Event bool - Zone
Id string
- Groups
[]Get
Container Groups Group - Id string
- The provider-assigned unique ID for this managed resource.
- Ids []string
- Names []string
- Container
Group stringName - Enable
Details bool - Limit int
- Name
Regex string - Output
File string - Resource
Group stringId - Status string
- map[string]string
- Vswitch
Id string - With
Event bool - Zone
Id string
- groups
List<Get
Container Groups Group> - id String
- The provider-assigned unique ID for this managed resource.
- ids List<String>
- names List<String>
- container
Group StringName - enable
Details Boolean - limit Integer
- name
Regex String - output
File String - resource
Group StringId - status String
- Map<String,String>
- vswitch
Id String - with
Event Boolean - zone
Id String
- groups
Get
Container Groups Group[] - id string
- The provider-assigned unique ID for this managed resource.
- ids string[]
- names string[]
- container
Group stringName - enable
Details boolean - limit number
- name
Regex string - output
File string - resource
Group stringId - status string
- {[key: string]: string}
- vswitch
Id string - with
Event boolean - zone
Id string
- groups
Sequence[Get
Container Groups Group] - id str
- The provider-assigned unique ID for this managed resource.
- ids Sequence[str]
- names Sequence[str]
- container_
group_ strname - enable_
details bool - limit int
- name_
regex str - output_
file str - resource_
group_ strid - status str
- Mapping[str, str]
- vswitch_
id str - with_
event bool - zone_
id str
- groups List<Property Map>
- id String
- The provider-assigned unique ID for this managed resource.
- ids List<String>
- names List<String>
- container
Group StringName - enable
Details Boolean - limit Number
- name
Regex String - output
File String - resource
Group StringId - status String
- Map<String>
- vswitch
Id String - with
Event Boolean - zone
Id String
Supporting Types
GetContainerGroupsGroup
- Container
Group stringId - The id if ContainerGroup.
- Container
Group stringName - The name of ContainerGroup.
- Containers
List<Pulumi.
Ali Cloud. Eci. Inputs. Get Container Groups Group Container> - A list of containers. Each element contains the following attributes:
- Cpu double
- The amount of CPU resources allocated to the container group.
- Discount int
- Dns
Configs List<Pulumi.Ali Cloud. Eci. Inputs. Get Container Groups Group Dns Config> - The DNS settings.
- Eci
Security List<Pulumi.Contexts Ali Cloud. Eci. Inputs. Get Container Groups Group Eci Security Context> - The security context of the container group.
- Eni
Instance stringId - The ID of the ENI instance.
- Events
List<Pulumi.
Ali Cloud. Eci. Inputs. Get Container Groups Group Event> - The events of the container group. Maximum:
50
. - Expired
Time string - The time when the container group failed to run due to overdue payments. The timestamp follows the UTC and RFC3339 formats.
- Failed
Time string - The time when the container failed to run tasks. The timestamp follows the UTC and RFC3339 formats.
- Host
Aliases List<Pulumi.Ali Cloud. Eci. Inputs. Get Container Groups Group Host Alias> - The mapping between host names and IP addresses for a container in the container group.
- Id string
- The ID of the Container Group.
- Init
Containers List<Pulumi.Ali Cloud. Eci. Inputs. Get Container Groups Group Init Container> - A list of init containers. Each element contains the following attributes:
- Instance
Type string - The type of the ECS instance.
- Internet
Ip string - The public IP address of the container group.
- Intranet
Ip string - The internal IP address of the container group.
- Ipv6Address string
- The IPv6 address.
- Memory double
- The amount of memory resources allocated to the container group.
- Ram
Role stringName - The RAM role that the container group assumes. ECI and ECS share the same RAM role.
- Resource
Group stringId - 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.
- Restart
Policy string - The restart policy of the container group.
- Security
Group stringId - The ID of the security group.
- Status string
- The status of container.
- Succeeded
Time string - The time when all containers in the container group completed running the specified tasks. The timestamp follows the UTC and RFC 3339 formats. For example, 2018-08-02T15:00:00Z.
- Dictionary<string, string>
- 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.
- Volumes
List<Pulumi.
Ali Cloud. Eci. Inputs. Get Container Groups Group Volume> - The information about the mounted volume. You can mount up to 20 volumes.
- Vpc
Id string - The if of vpc.
- Vswitch
Id string - The vswitch id.
- Zone
Id string - 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.
- Container
Group stringId - The id if ContainerGroup.
- Container
Group stringName - The name of ContainerGroup.
- Containers
[]Get
Container Groups Group Container - A list of containers. Each element contains the following attributes:
- Cpu float64
- The amount of CPU resources allocated to the container group.
- Discount int
- Dns
Configs []GetContainer Groups Group Dns Config - The DNS settings.
- Eci
Security []GetContexts Container Groups Group Eci Security Context - The security context of the container group.
- Eni
Instance stringId - The ID of the ENI instance.
- Events
[]Get
Container Groups Group Event - The events of the container group. Maximum:
50
. - Expired
Time string - The time when the container group failed to run due to overdue payments. The timestamp follows the UTC and RFC3339 formats.
- Failed
Time string - The time when the container failed to run tasks. The timestamp follows the UTC and RFC3339 formats.
- Host
Aliases []GetContainer Groups Group Host Alias - The mapping between host names and IP addresses for a container in the container group.
- Id string
- The ID of the Container Group.
- Init
Containers []GetContainer Groups Group Init Container - A list of init containers. Each element contains the following attributes:
- Instance
Type string - The type of the ECS instance.
- Internet
Ip string - The public IP address of the container group.
- Intranet
Ip string - The internal IP address of the container group.
- Ipv6Address string
- The IPv6 address.
- Memory float64
- The amount of memory resources allocated to the container group.
- Ram
Role stringName - The RAM role that the container group assumes. ECI and ECS share the same RAM role.
- Resource
Group stringId - 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.
- Restart
Policy string - The restart policy of the container group.
- Security
Group stringId - The ID of the security group.
- Status string
- The status of container.
- Succeeded
Time string - The time when all containers in the container group completed running the specified tasks. The timestamp follows the UTC and RFC 3339 formats. For example, 2018-08-02T15:00:00Z.
- map[string]string
- 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.
- Volumes
[]Get
Container Groups Group Volume - The information about the mounted volume. You can mount up to 20 volumes.
- Vpc
Id string - The if of vpc.
- Vswitch
Id string - The vswitch id.
- Zone
Id string - 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.
- container
Group StringId - The id if ContainerGroup.
- container
Group StringName - The name of ContainerGroup.
- containers
List<Get
Container Groups Group Container> - A list of containers. Each element contains the following attributes:
- cpu Double
- The amount of CPU resources allocated to the container group.
- discount Integer
- dns
Configs List<GetContainer Groups Group Dns Config> - The DNS settings.
- eci
Security List<GetContexts Container Groups Group Eci Security Context> - The security context of the container group.
- eni
Instance StringId - The ID of the ENI instance.
- events
List<Get
Container Groups Group Event> - The events of the container group. Maximum:
50
. - expired
Time String - The time when the container group failed to run due to overdue payments. The timestamp follows the UTC and RFC3339 formats.
- failed
Time String - The time when the container failed to run tasks. The timestamp follows the UTC and RFC3339 formats.
- host
Aliases List<GetContainer Groups Group Host Alias> - The mapping between host names and IP addresses for a container in the container group.
- id String
- The ID of the Container Group.
- init
Containers List<GetContainer Groups Group Init Container> - A list of init containers. Each element contains the following attributes:
- instance
Type String - The type of the ECS instance.
- internet
Ip String - The public IP address of the container group.
- intranet
Ip String - The internal IP address of the container group.
- ipv6Address String
- The IPv6 address.
- memory Double
- The amount of memory resources allocated to the container group.
- ram
Role StringName - The RAM role that the container group assumes. ECI and ECS share the same RAM role.
- resource
Group StringId - 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.
- restart
Policy String - The restart policy of the container group.
- security
Group StringId - The ID of the security group.
- status String
- The status of container.
- succeeded
Time String - The time when all containers in the container group completed running the specified tasks. The timestamp follows the UTC and RFC 3339 formats. For example, 2018-08-02T15:00:00Z.
- Map<String,String>
- 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.
- volumes
List<Get
Container Groups Group Volume> - The information about the mounted volume. You can mount up to 20 volumes.
- vpc
Id String - The if of vpc.
- vswitch
Id String - The vswitch id.
- zone
Id String - 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.
- container
Group stringId - The id if ContainerGroup.
- container
Group stringName - The name of ContainerGroup.
- containers
Get
Container Groups Group Container[] - A list of containers. Each element contains the following attributes:
- cpu number
- The amount of CPU resources allocated to the container group.
- discount number
- dns
Configs GetContainer Groups Group Dns Config[] - The DNS settings.
- eci
Security GetContexts Container Groups Group Eci Security Context[] - The security context of the container group.
- eni
Instance stringId - The ID of the ENI instance.
- events
Get
Container Groups Group Event[] - The events of the container group. Maximum:
50
. - expired
Time string - The time when the container group failed to run due to overdue payments. The timestamp follows the UTC and RFC3339 formats.
- failed
Time string - The time when the container failed to run tasks. The timestamp follows the UTC and RFC3339 formats.
- host
Aliases GetContainer Groups Group Host Alias[] - The mapping between host names and IP addresses for a container in the container group.
- id string
- The ID of the Container Group.
- init
Containers GetContainer Groups Group Init Container[] - A list of init containers. Each element contains the following attributes:
- instance
Type string - The type of the ECS instance.
- internet
Ip string - The public IP address of the container group.
- intranet
Ip string - The internal IP address of the container group.
- ipv6Address string
- The IPv6 address.
- memory number
- The amount of memory resources allocated to the container group.
- ram
Role stringName - The RAM role that the container group assumes. ECI and ECS share the same RAM role.
- resource
Group stringId - 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.
- restart
Policy string - The restart policy of the container group.
- security
Group stringId - The ID of the security group.
- status string
- The status of container.
- succeeded
Time string - The time when all containers in the container group completed running the specified tasks. The timestamp follows the UTC and RFC 3339 formats. For example, 2018-08-02T15:00:00Z.
- {[key: string]: string}
- 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.
- volumes
Get
Container Groups Group Volume[] - The information about the mounted volume. You can mount up to 20 volumes.
- vpc
Id string - The if of vpc.
- vswitch
Id string - The vswitch id.
- zone
Id string - 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.
- container_
group_ strid - The id if ContainerGroup.
- container_
group_ strname - The name of ContainerGroup.
- containers
Sequence[Get
Container Groups Group Container] - A list of containers. Each element contains the following attributes:
- cpu float
- The amount of CPU resources allocated to the container group.
- discount int
- dns_
configs Sequence[GetContainer Groups Group Dns Config] - The DNS settings.
- eci_
security_ Sequence[Getcontexts Container Groups Group Eci Security Context] - The security context of the container group.
- eni_
instance_ strid - The ID of the ENI instance.
- events
Sequence[Get
Container Groups Group Event] - The events of the container group. Maximum:
50
. - expired_
time str - The time when the container group failed to run due to overdue payments. The timestamp follows the UTC and RFC3339 formats.
- failed_
time str - The time when the container failed to run tasks. The timestamp follows the UTC and RFC3339 formats.
- host_
aliases Sequence[GetContainer Groups Group Host Alias] - The mapping between host names and IP addresses for a container in the container group.
- id str
- The ID of the Container Group.
- init_
containers Sequence[GetContainer Groups Group Init Container] - A list of init containers. Each element contains the following attributes:
- instance_
type str - The type of the ECS instance.
- internet_
ip str - The public IP address of the container group.
- intranet_
ip str - The internal IP address of the container group.
- ipv6_
address str - The IPv6 address.
- memory float
- The amount of memory resources allocated to the container group.
- ram_
role_ strname - The RAM role that the container group assumes. ECI and ECS share the same RAM role.
- resource_
group_ strid - 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.
- restart_
policy str - The restart policy of the container group.
- security_
group_ strid - The ID of the security group.
- status str
- The status of container.
- succeeded_
time str - The time when all containers in the container group completed running the specified tasks. The timestamp follows the UTC and RFC 3339 formats. For example, 2018-08-02T15:00:00Z.
- Mapping[str, str]
- 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.
- volumes
Sequence[Get
Container Groups Group Volume] - The information about the mounted volume. You can mount up to 20 volumes.
- vpc_
id str - The if of vpc.
- vswitch_
id str - The vswitch id.
- zone_
id str - 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.
- container
Group StringId - The id if ContainerGroup.
- container
Group StringName - The name of ContainerGroup.
- containers List<Property Map>
- A list of containers. Each element contains the following attributes:
- cpu Number
- The amount of CPU resources allocated to the container group.
- discount Number
- dns
Configs List<Property Map> - The DNS settings.
- eci
Security List<Property Map>Contexts - The security context of the container group.
- eni
Instance StringId - The ID of the ENI instance.
- events List<Property Map>
- The events of the container group. Maximum:
50
. - expired
Time String - The time when the container group failed to run due to overdue payments. The timestamp follows the UTC and RFC3339 formats.
- failed
Time String - The time when the container failed to run tasks. The timestamp follows the UTC and RFC3339 formats.
- host
Aliases List<Property Map> - The mapping between host names and IP addresses for a container in the container group.
- id String
- The ID of the Container Group.
- init
Containers List<Property Map> - A list of init containers. Each element contains the following attributes:
- instance
Type String - The type of the ECS instance.
- internet
Ip String - The public IP address of the container group.
- intranet
Ip String - The internal IP address of the container group.
- ipv6Address String
- The IPv6 address.
- memory Number
- The amount of memory resources allocated to the container group.
- ram
Role StringName - The RAM role that the container group assumes. ECI and ECS share the same RAM role.
- resource
Group StringId - 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.
- restart
Policy String - The restart policy of the container group.
- security
Group StringId - The ID of the security group.
- status String
- The status of container.
- succeeded
Time String - The time when all containers in the container group completed running the specified tasks. The timestamp follows the UTC and RFC 3339 formats. For example, 2018-08-02T15:00:00Z.
- Map<String>
- 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.
- volumes List<Property Map>
- The information about the mounted volume. You can mount up to 20 volumes.
- vpc
Id String - The if of vpc.
- vswitch
Id String - The vswitch id.
- zone
Id String - 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.
GetContainerGroupsGroupContainer
- Args List<string>
- The arguments passed to the commands. Maximum:
10
. - Commands List<string>
- The commands run by the container. You can define a maximum of 20 commands. Minimum length per string: 256 characters.
- Cpu double
- The amount of CPU resources allocated to the container.
- Environment
Vars List<Pulumi.Ali Cloud. Eci. Inputs. Get Container Groups Group Container Environment Var> - The environment variables.
- Gpu int
- The amount of GPU resources allocated to the container.
- Image string
- The image of the container.
- Image
Pull stringPolicy - The policy for pulling an image.
- Memory double
- The amount of memory resources allocated to the container.
- Name string
- The name of the container.
- Ports
List<Pulumi.
Ali Cloud. Eci. Inputs. Get Container Groups Group Container Port> - The list of exposed ports and protocols. Maximum: 100.
- Ready bool
- Indicates whether the container is ready.
- Restart
Count int - The number of times that the container has restarted.
- Volume
Mounts List<Pulumi.Ali Cloud. Eci. Inputs. Get Container Groups Group Container Volume Mount> - The list of volumes mounted to the container.
- Working
Dir string - The working directory of the container.
- Args []string
- The arguments passed to the commands. Maximum:
10
. - Commands []string
- The commands run by the container. You can define a maximum of 20 commands. Minimum length per string: 256 characters.
- Cpu float64
- The amount of CPU resources allocated to the container.
- Environment
Vars []GetContainer Groups Group Container Environment Var - The environment variables.
- Gpu int
- The amount of GPU resources allocated to the container.
- Image string
- The image of the container.
- Image
Pull stringPolicy - The policy for pulling an image.
- Memory float64
- The amount of memory resources allocated to the container.
- Name string
- The name of the container.
- Ports
[]Get
Container Groups Group Container Port - The list of exposed ports and protocols. Maximum: 100.
- Ready bool
- Indicates whether the container is ready.
- Restart
Count int - The number of times that the container has restarted.
- Volume
Mounts []GetContainer Groups Group Container Volume Mount - The list of volumes mounted to the container.
- Working
Dir string - The working directory of the container.
- args List<String>
- The arguments passed to the commands. Maximum:
10
. - commands List<String>
- The commands run by the container. You can define a maximum of 20 commands. Minimum length per string: 256 characters.
- cpu Double
- The amount of CPU resources allocated to the container.
- environment
Vars List<GetContainer Groups Group Container Environment Var> - The environment variables.
- gpu Integer
- The amount of GPU resources allocated to the container.
- image String
- The image of the container.
- image
Pull StringPolicy - The policy for pulling an image.
- memory Double
- The amount of memory resources allocated to the container.
- name String
- The name of the container.
- ports
List<Get
Container Groups Group Container Port> - The list of exposed ports and protocols. Maximum: 100.
- ready Boolean
- Indicates whether the container is ready.
- restart
Count Integer - The number of times that the container has restarted.
- volume
Mounts List<GetContainer Groups Group Container Volume Mount> - The list of volumes mounted to the container.
- working
Dir String - The working directory of the container.
- args string[]
- The arguments passed to the commands. Maximum:
10
. - commands string[]
- The commands run by the container. You can define a maximum of 20 commands. Minimum length per string: 256 characters.
- cpu number
- The amount of CPU resources allocated to the container.
- environment
Vars GetContainer Groups Group Container Environment Var[] - The environment variables.
- gpu number
- The amount of GPU resources allocated to the container.
- image string
- The image of the container.
- image
Pull stringPolicy - The policy for pulling an image.
- memory number
- The amount of memory resources allocated to the container.
- name string
- The name of the container.
- ports
Get
Container Groups Group Container Port[] - The list of exposed ports and protocols. Maximum: 100.
- ready boolean
- Indicates whether the container is ready.
- restart
Count number - The number of times that the container has restarted.
- volume
Mounts GetContainer Groups Group Container Volume Mount[] - The list of volumes mounted to the container.
- working
Dir string - The working directory of the container.
- args Sequence[str]
- The arguments passed to the commands. Maximum:
10
. - commands Sequence[str]
- The commands run by the container. You can define a maximum of 20 commands. Minimum length per string: 256 characters.
- cpu float
- The amount of CPU resources allocated to the container.
- environment_
vars Sequence[GetContainer Groups Group Container Environment Var] - The environment variables.
- gpu int
- The amount of GPU resources allocated to the container.
- image str
- The image of the container.
- image_
pull_ strpolicy - The policy for pulling an image.
- memory float
- The amount of memory resources allocated to the container.
- name str
- The name of the container.
- ports
Sequence[Get
Container Groups Group Container Port] - The list of exposed ports and protocols. Maximum: 100.
- ready bool
- Indicates whether the container is ready.
- restart_
count int - The number of times that the container has restarted.
- volume_
mounts Sequence[GetContainer Groups Group Container Volume Mount] - The list of volumes mounted to the container.
- working_
dir str - The working directory of the container.
- args List<String>
- The arguments passed to the commands. Maximum:
10
. - commands List<String>
- The commands run by the container. You can define a maximum of 20 commands. Minimum length per string: 256 characters.
- cpu Number
- The amount of CPU resources allocated to the container.
- environment
Vars List<Property Map> - The environment variables.
- gpu Number
- The amount of GPU resources allocated to the container.
- image String
- The image of the container.
- image
Pull StringPolicy - The policy for pulling an image.
- memory Number
- The amount of memory resources allocated to the container.
- name String
- The name of the container.
- ports List<Property Map>
- The list of exposed ports and protocols. Maximum: 100.
- ready Boolean
- Indicates whether the container is ready.
- restart
Count Number - The number of times that the container has restarted.
- volume
Mounts List<Property Map> - The list of volumes mounted to the container.
- working
Dir String - The working directory of the container.
GetContainerGroupsGroupContainerEnvironmentVar
GetContainerGroupsGroupContainerPort
GetContainerGroupsGroupContainerVolumeMount
- mount_
path str - The directory of the mounted volume. Data under this directory will be overwritten by the data in the volume.
- name str
- The name of the volume. The name is the same as the volume you selected when you purchased the container.
- read_
only bool - Default value:
false
.
GetContainerGroupsGroupDnsConfig
- Name
Servers List<string> - The list of DNS server IP addresses.
- Options
List<Pulumi.
Ali Cloud. Eci. Inputs. Get Container Groups Group Dns Config Option> - The list of objects. Each object is a name-value pair. The value is optional.
- Searches List<string>
- The list of DNS lookup domains.
- Name
Servers []string - The list of DNS server IP addresses.
- Options
[]Get
Container Groups Group Dns Config Option - The list of objects. Each object is a name-value pair. The value is optional.
- Searches []string
- The list of DNS lookup domains.
- name
Servers List<String> - The list of DNS server IP addresses.
- options
List<Get
Container Groups Group Dns Config Option> - The list of objects. Each object is a name-value pair. The value is optional.
- searches List<String>
- The list of DNS lookup domains.
- name
Servers string[] - The list of DNS server IP addresses.
- options
Get
Container Groups Group Dns Config Option[] - The list of objects. Each object is a name-value pair. The value is optional.
- searches string[]
- The list of DNS lookup domains.
- name_
servers Sequence[str] - The list of DNS server IP addresses.
- options
Sequence[Get
Container Groups Group Dns Config Option] - The list of objects. Each object is a name-value pair. The value is optional.
- searches Sequence[str]
- The list of DNS lookup domains.
- name
Servers List<String> - The list of DNS server IP addresses.
- options List<Property Map>
- The list of objects. Each object is a name-value pair. The value is optional.
- searches List<String>
- The list of DNS lookup domains.
GetContainerGroupsGroupDnsConfigOption
GetContainerGroupsGroupEciSecurityContext
- Sysctls
List<Pulumi.
Ali Cloud. Eci. Inputs. Get Container Groups Group Eci Security Context Sysctl> - The system information.
- Sysctls
[]Get
Container Groups Group Eci Security Context Sysctl - The system information.
- sysctls
List<Get
Container Groups Group Eci Security Context Sysctl> - The system information.
- sysctls
Get
Container Groups Group Eci Security Context Sysctl[] - The system information.
- sysctls
Sequence[Get
Container Groups Group Eci Security Context Sysctl] - The system information.
- sysctls List<Property Map>
- The system information.
GetContainerGroupsGroupEciSecurityContextSysctl
GetContainerGroupsGroupEvent
- Count int
- The number of events.
- First
Timestamp string - The time when the event started.
- Last
Timestamp string - The time when the event ended.
- Message string
- The content of the event.
- Name string
- The name of the object to which the event belongs.
- Reason string
- The name of the event.
- Type string
- The type of the event. Valid values: Normal and Warning.
- Count int
- The number of events.
- First
Timestamp string - The time when the event started.
- Last
Timestamp string - The time when the event ended.
- Message string
- The content of the event.
- Name string
- The name of the object to which the event belongs.
- Reason string
- The name of the event.
- Type string
- The type of the event. Valid values: Normal and Warning.
- count Integer
- The number of events.
- first
Timestamp String - The time when the event started.
- last
Timestamp String - The time when the event ended.
- message String
- The content of the event.
- name String
- The name of the object to which the event belongs.
- reason String
- The name of the event.
- type String
- The type of the event. Valid values: Normal and Warning.
- count number
- The number of events.
- first
Timestamp string - The time when the event started.
- last
Timestamp string - The time when the event ended.
- message string
- The content of the event.
- name string
- The name of the object to which the event belongs.
- reason string
- The name of the event.
- type string
- The type of the event. Valid values: Normal and Warning.
- count int
- The number of events.
- first_
timestamp str - The time when the event started.
- last_
timestamp str - The time when the event ended.
- message str
- The content of the event.
- name str
- The name of the object to which the event belongs.
- reason str
- The name of the event.
- type str
- The type of the event. Valid values: Normal and Warning.
- count Number
- The number of events.
- first
Timestamp String - The time when the event started.
- last
Timestamp String - The time when the event ended.
- message String
- The content of the event.
- name String
- The name of the object to which the event belongs.
- reason String
- The name of the event.
- type String
- The type of the event. Valid values: Normal and Warning.
GetContainerGroupsGroupHostAlias
GetContainerGroupsGroupInitContainer
- Args List<string>
- The arguments passed to the commands.
- Commands List<string>
- The commands run by the container.
- Cpu double
- The amount of CPU resources allocated to the container.
- Environment
Vars List<Pulumi.Ali Cloud. Eci. Inputs. Get Container Groups Group Init Container Environment Var> - The environment variables.
- Gpu int
- The amount of GPU resources allocated to the container.
- Image string
- The image of the container.
- Image
Pull stringPolicy - The policy for pulling an image.
- Memory double
- The amount of memory resources allocated to the container.
- Name string
- The name of the init container.
- Ports
List<Pulumi.
Ali Cloud. Eci. Inputs. Get Container Groups Group Init Container Port> - The exposed ports and protocols. Maximum:
100
. - Ready bool
- Indicates whether the container is ready.
- Restart
Count int - The number of times that the container has restarted.
- Volume
Mounts List<Pulumi.Ali Cloud. Eci. Inputs. Get Container Groups Group Init Container Volume Mount> - The list of volumes mounted to the container.
- Working
Dir string - The working directory of the container.
- Args []string
- The arguments passed to the commands.
- Commands []string
- The commands run by the container.
- Cpu float64
- The amount of CPU resources allocated to the container.
- Environment
Vars []GetContainer Groups Group Init Container Environment Var - The environment variables.
- Gpu int
- The amount of GPU resources allocated to the container.
- Image string
- The image of the container.
- Image
Pull stringPolicy - The policy for pulling an image.
- Memory float64
- The amount of memory resources allocated to the container.
- Name string
- The name of the init container.
- Ports
[]Get
Container Groups Group Init Container Port - The exposed ports and protocols. Maximum:
100
. - Ready bool
- Indicates whether the container is ready.
- Restart
Count int - The number of times that the container has restarted.
- Volume
Mounts []GetContainer Groups Group Init Container Volume Mount - The list of volumes mounted to the container.
- Working
Dir string - The working directory of the container.
- args List<String>
- The arguments passed to the commands.
- commands List<String>
- The commands run by the container.
- cpu Double
- The amount of CPU resources allocated to the container.
- environment
Vars List<GetContainer Groups Group Init Container Environment Var> - The environment variables.
- gpu Integer
- The amount of GPU resources allocated to the container.
- image String
- The image of the container.
- image
Pull StringPolicy - The policy for pulling an image.
- memory Double
- The amount of memory resources allocated to the container.
- name String
- The name of the init container.
- ports
List<Get
Container Groups Group Init Container Port> - The exposed ports and protocols. Maximum:
100
. - ready Boolean
- Indicates whether the container is ready.
- restart
Count Integer - The number of times that the container has restarted.
- volume
Mounts List<GetContainer Groups Group Init Container Volume Mount> - The list of volumes mounted to the container.
- working
Dir String - The working directory of the container.
- args string[]
- The arguments passed to the commands.
- commands string[]
- The commands run by the container.
- cpu number
- The amount of CPU resources allocated to the container.
- environment
Vars GetContainer Groups Group Init Container Environment Var[] - The environment variables.
- gpu number
- The amount of GPU resources allocated to the container.
- image string
- The image of the container.
- image
Pull stringPolicy - The policy for pulling an image.
- memory number
- The amount of memory resources allocated to the container.
- name string
- The name of the init container.
- ports
Get
Container Groups Group Init Container Port[] - The exposed ports and protocols. Maximum:
100
. - ready boolean
- Indicates whether the container is ready.
- restart
Count number - The number of times that the container has restarted.
- volume
Mounts GetContainer Groups Group Init Container Volume Mount[] - The list of volumes mounted to the container.
- working
Dir string - The working directory of the container.
- args Sequence[str]
- The arguments passed to the commands.
- commands Sequence[str]
- The commands run by the container.
- cpu float
- The amount of CPU resources allocated to the container.
- environment_
vars Sequence[GetContainer Groups Group Init Container Environment Var] - The environment variables.
- gpu int
- The amount of GPU resources allocated to the container.
- image str
- The image of the container.
- image_
pull_ strpolicy - The policy for pulling an image.
- memory float
- The amount of memory resources allocated to the container.
- name str
- The name of the init container.
- ports
Sequence[Get
Container Groups Group Init Container Port] - The exposed ports and protocols. Maximum:
100
. - ready bool
- Indicates whether the container is ready.
- restart_
count int - The number of times that the container has restarted.
- volume_
mounts Sequence[GetContainer Groups Group Init Container Volume Mount] - The list of volumes mounted to the container.
- working_
dir str - The working directory of the container.
- args List<String>
- The arguments passed to the commands.
- commands List<String>
- The commands run by the container.
- cpu Number
- The amount of CPU resources allocated to the container.
- environment
Vars List<Property Map> - The environment variables.
- gpu Number
- The amount of GPU resources allocated to the container.
- image String
- The image of the container.
- image
Pull StringPolicy - The policy for pulling an image.
- memory Number
- The amount of memory resources allocated to the container.
- name String
- The name of the init container.
- ports List<Property Map>
- The exposed ports and protocols. Maximum:
100
. - ready Boolean
- Indicates whether the container is ready.
- restart
Count Number - The number of times that the container has restarted.
- volume
Mounts List<Property Map> - The list of volumes mounted to the container.
- working
Dir String - The working directory of the container.
GetContainerGroupsGroupInitContainerEnvironmentVar
GetContainerGroupsGroupInitContainerPort
GetContainerGroupsGroupInitContainerVolumeMount
- mount_
path str - The directory of the mounted volume. Data under this directory will be overwritten by the data in the volume.
- name str
- The name of the volume. The name is the same as the volume you selected when you purchased the container.
- read_
only bool - Default value:
false
.
GetContainerGroupsGroupVolume
- Config
File List<Pulumi.Volume Config File To Paths Ali Cloud. Eci. Inputs. Get Container Groups Group Volume Config File Volume Config File To Path> - The list of configuration file paths.
- Disk
Volume stringDisk Id - The ID of DiskVolume.
- Disk
Volume stringFs Type - The type of DiskVolume.
- Flex
Volume stringDriver - The name of the FlexVolume driver.
- Flex
Volume stringFs Type - The type of the mounted file system. The default value is determined by the script of FlexVolume.
- Flex
Volume stringOptions - The list of FlexVolume objects.
- Name string
- The name of the volume.
- Nfs
Volume stringPath - The path to the NFS volume.
- Nfs
Volume boolRead Only - Default value:
false
. - Nfs
Volume stringServer - The address of the NFS server.
- Type string
- The type of the volume. Currently, the following types of volumes are supported: EmptyDirVolume, NFSVolume, ConfigFileVolume, and FlexVolume.
- Config
File []GetVolume Config File To Paths Container Groups Group Volume Config File Volume Config File To Path - The list of configuration file paths.
- Disk
Volume stringDisk Id - The ID of DiskVolume.
- Disk
Volume stringFs Type - The type of DiskVolume.
- Flex
Volume stringDriver - The name of the FlexVolume driver.
- Flex
Volume stringFs Type - The type of the mounted file system. The default value is determined by the script of FlexVolume.
- Flex
Volume stringOptions - The list of FlexVolume objects.
- Name string
- The name of the volume.
- Nfs
Volume stringPath - The path to the NFS volume.
- Nfs
Volume boolRead Only - Default value:
false
. - Nfs
Volume stringServer - The address of the NFS server.
- Type string
- The type of the volume. Currently, the following types of volumes are supported: EmptyDirVolume, NFSVolume, ConfigFileVolume, and FlexVolume.
- config
File List<GetVolume Config File To Paths Container Groups Group Volume Config File Volume Config File To Path> - The list of configuration file paths.
- disk
Volume StringDisk Id - The ID of DiskVolume.
- disk
Volume StringFs Type - The type of DiskVolume.
- flex
Volume StringDriver - The name of the FlexVolume driver.
- flex
Volume StringFs Type - The type of the mounted file system. The default value is determined by the script of FlexVolume.
- flex
Volume StringOptions - The list of FlexVolume objects.
- name String
- The name of the volume.
- nfs
Volume StringPath - The path to the NFS volume.
- nfs
Volume BooleanRead Only - Default value:
false
. - nfs
Volume StringServer - The address of the NFS server.
- type String
- The type of the volume. Currently, the following types of volumes are supported: EmptyDirVolume, NFSVolume, ConfigFileVolume, and FlexVolume.
- config
File GetVolume Config File To Paths Container Groups Group Volume Config File Volume Config File To Path[] - The list of configuration file paths.
- disk
Volume stringDisk Id - The ID of DiskVolume.
- disk
Volume stringFs Type - The type of DiskVolume.
- flex
Volume stringDriver - The name of the FlexVolume driver.
- flex
Volume stringFs Type - The type of the mounted file system. The default value is determined by the script of FlexVolume.
- flex
Volume stringOptions - The list of FlexVolume objects.
- name string
- The name of the volume.
- nfs
Volume stringPath - The path to the NFS volume.
- nfs
Volume booleanRead Only - Default value:
false
. - nfs
Volume stringServer - The address of the NFS server.
- type string
- The type of the volume. Currently, the following types of volumes are supported: EmptyDirVolume, NFSVolume, ConfigFileVolume, and FlexVolume.
- config_
file_ Sequence[Getvolume_ config_ file_ to_ paths Container Groups Group Volume Config File Volume Config File To Path] - The list of configuration file paths.
- disk_
volume_ strdisk_ id - The ID of DiskVolume.
- disk_
volume_ strfs_ type - The type of DiskVolume.
- flex_
volume_ strdriver - The name of the FlexVolume driver.
- flex_
volume_ strfs_ type - The type of the mounted file system. The default value is determined by the script of FlexVolume.
- flex_
volume_ stroptions - The list of FlexVolume objects.
- name str
- The name of the volume.
- nfs_
volume_ strpath - The path to the NFS volume.
- nfs_
volume_ boolread_ only - Default value:
false
. - nfs_
volume_ strserver - The address of the NFS server.
- type str
- The type of the volume. Currently, the following types of volumes are supported: EmptyDirVolume, NFSVolume, ConfigFileVolume, and FlexVolume.
- config
File List<Property Map>Volume Config File To Paths - The list of configuration file paths.
- disk
Volume StringDisk Id - The ID of DiskVolume.
- disk
Volume StringFs Type - The type of DiskVolume.
- flex
Volume StringDriver - The name of the FlexVolume driver.
- flex
Volume StringFs Type - The type of the mounted file system. The default value is determined by the script of FlexVolume.
- flex
Volume StringOptions - The list of FlexVolume objects.
- name String
- The name of the volume.
- nfs
Volume StringPath - The path to the NFS volume.
- nfs
Volume BooleanRead Only - Default value:
false
. - nfs
Volume StringServer - The address of the NFS server.
- type String
- The type of the volume. Currently, the following types of volumes are supported: EmptyDirVolume, NFSVolume, ConfigFileVolume, and FlexVolume.
GetContainerGroupsGroupVolumeConfigFileVolumeConfigFileToPath
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloud
Terraform Provider.