in alicloud/data_source_alicloud_eci_container_groups.go [13:570]
func dataSourceAlicloudEciContainerGroups() *schema.Resource {
return &schema.Resource{
Read: dataSourceAlicloudEciContainerGroupsRead,
Schema: map[string]*schema.Schema{
"ids": {
Type: schema.TypeList,
Optional: true,
ForceNew: true,
Elem: &schema.Schema{Type: schema.TypeString},
Computed: true,
},
"name_regex": {
Type: schema.TypeString,
Optional: true,
ValidateFunc: validation.ValidateRegexp,
ForceNew: true,
},
"names": {
Type: schema.TypeList,
Elem: &schema.Schema{Type: schema.TypeString},
Computed: true,
},
"container_group_name": {
Type: schema.TypeString,
Optional: true,
ForceNew: true,
},
"limit": {
Type: schema.TypeInt,
Optional: true,
ForceNew: true,
},
"resource_group_id": {
Type: schema.TypeString,
Optional: true,
ForceNew: true,
},
"status": {
Type: schema.TypeString,
Optional: true,
ForceNew: true,
ValidateFunc: validation.StringInSlice([]string{"Pending", "Running", "ScheduleFailed", "Scheduling", "Succeeded"}, false),
},
"tags": tagsSchema(),
"vswitch_id": {
Type: schema.TypeString,
Optional: true,
ForceNew: true,
},
"with_event": {
Type: schema.TypeBool,
Optional: true,
ForceNew: true,
},
"zone_id": {
Type: schema.TypeString,
Optional: true,
ForceNew: true,
},
"output_file": {
Type: schema.TypeString,
Optional: true,
},
"groups": {
Type: schema.TypeList,
Computed: true,
Elem: &schema.Resource{
Schema: map[string]*schema.Schema{
"id": {
Type: schema.TypeString,
Computed: true,
},
"container_group_id": {
Type: schema.TypeString,
Computed: true,
},
"container_group_name": {
Type: schema.TypeString,
Computed: true,
},
"containers": {
Type: schema.TypeList,
Computed: true,
Elem: &schema.Resource{
Schema: map[string]*schema.Schema{
"args": {
Type: schema.TypeList,
Computed: true,
Elem: &schema.Schema{Type: schema.TypeString},
},
"commands": {
Type: schema.TypeList,
Computed: true,
Elem: &schema.Schema{Type: schema.TypeString},
},
"cpu": {
Type: schema.TypeFloat,
Computed: true,
},
"environment_vars": {
Type: schema.TypeList,
Computed: true,
Elem: &schema.Resource{
Schema: map[string]*schema.Schema{
"key": {
Type: schema.TypeString,
Computed: true,
},
"value": {
Type: schema.TypeString,
Computed: true,
},
},
},
},
"gpu": {
Type: schema.TypeInt,
Computed: true,
},
"image": {
Type: schema.TypeString,
Computed: true,
},
"image_pull_policy": {
Type: schema.TypeString,
Computed: true,
},
"memory": {
Type: schema.TypeFloat,
Computed: true,
},
"name": {
Type: schema.TypeString,
Computed: true,
},
"ports": {
Type: schema.TypeList,
Computed: true,
Elem: &schema.Resource{
Schema: map[string]*schema.Schema{
"port": {
Type: schema.TypeInt,
Computed: true,
},
"protocol": {
Type: schema.TypeString,
Computed: true,
},
},
},
},
"ready": {
Type: schema.TypeBool,
Computed: true,
},
"restart_count": {
Type: schema.TypeInt,
Computed: true,
},
"volume_mounts": {
Type: schema.TypeList,
Computed: true,
Elem: &schema.Resource{
Schema: map[string]*schema.Schema{
"mount_path": {
Type: schema.TypeString,
Computed: true,
},
"name": {
Type: schema.TypeString,
Computed: true,
},
"read_only": {
Type: schema.TypeBool,
Computed: true,
},
},
},
},
"working_dir": {
Type: schema.TypeString,
Computed: true,
},
},
},
},
"cpu": {
Type: schema.TypeFloat,
Computed: true,
},
"discount": {
Type: schema.TypeInt,
Computed: true,
},
"dns_config": {
Type: schema.TypeList,
Computed: true,
Elem: &schema.Resource{
Schema: map[string]*schema.Schema{
"name_servers": {
Type: schema.TypeList,
Computed: true,
Elem: &schema.Schema{Type: schema.TypeString},
},
"options": {
Type: schema.TypeList,
Computed: true,
Elem: &schema.Resource{
Schema: map[string]*schema.Schema{
"name": {
Type: schema.TypeString,
Computed: true,
},
"value": {
Type: schema.TypeString,
Computed: true,
},
},
},
},
"searches": {
Type: schema.TypeList,
Computed: true,
Elem: &schema.Schema{Type: schema.TypeString},
},
},
},
},
"eci_security_context": {
Type: schema.TypeList,
Computed: true,
Elem: &schema.Resource{
Schema: map[string]*schema.Schema{
"sysctls": {
Type: schema.TypeList,
Computed: true,
Elem: &schema.Resource{
Schema: map[string]*schema.Schema{
"name": {
Type: schema.TypeString,
Computed: true,
},
"value": {
Type: schema.TypeString,
Computed: true,
},
},
},
},
},
},
},
"eni_instance_id": {
Type: schema.TypeString,
Computed: true,
},
"events": {
Type: schema.TypeList,
Computed: true,
Elem: &schema.Resource{
Schema: map[string]*schema.Schema{
"count": {
Type: schema.TypeInt,
Computed: true,
},
"first_timestamp": {
Type: schema.TypeString,
Computed: true,
},
"last_timestamp": {
Type: schema.TypeString,
Computed: true,
},
"message": {
Type: schema.TypeString,
Computed: true,
},
"name": {
Type: schema.TypeString,
Computed: true,
},
"reason": {
Type: schema.TypeString,
Computed: true,
},
"type": {
Type: schema.TypeString,
Computed: true,
},
},
},
},
"expired_time": {
Type: schema.TypeString,
Computed: true,
},
"failed_time": {
Type: schema.TypeString,
Computed: true,
},
"host_aliases": {
Type: schema.TypeList,
Computed: true,
Elem: &schema.Resource{
Schema: map[string]*schema.Schema{
"hostnames": {
Type: schema.TypeList,
Computed: true,
Elem: &schema.Schema{Type: schema.TypeString},
},
"ip": {
Type: schema.TypeString,
Computed: true,
},
},
},
},
"init_containers": {
Type: schema.TypeList,
Computed: true,
Elem: &schema.Resource{
Schema: map[string]*schema.Schema{
"args": {
Type: schema.TypeList,
Computed: true,
Elem: &schema.Schema{Type: schema.TypeString},
},
"commands": {
Type: schema.TypeList,
Computed: true,
Elem: &schema.Schema{Type: schema.TypeString},
},
"cpu": {
Type: schema.TypeFloat,
Computed: true,
},
"environment_vars": {
Type: schema.TypeList,
Computed: true,
Elem: &schema.Resource{
Schema: map[string]*schema.Schema{
"key": {
Type: schema.TypeString,
Computed: true,
},
"value": {
Type: schema.TypeString,
Computed: true,
},
},
},
},
"gpu": {
Type: schema.TypeInt,
Computed: true,
},
"image": {
Type: schema.TypeString,
Computed: true,
},
"image_pull_policy": {
Type: schema.TypeString,
Computed: true,
},
"memory": {
Type: schema.TypeFloat,
Computed: true,
},
"name": {
Type: schema.TypeString,
Computed: true,
},
"ports": {
Type: schema.TypeList,
Computed: true,
Elem: &schema.Resource{
Schema: map[string]*schema.Schema{
"port": {
Type: schema.TypeInt,
Computed: true,
},
"protocol": {
Type: schema.TypeString,
Computed: true,
},
},
},
},
"ready": {
Type: schema.TypeBool,
Computed: true,
},
"restart_count": {
Type: schema.TypeInt,
Computed: true,
},
"volume_mounts": {
Type: schema.TypeList,
Computed: true,
Elem: &schema.Resource{
Schema: map[string]*schema.Schema{
"mount_path": {
Type: schema.TypeString,
Computed: true,
},
"name": {
Type: schema.TypeString,
Computed: true,
},
"read_only": {
Type: schema.TypeBool,
Computed: true,
},
},
},
},
"working_dir": {
Type: schema.TypeString,
Computed: true,
},
},
},
},
"instance_type": {
Type: schema.TypeString,
Computed: true,
},
"internet_ip": {
Type: schema.TypeString,
Computed: true,
},
"intranet_ip": {
Type: schema.TypeString,
Computed: true,
},
"ipv6_address": {
Type: schema.TypeString,
Computed: true,
},
"memory": {
Type: schema.TypeFloat,
Computed: true,
},
"ram_role_name": {
Type: schema.TypeString,
Computed: true,
},
"resource_group_id": {
Type: schema.TypeString,
Computed: true,
},
"restart_policy": {
Type: schema.TypeString,
Computed: true,
},
"security_group_id": {
Type: schema.TypeString,
Computed: true,
},
"status": {
Type: schema.TypeString,
Computed: true,
},
"succeeded_time": {
Type: schema.TypeString,
Computed: true,
},
"tags": {
Type: schema.TypeMap,
Computed: true,
},
"vswitch_id": {
Type: schema.TypeString,
Computed: true,
},
"volumes": {
Type: schema.TypeList,
Computed: true,
Elem: &schema.Resource{
Schema: map[string]*schema.Schema{
"config_file_volume_config_file_to_paths": {
Type: schema.TypeList,
Computed: true,
Elem: &schema.Resource{
Schema: map[string]*schema.Schema{
"content": {
Type: schema.TypeString,
Computed: true,
},
"path": {
Type: schema.TypeString,
Computed: true,
},
},
},
},
"disk_volume_disk_id": {
Type: schema.TypeString,
Computed: true,
},
"disk_volume_fs_type": {
Type: schema.TypeString,
Computed: true,
},
"flex_volume_driver": {
Type: schema.TypeString,
Computed: true,
},
"flex_volume_fs_type": {
Type: schema.TypeString,
Computed: true,
},
"flex_volume_options": {
Type: schema.TypeString,
Computed: true,
},
"nfs_volume_path": {
Type: schema.TypeString,
Computed: true,
},
"nfs_volume_read_only": {
Type: schema.TypeBool,
Computed: true,
},
"nfs_volume_server": {
Type: schema.TypeString,
Computed: true,
},
"name": {
Type: schema.TypeString,
Computed: true,
},
"type": {
Type: schema.TypeString,
Computed: true,
},
},
},
},
"vpc_id": {
Type: schema.TypeString,
Computed: true,
},
"zone_id": {
Type: schema.TypeString,
Computed: true,
},
},
},
},
"enable_details": {
Type: schema.TypeBool,
Optional: true,
Default: false,
},
},
}
}