Alibaba Cloud v3.66.0 published on Friday, Nov 15, 2024 by Pulumi
alicloud.eci.getImageCaches
Explore with Pulumi AI
Provides a collection of ECI Image Cache to the specified filters.
NOTE: Available in 1.90.0+.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const example = alicloud.eci.getImageCaches({
ids: ["imc-bp1ef0dyp7ldhb1d****"],
});
export const imageCache = example.then(example => example.caches?.[0]?.id);
import pulumi
import pulumi_alicloud as alicloud
example = alicloud.eci.get_image_caches(ids=["imc-bp1ef0dyp7ldhb1d****"])
pulumi.export("imageCache", example.caches[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.GetImageCaches(ctx, &eci.GetImageCachesArgs{
Ids: []string{
"imc-bp1ef0dyp7ldhb1d****",
},
}, nil)
if err != nil {
return err
}
ctx.Export("imageCache", example.Caches[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.GetImageCaches.Invoke(new()
{
Ids = new[]
{
"imc-bp1ef0dyp7ldhb1d****",
},
});
return new Dictionary<string, object?>
{
["imageCache"] = example.Apply(getImageCachesResult => getImageCachesResult.Caches[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.GetImageCachesArgs;
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.getImageCaches(GetImageCachesArgs.builder()
.ids("imc-bp1ef0dyp7ldhb1d****")
.build());
ctx.export("imageCache", example.applyValue(getImageCachesResult -> getImageCachesResult.caches()[0].id()));
}
}
variables:
example:
fn::invoke:
Function: alicloud:eci:getImageCaches
Arguments:
ids:
- imc-bp1ef0dyp7ldhb1d****
outputs:
imageCache: ${example.caches[0].id}
Using getImageCaches
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 getImageCaches(args: GetImageCachesArgs, opts?: InvokeOptions): Promise<GetImageCachesResult>
function getImageCachesOutput(args: GetImageCachesOutputArgs, opts?: InvokeOptions): Output<GetImageCachesResult>
def get_image_caches(ids: Optional[Sequence[str]] = None,
image: Optional[str] = None,
image_cache_name: Optional[str] = None,
name_regex: Optional[str] = None,
output_file: Optional[str] = None,
snapshot_id: Optional[str] = None,
status: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetImageCachesResult
def get_image_caches_output(ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
image: Optional[pulumi.Input[str]] = None,
image_cache_name: Optional[pulumi.Input[str]] = None,
name_regex: Optional[pulumi.Input[str]] = None,
output_file: Optional[pulumi.Input[str]] = None,
snapshot_id: Optional[pulumi.Input[str]] = None,
status: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetImageCachesResult]
func GetImageCaches(ctx *Context, args *GetImageCachesArgs, opts ...InvokeOption) (*GetImageCachesResult, error)
func GetImageCachesOutput(ctx *Context, args *GetImageCachesOutputArgs, opts ...InvokeOption) GetImageCachesResultOutput
> Note: This function is named GetImageCaches
in the Go SDK.
public static class GetImageCaches
{
public static Task<GetImageCachesResult> InvokeAsync(GetImageCachesArgs args, InvokeOptions? opts = null)
public static Output<GetImageCachesResult> Invoke(GetImageCachesInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetImageCachesResult> getImageCaches(GetImageCachesArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: alicloud:eci/getImageCaches:getImageCaches
arguments:
# arguments dictionary
The following arguments are supported:
- Ids List<string>
- A list ids of ECI Image Cache.
- Image string
- Find the mirror cache containing it according to the image name.
- Image
Cache stringName - The name of ECI Image Cache.
- Name
Regex string - A regex string to filter results by the image cache name.
- Output
File string - File name where to save data source results (after running
pulumi preview
). - Snapshot
Id string - The id of snapshot.
- Status string
- The status of ECI Image Cache.
- Ids []string
- A list ids of ECI Image Cache.
- Image string
- Find the mirror cache containing it according to the image name.
- Image
Cache stringName - The name of ECI Image Cache.
- Name
Regex string - A regex string to filter results by the image cache name.
- Output
File string - File name where to save data source results (after running
pulumi preview
). - Snapshot
Id string - The id of snapshot.
- Status string
- The status of ECI Image Cache.
- ids List<String>
- A list ids of ECI Image Cache.
- image String
- Find the mirror cache containing it according to the image name.
- image
Cache StringName - The name of ECI Image Cache.
- name
Regex String - A regex string to filter results by the image cache name.
- output
File String - File name where to save data source results (after running
pulumi preview
). - snapshot
Id String - The id of snapshot.
- status String
- The status of ECI Image Cache.
- ids string[]
- A list ids of ECI Image Cache.
- image string
- Find the mirror cache containing it according to the image name.
- image
Cache stringName - The name of ECI Image Cache.
- name
Regex string - A regex string to filter results by the image cache name.
- output
File string - File name where to save data source results (after running
pulumi preview
). - snapshot
Id string - The id of snapshot.
- status string
- The status of ECI Image Cache.
- ids Sequence[str]
- A list ids of ECI Image Cache.
- image str
- Find the mirror cache containing it according to the image name.
- image_
cache_ strname - The name of ECI Image Cache.
- name_
regex str - A regex string to filter results by the image cache name.
- output_
file str - File name where to save data source results (after running
pulumi preview
). - snapshot_
id str - The id of snapshot.
- status str
- The status of ECI Image Cache.
- ids List<String>
- A list ids of ECI Image Cache.
- image String
- Find the mirror cache containing it according to the image name.
- image
Cache StringName - The name of ECI Image Cache.
- name
Regex String - A regex string to filter results by the image cache name.
- output
File String - File name where to save data source results (after running
pulumi preview
). - snapshot
Id String - The id of snapshot.
- status String
- The status of ECI Image Cache.
getImageCaches Result
The following output properties are available:
- Caches
List<Pulumi.
Ali Cloud. Eci. Outputs. Get Image Caches Cach> - A list of caches. Each element contains the following attributes:
- Id string
- The provider-assigned unique ID for this managed resource.
- Ids List<string>
- A list ids of ECI Image Cache.
- Names List<string>
- A list of ECI Image Cache names.
- Image string
- Image
Cache stringName - The name of the ECI Image Cache.
- Name
Regex string - Output
File string - Snapshot
Id string - The id of snapshot.
- Status string
- The status of ECI Image Cache.
- Caches
[]Get
Image Caches Cach - A list of caches. Each element contains the following attributes:
- Id string
- The provider-assigned unique ID for this managed resource.
- Ids []string
- A list ids of ECI Image Cache.
- Names []string
- A list of ECI Image Cache names.
- Image string
- Image
Cache stringName - The name of the ECI Image Cache.
- Name
Regex string - Output
File string - Snapshot
Id string - The id of snapshot.
- Status string
- The status of ECI Image Cache.
- caches
List<Get
Image Caches Cach> - A list of caches. Each element contains the following attributes:
- id String
- The provider-assigned unique ID for this managed resource.
- ids List<String>
- A list ids of ECI Image Cache.
- names List<String>
- A list of ECI Image Cache names.
- image String
- image
Cache StringName - The name of the ECI Image Cache.
- name
Regex String - output
File String - snapshot
Id String - The id of snapshot.
- status String
- The status of ECI Image Cache.
- caches
Get
Image Caches Cach[] - A list of caches. Each element contains the following attributes:
- id string
- The provider-assigned unique ID for this managed resource.
- ids string[]
- A list ids of ECI Image Cache.
- names string[]
- A list of ECI Image Cache names.
- image string
- image
Cache stringName - The name of the ECI Image Cache.
- name
Regex string - output
File string - snapshot
Id string - The id of snapshot.
- status string
- The status of ECI Image Cache.
- caches
Sequence[Get
Image Caches Cach] - A list of caches. Each element contains the following attributes:
- id str
- The provider-assigned unique ID for this managed resource.
- ids Sequence[str]
- A list ids of ECI Image Cache.
- names Sequence[str]
- A list of ECI Image Cache names.
- image str
- image_
cache_ strname - The name of the ECI Image Cache.
- name_
regex str - output_
file str - snapshot_
id str - The id of snapshot.
- status str
- The status of ECI Image Cache.
- caches List<Property Map>
- A list of caches. Each element contains the following attributes:
- id String
- The provider-assigned unique ID for this managed resource.
- ids List<String>
- A list ids of ECI Image Cache.
- names List<String>
- A list of ECI Image Cache names.
- image String
- image
Cache StringName - The name of the ECI Image Cache.
- name
Regex String - output
File String - snapshot
Id String - The id of snapshot.
- status String
- The status of ECI Image Cache.
Supporting Types
GetImageCachesCach
- Container
Group stringId - The id of container group.
- Events
List<Pulumi.
Ali Cloud. Eci. Inputs. Get Image Caches Cach Event> - Image cache pulls image event information.
- Expire
Date stringTime - The time of expired.
- Id string
- The ID of the ECI Image Cache.
- Image
Cache stringId - The id of the ECI Image Cache.
- Image
Cache stringName - The name of ECI Image Cache.
- Images List<string>
- The list of cached images.
- Progress string
- The progress of ECI Image Cache.
- Snapshot
Id string - The id of snapshot.
- Status string
- The status of ECI Image Cache.
- Container
Group stringId - The id of container group.
- Events
[]Get
Image Caches Cach Event - Image cache pulls image event information.
- Expire
Date stringTime - The time of expired.
- Id string
- The ID of the ECI Image Cache.
- Image
Cache stringId - The id of the ECI Image Cache.
- Image
Cache stringName - The name of ECI Image Cache.
- Images []string
- The list of cached images.
- Progress string
- The progress of ECI Image Cache.
- Snapshot
Id string - The id of snapshot.
- Status string
- The status of ECI Image Cache.
- container
Group StringId - The id of container group.
- events
List<Get
Image Caches Cach Event> - Image cache pulls image event information.
- expire
Date StringTime - The time of expired.
- id String
- The ID of the ECI Image Cache.
- image
Cache StringId - The id of the ECI Image Cache.
- image
Cache StringName - The name of ECI Image Cache.
- images List<String>
- The list of cached images.
- progress String
- The progress of ECI Image Cache.
- snapshot
Id String - The id of snapshot.
- status String
- The status of ECI Image Cache.
- container
Group stringId - The id of container group.
- events
Get
Image Caches Cach Event[] - Image cache pulls image event information.
- expire
Date stringTime - The time of expired.
- id string
- The ID of the ECI Image Cache.
- image
Cache stringId - The id of the ECI Image Cache.
- image
Cache stringName - The name of ECI Image Cache.
- images string[]
- The list of cached images.
- progress string
- The progress of ECI Image Cache.
- snapshot
Id string - The id of snapshot.
- status string
- The status of ECI Image Cache.
- container_
group_ strid - The id of container group.
- events
Sequence[Get
Image Caches Cach Event] - Image cache pulls image event information.
- expire_
date_ strtime - The time of expired.
- id str
- The ID of the ECI Image Cache.
- image_
cache_ strid - The id of the ECI Image Cache.
- image_
cache_ strname - The name of ECI Image Cache.
- images Sequence[str]
- The list of cached images.
- progress str
- The progress of ECI Image Cache.
- snapshot_
id str - The id of snapshot.
- status str
- The status of ECI Image Cache.
- container
Group StringId - The id of container group.
- events List<Property Map>
- Image cache pulls image event information.
- expire
Date StringTime - The time of expired.
- id String
- The ID of the ECI Image Cache.
- image
Cache StringId - The id of the ECI Image Cache.
- image
Cache StringName - The name of ECI Image Cache.
- images List<String>
- The list of cached images.
- progress String
- The progress of ECI Image Cache.
- snapshot
Id String - The id of snapshot.
- status String
- The status of ECI Image Cache.
GetImageCachesCachEvent
- Count int
- Number of events.
- First
Timestamp string - Start time.
- Last
Timestamp string - End time.
- Message string
- Name string
- The name of event.
- Type string
- The type of event.
- Count int
- Number of events.
- First
Timestamp string - Start time.
- Last
Timestamp string - End time.
- Message string
- Name string
- The name of event.
- Type string
- The type of event.
- count Integer
- Number of events.
- first
Timestamp String - Start time.
- last
Timestamp String - End time.
- message String
- name String
- The name of event.
- type String
- The type of event.
- count number
- Number of events.
- first
Timestamp string - Start time.
- last
Timestamp string - End time.
- message string
- name string
- The name of event.
- type string
- The type of event.
- count int
- Number of events.
- first_
timestamp str - Start time.
- last_
timestamp str - End time.
- message str
- name str
- The name of event.
- type str
- The type of event.
- count Number
- Number of events.
- first
Timestamp String - Start time.
- last
Timestamp String - End time.
- message String
- name String
- The name of event.
- type String
- The type of event.
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloud
Terraform Provider.