Oracle Cloud Infrastructure v2.11.0 published on Thursday, Sep 19, 2024 by Pulumi
oci.Artifacts.getContainerImage
Explore with Pulumi AI
This data source provides details about a specific Container Image resource in Oracle Cloud Infrastructure Artifacts service.
Get container image metadata.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testContainerImage = oci.Artifacts.getContainerImage({
imageId: containerImageId,
});
import pulumi
import pulumi_oci as oci
test_container_image = oci.Artifacts.get_container_image(image_id=container_image_id)
package main
import (
"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/Artifacts"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := Artifacts.GetContainerImage(ctx, &artifacts.GetContainerImageArgs{
ImageId: containerImageId,
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Oci = Pulumi.Oci;
return await Deployment.RunAsync(() =>
{
var testContainerImage = Oci.Artifacts.GetContainerImage.Invoke(new()
{
ImageId = containerImageId,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.Artifacts.ArtifactsFunctions;
import com.pulumi.oci.Artifacts.inputs.GetContainerImageArgs;
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 testContainerImage = ArtifactsFunctions.getContainerImage(GetContainerImageArgs.builder()
.imageId(containerImageId)
.build());
}
}
variables:
testContainerImage:
fn::invoke:
Function: oci:Artifacts:getContainerImage
Arguments:
imageId: ${containerImageId}
Using getContainerImage
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 getContainerImage(args: GetContainerImageArgs, opts?: InvokeOptions): Promise<GetContainerImageResult>
function getContainerImageOutput(args: GetContainerImageOutputArgs, opts?: InvokeOptions): Output<GetContainerImageResult>
def get_container_image(image_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetContainerImageResult
def get_container_image_output(image_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetContainerImageResult]
func GetContainerImage(ctx *Context, args *GetContainerImageArgs, opts ...InvokeOption) (*GetContainerImageResult, error)
func GetContainerImageOutput(ctx *Context, args *GetContainerImageOutputArgs, opts ...InvokeOption) GetContainerImageResultOutput
> Note: This function is named GetContainerImage
in the Go SDK.
public static class GetContainerImage
{
public static Task<GetContainerImageResult> InvokeAsync(GetContainerImageArgs args, InvokeOptions? opts = null)
public static Output<GetContainerImageResult> Invoke(GetContainerImageInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetContainerImageResult> getContainerImage(GetContainerImageArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: oci:Artifacts/getContainerImage:getContainerImage
arguments:
# arguments dictionary
The following arguments are supported:
getContainerImage Result
The following output properties are available:
- Compartment
Id string - The compartment OCID to which the container image belongs. Inferred from the container repository.
- Created
By string - The OCID of the user or principal that pushed the version.
- Dictionary<string, string>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"}
- Digest string
- The sha256 digest of the image layer.
- Display
Name string - The repository name and the most recent version associated with the image. If there are no versions associated with the image, then last known version and digest are used instead. If the last known version is unavailable, then 'unknown' is used instead of the version. Example:
ubuntu:latest
orubuntu:latest@sha256:45b23dee08af5e43a7fea6c4cf9c25ccf269ee113168c19722f87876677c5cb2
- Dictionary<string, string>
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"}
- Id string
- The provider-assigned unique ID for this managed resource.
- Image
Id string - Layers
List<Get
Container Image Layer> - Layers of which the image is composed, ordered by the layer digest.
- Layers
Size stringIn Bytes - The total size of the container image layers in bytes.
- Manifest
Size intIn Bytes - The size of the container image manifest in bytes.
- Pull
Count string - Total number of pulls.
- Repository
Id string - The OCID of the container repository.
- Repository
Name string - The container repository name.
- State string
- The current state of the container image.
- Dictionary<string, string>
- The system tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"}
- Time
Created string - The creation time of the version.
- Time
Last stringPulled - An RFC 3339 timestamp indicating when the image was last pulled.
- Version string
- The version name.
- Versions
List<Get
Container Image Version> - The versions associated with this image.
- Compartment
Id string - The compartment OCID to which the container image belongs. Inferred from the container repository.
- Created
By string - The OCID of the user or principal that pushed the version.
- map[string]string
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"}
- Digest string
- The sha256 digest of the image layer.
- Display
Name string - The repository name and the most recent version associated with the image. If there are no versions associated with the image, then last known version and digest are used instead. If the last known version is unavailable, then 'unknown' is used instead of the version. Example:
ubuntu:latest
orubuntu:latest@sha256:45b23dee08af5e43a7fea6c4cf9c25ccf269ee113168c19722f87876677c5cb2
- map[string]string
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"}
- Id string
- The provider-assigned unique ID for this managed resource.
- Image
Id string - Layers
[]Get
Container Image Layer - Layers of which the image is composed, ordered by the layer digest.
- Layers
Size stringIn Bytes - The total size of the container image layers in bytes.
- Manifest
Size intIn Bytes - The size of the container image manifest in bytes.
- Pull
Count string - Total number of pulls.
- Repository
Id string - The OCID of the container repository.
- Repository
Name string - The container repository name.
- State string
- The current state of the container image.
- map[string]string
- The system tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"}
- Time
Created string - The creation time of the version.
- Time
Last stringPulled - An RFC 3339 timestamp indicating when the image was last pulled.
- Version string
- The version name.
- Versions
[]Get
Container Image Version - The versions associated with this image.
- compartment
Id String - The compartment OCID to which the container image belongs. Inferred from the container repository.
- created
By String - The OCID of the user or principal that pushed the version.
- Map<String,String>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"}
- digest String
- The sha256 digest of the image layer.
- display
Name String - The repository name and the most recent version associated with the image. If there are no versions associated with the image, then last known version and digest are used instead. If the last known version is unavailable, then 'unknown' is used instead of the version. Example:
ubuntu:latest
orubuntu:latest@sha256:45b23dee08af5e43a7fea6c4cf9c25ccf269ee113168c19722f87876677c5cb2
- Map<String,String>
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"}
- id String
- The provider-assigned unique ID for this managed resource.
- image
Id String - layers
List<Get
Container Image Layer> - Layers of which the image is composed, ordered by the layer digest.
- layers
Size StringIn Bytes - The total size of the container image layers in bytes.
- manifest
Size IntegerIn Bytes - The size of the container image manifest in bytes.
- pull
Count String - Total number of pulls.
- repository
Id String - The OCID of the container repository.
- repository
Name String - The container repository name.
- state String
- The current state of the container image.
- Map<String,String>
- The system tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"}
- time
Created String - The creation time of the version.
- time
Last StringPulled - An RFC 3339 timestamp indicating when the image was last pulled.
- version String
- The version name.
- versions
List<Get
Container Image Version> - The versions associated with this image.
- compartment
Id string - The compartment OCID to which the container image belongs. Inferred from the container repository.
- created
By string - The OCID of the user or principal that pushed the version.
- {[key: string]: string}
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"}
- digest string
- The sha256 digest of the image layer.
- display
Name string - The repository name and the most recent version associated with the image. If there are no versions associated with the image, then last known version and digest are used instead. If the last known version is unavailable, then 'unknown' is used instead of the version. Example:
ubuntu:latest
orubuntu:latest@sha256:45b23dee08af5e43a7fea6c4cf9c25ccf269ee113168c19722f87876677c5cb2
- {[key: string]: string}
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"}
- id string
- The provider-assigned unique ID for this managed resource.
- image
Id string - layers
Get
Container Image Layer[] - Layers of which the image is composed, ordered by the layer digest.
- layers
Size stringIn Bytes - The total size of the container image layers in bytes.
- manifest
Size numberIn Bytes - The size of the container image manifest in bytes.
- pull
Count string - Total number of pulls.
- repository
Id string - The OCID of the container repository.
- repository
Name string - The container repository name.
- state string
- The current state of the container image.
- {[key: string]: string}
- The system tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"}
- time
Created string - The creation time of the version.
- time
Last stringPulled - An RFC 3339 timestamp indicating when the image was last pulled.
- version string
- The version name.
- versions
Get
Container Image Version[] - The versions associated with this image.
- compartment_
id str - The compartment OCID to which the container image belongs. Inferred from the container repository.
- created_
by str - The OCID of the user or principal that pushed the version.
- Mapping[str, str]
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"}
- digest str
- The sha256 digest of the image layer.
- display_
name str - The repository name and the most recent version associated with the image. If there are no versions associated with the image, then last known version and digest are used instead. If the last known version is unavailable, then 'unknown' is used instead of the version. Example:
ubuntu:latest
orubuntu:latest@sha256:45b23dee08af5e43a7fea6c4cf9c25ccf269ee113168c19722f87876677c5cb2
- Mapping[str, str]
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"}
- id str
- The provider-assigned unique ID for this managed resource.
- image_
id str - layers
Sequence[artifacts.
Get Container Image Layer] - Layers of which the image is composed, ordered by the layer digest.
- layers_
size_ strin_ bytes - The total size of the container image layers in bytes.
- manifest_
size_ intin_ bytes - The size of the container image manifest in bytes.
- pull_
count str - Total number of pulls.
- repository_
id str - The OCID of the container repository.
- repository_
name str - The container repository name.
- state str
- The current state of the container image.
- Mapping[str, str]
- The system tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"}
- time_
created str - The creation time of the version.
- time_
last_ strpulled - An RFC 3339 timestamp indicating when the image was last pulled.
- version str
- The version name.
- versions
Sequence[artifacts.
Get Container Image Version] - The versions associated with this image.
- compartment
Id String - The compartment OCID to which the container image belongs. Inferred from the container repository.
- created
By String - The OCID of the user or principal that pushed the version.
- Map<String>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"}
- digest String
- The sha256 digest of the image layer.
- display
Name String - The repository name and the most recent version associated with the image. If there are no versions associated with the image, then last known version and digest are used instead. If the last known version is unavailable, then 'unknown' is used instead of the version. Example:
ubuntu:latest
orubuntu:latest@sha256:45b23dee08af5e43a7fea6c4cf9c25ccf269ee113168c19722f87876677c5cb2
- Map<String>
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"}
- id String
- The provider-assigned unique ID for this managed resource.
- image
Id String - layers List<Property Map>
- Layers of which the image is composed, ordered by the layer digest.
- layers
Size StringIn Bytes - The total size of the container image layers in bytes.
- manifest
Size NumberIn Bytes - The size of the container image manifest in bytes.
- pull
Count String - Total number of pulls.
- repository
Id String - The OCID of the container repository.
- repository
Name String - The container repository name.
- state String
- The current state of the container image.
- Map<String>
- The system tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"}
- time
Created String - The creation time of the version.
- time
Last StringPulled - An RFC 3339 timestamp indicating when the image was last pulled.
- version String
- The version name.
- versions List<Property Map>
- The versions associated with this image.
Supporting Types
GetContainerImageLayer
- Digest string
- The sha256 digest of the image layer.
- Size
In stringBytes - The size of the layer in bytes.
- Time
Created string - The creation time of the version.
- Digest string
- The sha256 digest of the image layer.
- Size
In stringBytes - The size of the layer in bytes.
- Time
Created string - The creation time of the version.
- digest String
- The sha256 digest of the image layer.
- size
In StringBytes - The size of the layer in bytes.
- time
Created String - The creation time of the version.
- digest string
- The sha256 digest of the image layer.
- size
In stringBytes - The size of the layer in bytes.
- time
Created string - The creation time of the version.
- digest str
- The sha256 digest of the image layer.
- size_
in_ strbytes - The size of the layer in bytes.
- time_
created str - The creation time of the version.
- digest String
- The sha256 digest of the image layer.
- size
In StringBytes - The size of the layer in bytes.
- time
Created String - The creation time of the version.
GetContainerImageVersion
- Created
By string - The OCID of the user or principal that pushed the version.
- Time
Created string - The creation time of the version.
- Version string
- The version name.
- Created
By string - The OCID of the user or principal that pushed the version.
- Time
Created string - The creation time of the version.
- Version string
- The version name.
- created
By String - The OCID of the user or principal that pushed the version.
- time
Created String - The creation time of the version.
- version String
- The version name.
- created
By string - The OCID of the user or principal that pushed the version.
- time
Created string - The creation time of the version.
- version string
- The version name.
- created_
by str - The OCID of the user or principal that pushed the version.
- time_
created str - The creation time of the version.
- version str
- The version name.
- created
By String - The OCID of the user or principal that pushed the version.
- time
Created String - The creation time of the version.
- version String
- The version name.
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oci
Terraform Provider.