cpln.getImages
Explore with Pulumi AI
Use this data source to access information about all Images within Control Plane.
Optional
- query (Block List, Max: 1) (see below).
query
Optional:
- fetch (String) Type of fetch. Specify either:
links
oritems
. Default:items
. - spec (Block List, Max: 1) (see below).
query.spec
Optional:
- match (String) Type of match. Available values:
all
,any
,none
. Default:all
. - terms (Block List) (see below).
query.spec.terms
Terms can only contain one of the following attributes: property
, rel
, tag
.
Optional:
op (String) Type of query operation. Available values:
=
,>
,>=
,<
,<=
,!=
,exists
,!exists
. Default:=
.property (String) Property to use for query evaluation.
rel (String) Rel to use use for query evaluation.
tag (String) Tag key to use for query evaluation.
value (String) Testing value for query evaluation.
Outputs
The following attributes are exported:
- images (Block List) (see below).
images
- cpln_id (String) The ID, in GUID format, of the Image.
- name (String) Name of the Image.
- tags (Map of String) Key-value map of resource tags.
- self_link (String) Full link to this resource. Can be referenced by other resources.
- tag (String) Tag of the image.
- repository (String) Respository name of the image.
- digest (String) A unique SHA256 hash used to identify a specific image version within the image registry.
- manifest (Block List, Max: 1) (see below)
manifest
The manifest provides configuration and layers information about the image. It plays a crucial role in the Docker image distribution system, enabling image creation, verification, and replication in a consistent and secure manner.
- config (Block List, Max: 1) (see below).
- layers (Block List) (see below).
- media_type (String) Specifies the type of the content represented in the manifest, allowing Docker clients and registries to understand how to handle the document correctly.
- schema_version (Number) The version of the Docker Image Manifest format.
config
and layers
The config is a JSON blob that contains the image configuration data which includes environment variables, default command to run, and other settings necessary to run the container based on this image.
Layers lists the digests of the image’s layers. These layers are filesystem changes or additions made in each step of the Docker image’s creation process. The layers are stored separately and pulled as needed, which allows for efficient storage and transfer of images. Each layer is represented by a SHA256 digest, ensuring the integrity and authenticity of the image.
- size (Number) The size of the image or layer in bytes. This helps in estimating the space required and the download time.
- digest (String) A unique SHA256 hash used to identify a specific image version within the image registry.
- media_type (String) Specifies the type of the content represented in the manifest, allowing Docker clients and registries to understand how to handle the document correctly.
Using getImages
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 getImages(args: GetImagesArgs, opts?: InvokeOptions): Promise<GetImagesResult>
function getImagesOutput(args: GetImagesOutputArgs, opts?: InvokeOptions): Output<GetImagesResult>
def get_images(query: Optional[GetImagesQuery] = None,
opts: Optional[InvokeOptions] = None) -> GetImagesResult
def get_images_output(query: Optional[pulumi.Input[GetImagesQueryArgs]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetImagesResult]
func GetImages(ctx *Context, args *GetImagesArgs, opts ...InvokeOption) (*GetImagesResult, error)
func GetImagesOutput(ctx *Context, args *GetImagesOutputArgs, opts ...InvokeOption) GetImagesResultOutput
> Note: This function is named GetImages
in the Go SDK.
public static class GetImages
{
public static Task<GetImagesResult> InvokeAsync(GetImagesArgs args, InvokeOptions? opts = null)
public static Output<GetImagesResult> Invoke(GetImagesInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetImagesResult> getImages(GetImagesArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: cpln:index/getImages:getImages
arguments:
# arguments dictionary
The following arguments are supported:
getImages Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Images
List<Pulumiverse.
Cpln. Outputs. Get Images Image> - Query
Pulumiverse.
Cpln. Outputs. Get Images Query
- Id string
- The provider-assigned unique ID for this managed resource.
- Images
[]Get
Images Image - Query
Get
Images Query
- id String
- The provider-assigned unique ID for this managed resource.
- images
List<Get
Images Image> - query
Get
Images Query
- id string
- The provider-assigned unique ID for this managed resource.
- images
Get
Images Image[] - query
Get
Images Query
- id str
- The provider-assigned unique ID for this managed resource.
- images
Sequence[Get
Images Image] - query
Get
Images Query
- id String
- The provider-assigned unique ID for this managed resource.
- images List<Property Map>
- query Property Map
Supporting Types
GetImagesImage
- Cpln
Id string - Digest string
- Manifests
List<Pulumiverse.
Cpln. Inputs. Get Images Image Manifest> - Name string
- Repository string
- Self
Link string - Tag string
- Dictionary<string, string>
- Cpln
Id string - Digest string
- Manifests
[]Get
Images Image Manifest - Name string
- Repository string
- Self
Link string - Tag string
- map[string]string
- cpln
Id String - digest String
- manifests
List<Get
Images Image Manifest> - name String
- repository String
- self
Link String - tag String
- Map<String,String>
- cpln
Id string - digest string
- manifests
Get
Images Image Manifest[] - name string
- repository string
- self
Link string - tag string
- {[key: string]: string}
- cpln_
id str - digest str
- manifests
Sequence[Get
Images Image Manifest] - name str
- repository str
- self_
link str - tag str
- Mapping[str, str]
- cpln
Id String - digest String
- manifests List<Property Map>
- name String
- repository String
- self
Link String - tag String
- Map<String>
GetImagesImageManifest
GetImagesImageManifestConfig
- digest str
- media_
type str - size int
GetImagesImageManifestLayer
- digest str
- media_
type str - size int
GetImagesQuery
- Fetch string
- Spec
Get
Images Query Spec
- fetch String
- spec
Get
Images Query Spec
- fetch string
- spec
Get
Images Query Spec
- fetch String
- spec Property Map
GetImagesQuerySpec
- match String
- terms List<Property Map>
GetImagesQuerySpecTerm
Package Details
- Repository
- cpln pulumiverse/pulumi-cpln
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
cpln
Terraform Provider.