1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. Artifacts
  5. ContainerImageSignature
Oracle Cloud Infrastructure v2.32.0 published on Thursday, Apr 24, 2025 by Pulumi

oci.Artifacts.ContainerImageSignature

Explore with Pulumi AI

This resource provides the Container Image Signature resource in Oracle Cloud Infrastructure Artifacts service.

Upload a signature to an image.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";

const testContainerImageSignature = new oci.artifacts.ContainerImageSignature("test_container_image_signature", {
    compartmentId: compartmentId,
    imageId: testImage.id,
    kmsKeyId: testKey.id,
    kmsKeyVersionId: testKeyVersion.id,
    message: containerImageSignatureMessage,
    signature: containerImageSignatureSignature,
    signingAlgorithm: containerImageSignatureSigningAlgorithm,
    definedTags: {
        "Operations.CostCenter": "42",
    },
    freeformTags: {
        Department: "Finance",
    },
});
Copy
import pulumi
import pulumi_oci as oci

test_container_image_signature = oci.artifacts.ContainerImageSignature("test_container_image_signature",
    compartment_id=compartment_id,
    image_id=test_image["id"],
    kms_key_id=test_key["id"],
    kms_key_version_id=test_key_version["id"],
    message=container_image_signature_message,
    signature=container_image_signature_signature,
    signing_algorithm=container_image_signature_signing_algorithm,
    defined_tags={
        "Operations.CostCenter": "42",
    },
    freeform_tags={
        "Department": "Finance",
    })
Copy
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.NewContainerImageSignature(ctx, "test_container_image_signature", &artifacts.ContainerImageSignatureArgs{
			CompartmentId:    pulumi.Any(compartmentId),
			ImageId:          pulumi.Any(testImage.Id),
			KmsKeyId:         pulumi.Any(testKey.Id),
			KmsKeyVersionId:  pulumi.Any(testKeyVersion.Id),
			Message:          pulumi.Any(containerImageSignatureMessage),
			Signature:        pulumi.Any(containerImageSignatureSignature),
			SigningAlgorithm: pulumi.Any(containerImageSignatureSigningAlgorithm),
			DefinedTags: pulumi.StringMap{
				"Operations.CostCenter": pulumi.String("42"),
			},
			FreeformTags: pulumi.StringMap{
				"Department": pulumi.String("Finance"),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Oci = Pulumi.Oci;

return await Deployment.RunAsync(() => 
{
    var testContainerImageSignature = new Oci.Artifacts.ContainerImageSignature("test_container_image_signature", new()
    {
        CompartmentId = compartmentId,
        ImageId = testImage.Id,
        KmsKeyId = testKey.Id,
        KmsKeyVersionId = testKeyVersion.Id,
        Message = containerImageSignatureMessage,
        Signature = containerImageSignatureSignature,
        SigningAlgorithm = containerImageSignatureSigningAlgorithm,
        DefinedTags = 
        {
            { "Operations.CostCenter", "42" },
        },
        FreeformTags = 
        {
            { "Department", "Finance" },
        },
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.Artifacts.ContainerImageSignature;
import com.pulumi.oci.Artifacts.ContainerImageSignatureArgs;
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) {
        var testContainerImageSignature = new ContainerImageSignature("testContainerImageSignature", ContainerImageSignatureArgs.builder()
            .compartmentId(compartmentId)
            .imageId(testImage.id())
            .kmsKeyId(testKey.id())
            .kmsKeyVersionId(testKeyVersion.id())
            .message(containerImageSignatureMessage)
            .signature(containerImageSignatureSignature)
            .signingAlgorithm(containerImageSignatureSigningAlgorithm)
            .definedTags(Map.of("Operations.CostCenter", "42"))
            .freeformTags(Map.of("Department", "Finance"))
            .build());

    }
}
Copy
resources:
  testContainerImageSignature:
    type: oci:Artifacts:ContainerImageSignature
    name: test_container_image_signature
    properties:
      compartmentId: ${compartmentId}
      imageId: ${testImage.id}
      kmsKeyId: ${testKey.id}
      kmsKeyVersionId: ${testKeyVersion.id}
      message: ${containerImageSignatureMessage}
      signature: ${containerImageSignatureSignature}
      signingAlgorithm: ${containerImageSignatureSigningAlgorithm}
      definedTags:
        Operations.CostCenter: '42'
      freeformTags:
        Department: Finance
Copy

Create ContainerImageSignature Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new ContainerImageSignature(name: string, args: ContainerImageSignatureArgs, opts?: CustomResourceOptions);
@overload
def ContainerImageSignature(resource_name: str,
                            args: ContainerImageSignatureArgs,
                            opts: Optional[ResourceOptions] = None)

@overload
def ContainerImageSignature(resource_name: str,
                            opts: Optional[ResourceOptions] = None,
                            compartment_id: Optional[str] = None,
                            image_id: Optional[str] = None,
                            kms_key_id: Optional[str] = None,
                            kms_key_version_id: Optional[str] = None,
                            message: Optional[str] = None,
                            signature: Optional[str] = None,
                            signing_algorithm: Optional[str] = None,
                            defined_tags: Optional[Mapping[str, str]] = None,
                            freeform_tags: Optional[Mapping[str, str]] = None)
func NewContainerImageSignature(ctx *Context, name string, args ContainerImageSignatureArgs, opts ...ResourceOption) (*ContainerImageSignature, error)
public ContainerImageSignature(string name, ContainerImageSignatureArgs args, CustomResourceOptions? opts = null)
public ContainerImageSignature(String name, ContainerImageSignatureArgs args)
public ContainerImageSignature(String name, ContainerImageSignatureArgs args, CustomResourceOptions options)
type: oci:Artifacts:ContainerImageSignature
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. ContainerImageSignatureArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. ContainerImageSignatureArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. ContainerImageSignatureArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. ContainerImageSignatureArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. ContainerImageSignatureArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

Constructor example

The following reference example uses placeholder values for all input properties.

var containerImageSignatureResource = new Oci.Artifacts.ContainerImageSignature("containerImageSignatureResource", new()
{
    CompartmentId = "string",
    ImageId = "string",
    KmsKeyId = "string",
    KmsKeyVersionId = "string",
    Message = "string",
    Signature = "string",
    SigningAlgorithm = "string",
    DefinedTags = 
    {
        { "string", "string" },
    },
    FreeformTags = 
    {
        { "string", "string" },
    },
});
Copy
example, err := artifacts.NewContainerImageSignature(ctx, "containerImageSignatureResource", &artifacts.ContainerImageSignatureArgs{
	CompartmentId:    pulumi.String("string"),
	ImageId:          pulumi.String("string"),
	KmsKeyId:         pulumi.String("string"),
	KmsKeyVersionId:  pulumi.String("string"),
	Message:          pulumi.String("string"),
	Signature:        pulumi.String("string"),
	SigningAlgorithm: pulumi.String("string"),
	DefinedTags: pulumi.StringMap{
		"string": pulumi.String("string"),
	},
	FreeformTags: pulumi.StringMap{
		"string": pulumi.String("string"),
	},
})
Copy
var containerImageSignatureResource = new ContainerImageSignature("containerImageSignatureResource", ContainerImageSignatureArgs.builder()
    .compartmentId("string")
    .imageId("string")
    .kmsKeyId("string")
    .kmsKeyVersionId("string")
    .message("string")
    .signature("string")
    .signingAlgorithm("string")
    .definedTags(Map.of("string", "string"))
    .freeformTags(Map.of("string", "string"))
    .build());
Copy
container_image_signature_resource = oci.artifacts.ContainerImageSignature("containerImageSignatureResource",
    compartment_id="string",
    image_id="string",
    kms_key_id="string",
    kms_key_version_id="string",
    message="string",
    signature="string",
    signing_algorithm="string",
    defined_tags={
        "string": "string",
    },
    freeform_tags={
        "string": "string",
    })
Copy
const containerImageSignatureResource = new oci.artifacts.ContainerImageSignature("containerImageSignatureResource", {
    compartmentId: "string",
    imageId: "string",
    kmsKeyId: "string",
    kmsKeyVersionId: "string",
    message: "string",
    signature: "string",
    signingAlgorithm: "string",
    definedTags: {
        string: "string",
    },
    freeformTags: {
        string: "string",
    },
});
Copy
type: oci:Artifacts:ContainerImageSignature
properties:
    compartmentId: string
    definedTags:
        string: string
    freeformTags:
        string: string
    imageId: string
    kmsKeyId: string
    kmsKeyVersionId: string
    message: string
    signature: string
    signingAlgorithm: string
Copy

ContainerImageSignature Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

The ContainerImageSignature resource accepts the following input properties:

CompartmentId
This property is required.
Changes to this property will trigger replacement.
string
The OCID of the compartment in which the container repository exists.
ImageId
This property is required.
Changes to this property will trigger replacement.
string
The OCID of the container image. Example: ocid1.containerimage.oc1..exampleuniqueID
KmsKeyId
This property is required.
Changes to this property will trigger replacement.
string
The OCID of the kmsKeyId used to sign the container image. Example: ocid1.key.oc1..exampleuniqueID
KmsKeyVersionId
This property is required.
Changes to this property will trigger replacement.
string
The OCID of the kmsKeyVersionId used to sign the container image. Example: ocid1.keyversion.oc1..exampleuniqueID
Message
This property is required.
Changes to this property will trigger replacement.
string
The base64 encoded signature payload that was signed.
Signature
This property is required.
Changes to this property will trigger replacement.
string
The signature of the message field using the kmsKeyId, the kmsKeyVersionId, and the signingAlgorithm.
SigningAlgorithm
This property is required.
Changes to this property will trigger replacement.
string

The algorithm to be used for signing. These are the only supported signing algorithms for container images.

** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

DefinedTags Dictionary<string, string>
(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
FreeformTags Dictionary<string, string>
(Updatable) 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"}
CompartmentId
This property is required.
Changes to this property will trigger replacement.
string
The OCID of the compartment in which the container repository exists.
ImageId
This property is required.
Changes to this property will trigger replacement.
string
The OCID of the container image. Example: ocid1.containerimage.oc1..exampleuniqueID
KmsKeyId
This property is required.
Changes to this property will trigger replacement.
string
The OCID of the kmsKeyId used to sign the container image. Example: ocid1.key.oc1..exampleuniqueID
KmsKeyVersionId
This property is required.
Changes to this property will trigger replacement.
string
The OCID of the kmsKeyVersionId used to sign the container image. Example: ocid1.keyversion.oc1..exampleuniqueID
Message
This property is required.
Changes to this property will trigger replacement.
string
The base64 encoded signature payload that was signed.
Signature
This property is required.
Changes to this property will trigger replacement.
string
The signature of the message field using the kmsKeyId, the kmsKeyVersionId, and the signingAlgorithm.
SigningAlgorithm
This property is required.
Changes to this property will trigger replacement.
string

The algorithm to be used for signing. These are the only supported signing algorithms for container images.

** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

DefinedTags map[string]string
(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
FreeformTags map[string]string
(Updatable) 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"}
compartmentId
This property is required.
Changes to this property will trigger replacement.
String
The OCID of the compartment in which the container repository exists.
imageId
This property is required.
Changes to this property will trigger replacement.
String
The OCID of the container image. Example: ocid1.containerimage.oc1..exampleuniqueID
kmsKeyId
This property is required.
Changes to this property will trigger replacement.
String
The OCID of the kmsKeyId used to sign the container image. Example: ocid1.key.oc1..exampleuniqueID
kmsKeyVersionId
This property is required.
Changes to this property will trigger replacement.
String
The OCID of the kmsKeyVersionId used to sign the container image. Example: ocid1.keyversion.oc1..exampleuniqueID
message
This property is required.
Changes to this property will trigger replacement.
String
The base64 encoded signature payload that was signed.
signature
This property is required.
Changes to this property will trigger replacement.
String
The signature of the message field using the kmsKeyId, the kmsKeyVersionId, and the signingAlgorithm.
signingAlgorithm
This property is required.
Changes to this property will trigger replacement.
String

The algorithm to be used for signing. These are the only supported signing algorithms for container images.

** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

definedTags Map<String,String>
(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
freeformTags Map<String,String>
(Updatable) 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"}
compartmentId
This property is required.
Changes to this property will trigger replacement.
string
The OCID of the compartment in which the container repository exists.
imageId
This property is required.
Changes to this property will trigger replacement.
string
The OCID of the container image. Example: ocid1.containerimage.oc1..exampleuniqueID
kmsKeyId
This property is required.
Changes to this property will trigger replacement.
string
The OCID of the kmsKeyId used to sign the container image. Example: ocid1.key.oc1..exampleuniqueID
kmsKeyVersionId
This property is required.
Changes to this property will trigger replacement.
string
The OCID of the kmsKeyVersionId used to sign the container image. Example: ocid1.keyversion.oc1..exampleuniqueID
message
This property is required.
Changes to this property will trigger replacement.
string
The base64 encoded signature payload that was signed.
signature
This property is required.
Changes to this property will trigger replacement.
string
The signature of the message field using the kmsKeyId, the kmsKeyVersionId, and the signingAlgorithm.
signingAlgorithm
This property is required.
Changes to this property will trigger replacement.
string

The algorithm to be used for signing. These are the only supported signing algorithms for container images.

** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

definedTags {[key: string]: string}
(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
freeformTags {[key: string]: string}
(Updatable) 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"}
compartment_id
This property is required.
Changes to this property will trigger replacement.
str
The OCID of the compartment in which the container repository exists.
image_id
This property is required.
Changes to this property will trigger replacement.
str
The OCID of the container image. Example: ocid1.containerimage.oc1..exampleuniqueID
kms_key_id
This property is required.
Changes to this property will trigger replacement.
str
The OCID of the kmsKeyId used to sign the container image. Example: ocid1.key.oc1..exampleuniqueID
kms_key_version_id
This property is required.
Changes to this property will trigger replacement.
str
The OCID of the kmsKeyVersionId used to sign the container image. Example: ocid1.keyversion.oc1..exampleuniqueID
message
This property is required.
Changes to this property will trigger replacement.
str
The base64 encoded signature payload that was signed.
signature
This property is required.
Changes to this property will trigger replacement.
str
The signature of the message field using the kmsKeyId, the kmsKeyVersionId, and the signingAlgorithm.
signing_algorithm
This property is required.
Changes to this property will trigger replacement.
str

The algorithm to be used for signing. These are the only supported signing algorithms for container images.

** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

defined_tags Mapping[str, str]
(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
freeform_tags Mapping[str, str]
(Updatable) 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"}
compartmentId
This property is required.
Changes to this property will trigger replacement.
String
The OCID of the compartment in which the container repository exists.
imageId
This property is required.
Changes to this property will trigger replacement.
String
The OCID of the container image. Example: ocid1.containerimage.oc1..exampleuniqueID
kmsKeyId
This property is required.
Changes to this property will trigger replacement.
String
The OCID of the kmsKeyId used to sign the container image. Example: ocid1.key.oc1..exampleuniqueID
kmsKeyVersionId
This property is required.
Changes to this property will trigger replacement.
String
The OCID of the kmsKeyVersionId used to sign the container image. Example: ocid1.keyversion.oc1..exampleuniqueID
message
This property is required.
Changes to this property will trigger replacement.
String
The base64 encoded signature payload that was signed.
signature
This property is required.
Changes to this property will trigger replacement.
String
The signature of the message field using the kmsKeyId, the kmsKeyVersionId, and the signingAlgorithm.
signingAlgorithm
This property is required.
Changes to this property will trigger replacement.
String

The algorithm to be used for signing. These are the only supported signing algorithms for container images.

** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

definedTags Map<String>
(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
freeformTags Map<String>
(Updatable) 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"}

Outputs

All input properties are implicitly available as output properties. Additionally, the ContainerImageSignature resource produces the following output properties:

CreatedBy string
The id of the user or principal that created the resource.
DisplayName string
The last 10 characters of the kmsKeyId, the last 10 characters of the kmsKeyVersionId, the signingAlgorithm, and the last 10 characters of the signatureId. Example: wrmz22sixa::qdwyc2ptun::SHA_256_RSA_PKCS_PSS::2vwmobasva
Id string
The provider-assigned unique ID for this managed resource.
State string
The current state of the container image signature.
SystemTags 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"}
TimeCreated string
An RFC 3339 timestamp indicating when the image was created.
CreatedBy string
The id of the user or principal that created the resource.
DisplayName string
The last 10 characters of the kmsKeyId, the last 10 characters of the kmsKeyVersionId, the signingAlgorithm, and the last 10 characters of the signatureId. Example: wrmz22sixa::qdwyc2ptun::SHA_256_RSA_PKCS_PSS::2vwmobasva
Id string
The provider-assigned unique ID for this managed resource.
State string
The current state of the container image signature.
SystemTags 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"}
TimeCreated string
An RFC 3339 timestamp indicating when the image was created.
createdBy String
The id of the user or principal that created the resource.
displayName String
The last 10 characters of the kmsKeyId, the last 10 characters of the kmsKeyVersionId, the signingAlgorithm, and the last 10 characters of the signatureId. Example: wrmz22sixa::qdwyc2ptun::SHA_256_RSA_PKCS_PSS::2vwmobasva
id String
The provider-assigned unique ID for this managed resource.
state String
The current state of the container image signature.
systemTags 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"}
timeCreated String
An RFC 3339 timestamp indicating when the image was created.
createdBy string
The id of the user or principal that created the resource.
displayName string
The last 10 characters of the kmsKeyId, the last 10 characters of the kmsKeyVersionId, the signingAlgorithm, and the last 10 characters of the signatureId. Example: wrmz22sixa::qdwyc2ptun::SHA_256_RSA_PKCS_PSS::2vwmobasva
id string
The provider-assigned unique ID for this managed resource.
state string
The current state of the container image signature.
systemTags {[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"}
timeCreated string
An RFC 3339 timestamp indicating when the image was created.
created_by str
The id of the user or principal that created the resource.
display_name str
The last 10 characters of the kmsKeyId, the last 10 characters of the kmsKeyVersionId, the signingAlgorithm, and the last 10 characters of the signatureId. Example: wrmz22sixa::qdwyc2ptun::SHA_256_RSA_PKCS_PSS::2vwmobasva
id str
The provider-assigned unique ID for this managed resource.
state str
The current state of the container image signature.
system_tags 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
An RFC 3339 timestamp indicating when the image was created.
createdBy String
The id of the user or principal that created the resource.
displayName String
The last 10 characters of the kmsKeyId, the last 10 characters of the kmsKeyVersionId, the signingAlgorithm, and the last 10 characters of the signatureId. Example: wrmz22sixa::qdwyc2ptun::SHA_256_RSA_PKCS_PSS::2vwmobasva
id String
The provider-assigned unique ID for this managed resource.
state String
The current state of the container image signature.
systemTags Map<String>
The system tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
timeCreated String
An RFC 3339 timestamp indicating when the image was created.

Look up Existing ContainerImageSignature Resource

Get an existing ContainerImageSignature resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: ContainerImageSignatureState, opts?: CustomResourceOptions): ContainerImageSignature
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        compartment_id: Optional[str] = None,
        created_by: Optional[str] = None,
        defined_tags: Optional[Mapping[str, str]] = None,
        display_name: Optional[str] = None,
        freeform_tags: Optional[Mapping[str, str]] = None,
        image_id: Optional[str] = None,
        kms_key_id: Optional[str] = None,
        kms_key_version_id: Optional[str] = None,
        message: Optional[str] = None,
        signature: Optional[str] = None,
        signing_algorithm: Optional[str] = None,
        state: Optional[str] = None,
        system_tags: Optional[Mapping[str, str]] = None,
        time_created: Optional[str] = None) -> ContainerImageSignature
func GetContainerImageSignature(ctx *Context, name string, id IDInput, state *ContainerImageSignatureState, opts ...ResourceOption) (*ContainerImageSignature, error)
public static ContainerImageSignature Get(string name, Input<string> id, ContainerImageSignatureState? state, CustomResourceOptions? opts = null)
public static ContainerImageSignature get(String name, Output<String> id, ContainerImageSignatureState state, CustomResourceOptions options)
resources:  _:    type: oci:Artifacts:ContainerImageSignature    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
CompartmentId Changes to this property will trigger replacement. string
The OCID of the compartment in which the container repository exists.
CreatedBy string
The id of the user or principal that created the resource.
DefinedTags Dictionary<string, string>
(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
DisplayName string
The last 10 characters of the kmsKeyId, the last 10 characters of the kmsKeyVersionId, the signingAlgorithm, and the last 10 characters of the signatureId. Example: wrmz22sixa::qdwyc2ptun::SHA_256_RSA_PKCS_PSS::2vwmobasva
FreeformTags Dictionary<string, string>
(Updatable) 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"}
ImageId Changes to this property will trigger replacement. string
The OCID of the container image. Example: ocid1.containerimage.oc1..exampleuniqueID
KmsKeyId Changes to this property will trigger replacement. string
The OCID of the kmsKeyId used to sign the container image. Example: ocid1.key.oc1..exampleuniqueID
KmsKeyVersionId Changes to this property will trigger replacement. string
The OCID of the kmsKeyVersionId used to sign the container image. Example: ocid1.keyversion.oc1..exampleuniqueID
Message Changes to this property will trigger replacement. string
The base64 encoded signature payload that was signed.
Signature Changes to this property will trigger replacement. string
The signature of the message field using the kmsKeyId, the kmsKeyVersionId, and the signingAlgorithm.
SigningAlgorithm Changes to this property will trigger replacement. string

The algorithm to be used for signing. These are the only supported signing algorithms for container images.

** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

State string
The current state of the container image signature.
SystemTags 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"}
TimeCreated string
An RFC 3339 timestamp indicating when the image was created.
CompartmentId Changes to this property will trigger replacement. string
The OCID of the compartment in which the container repository exists.
CreatedBy string
The id of the user or principal that created the resource.
DefinedTags map[string]string
(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
DisplayName string
The last 10 characters of the kmsKeyId, the last 10 characters of the kmsKeyVersionId, the signingAlgorithm, and the last 10 characters of the signatureId. Example: wrmz22sixa::qdwyc2ptun::SHA_256_RSA_PKCS_PSS::2vwmobasva
FreeformTags map[string]string
(Updatable) 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"}
ImageId Changes to this property will trigger replacement. string
The OCID of the container image. Example: ocid1.containerimage.oc1..exampleuniqueID
KmsKeyId Changes to this property will trigger replacement. string
The OCID of the kmsKeyId used to sign the container image. Example: ocid1.key.oc1..exampleuniqueID
KmsKeyVersionId Changes to this property will trigger replacement. string
The OCID of the kmsKeyVersionId used to sign the container image. Example: ocid1.keyversion.oc1..exampleuniqueID
Message Changes to this property will trigger replacement. string
The base64 encoded signature payload that was signed.
Signature Changes to this property will trigger replacement. string
The signature of the message field using the kmsKeyId, the kmsKeyVersionId, and the signingAlgorithm.
SigningAlgorithm Changes to this property will trigger replacement. string

The algorithm to be used for signing. These are the only supported signing algorithms for container images.

** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

State string
The current state of the container image signature.
SystemTags 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"}
TimeCreated string
An RFC 3339 timestamp indicating when the image was created.
compartmentId Changes to this property will trigger replacement. String
The OCID of the compartment in which the container repository exists.
createdBy String
The id of the user or principal that created the resource.
definedTags Map<String,String>
(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
displayName String
The last 10 characters of the kmsKeyId, the last 10 characters of the kmsKeyVersionId, the signingAlgorithm, and the last 10 characters of the signatureId. Example: wrmz22sixa::qdwyc2ptun::SHA_256_RSA_PKCS_PSS::2vwmobasva
freeformTags Map<String,String>
(Updatable) 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"}
imageId Changes to this property will trigger replacement. String
The OCID of the container image. Example: ocid1.containerimage.oc1..exampleuniqueID
kmsKeyId Changes to this property will trigger replacement. String
The OCID of the kmsKeyId used to sign the container image. Example: ocid1.key.oc1..exampleuniqueID
kmsKeyVersionId Changes to this property will trigger replacement. String
The OCID of the kmsKeyVersionId used to sign the container image. Example: ocid1.keyversion.oc1..exampleuniqueID
message Changes to this property will trigger replacement. String
The base64 encoded signature payload that was signed.
signature Changes to this property will trigger replacement. String
The signature of the message field using the kmsKeyId, the kmsKeyVersionId, and the signingAlgorithm.
signingAlgorithm Changes to this property will trigger replacement. String

The algorithm to be used for signing. These are the only supported signing algorithms for container images.

** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

state String
The current state of the container image signature.
systemTags 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"}
timeCreated String
An RFC 3339 timestamp indicating when the image was created.
compartmentId Changes to this property will trigger replacement. string
The OCID of the compartment in which the container repository exists.
createdBy string
The id of the user or principal that created the resource.
definedTags {[key: string]: string}
(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
displayName string
The last 10 characters of the kmsKeyId, the last 10 characters of the kmsKeyVersionId, the signingAlgorithm, and the last 10 characters of the signatureId. Example: wrmz22sixa::qdwyc2ptun::SHA_256_RSA_PKCS_PSS::2vwmobasva
freeformTags {[key: string]: string}
(Updatable) 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"}
imageId Changes to this property will trigger replacement. string
The OCID of the container image. Example: ocid1.containerimage.oc1..exampleuniqueID
kmsKeyId Changes to this property will trigger replacement. string
The OCID of the kmsKeyId used to sign the container image. Example: ocid1.key.oc1..exampleuniqueID
kmsKeyVersionId Changes to this property will trigger replacement. string
The OCID of the kmsKeyVersionId used to sign the container image. Example: ocid1.keyversion.oc1..exampleuniqueID
message Changes to this property will trigger replacement. string
The base64 encoded signature payload that was signed.
signature Changes to this property will trigger replacement. string
The signature of the message field using the kmsKeyId, the kmsKeyVersionId, and the signingAlgorithm.
signingAlgorithm Changes to this property will trigger replacement. string

The algorithm to be used for signing. These are the only supported signing algorithms for container images.

** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

state string
The current state of the container image signature.
systemTags {[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"}
timeCreated string
An RFC 3339 timestamp indicating when the image was created.
compartment_id Changes to this property will trigger replacement. str
The OCID of the compartment in which the container repository exists.
created_by str
The id of the user or principal that created the resource.
defined_tags Mapping[str, str]
(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
display_name str
The last 10 characters of the kmsKeyId, the last 10 characters of the kmsKeyVersionId, the signingAlgorithm, and the last 10 characters of the signatureId. Example: wrmz22sixa::qdwyc2ptun::SHA_256_RSA_PKCS_PSS::2vwmobasva
freeform_tags Mapping[str, str]
(Updatable) 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"}
image_id Changes to this property will trigger replacement. str
The OCID of the container image. Example: ocid1.containerimage.oc1..exampleuniqueID
kms_key_id Changes to this property will trigger replacement. str
The OCID of the kmsKeyId used to sign the container image. Example: ocid1.key.oc1..exampleuniqueID
kms_key_version_id Changes to this property will trigger replacement. str
The OCID of the kmsKeyVersionId used to sign the container image. Example: ocid1.keyversion.oc1..exampleuniqueID
message Changes to this property will trigger replacement. str
The base64 encoded signature payload that was signed.
signature Changes to this property will trigger replacement. str
The signature of the message field using the kmsKeyId, the kmsKeyVersionId, and the signingAlgorithm.
signing_algorithm Changes to this property will trigger replacement. str

The algorithm to be used for signing. These are the only supported signing algorithms for container images.

** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

state str
The current state of the container image signature.
system_tags 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
An RFC 3339 timestamp indicating when the image was created.
compartmentId Changes to this property will trigger replacement. String
The OCID of the compartment in which the container repository exists.
createdBy String
The id of the user or principal that created the resource.
definedTags Map<String>
(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
displayName String
The last 10 characters of the kmsKeyId, the last 10 characters of the kmsKeyVersionId, the signingAlgorithm, and the last 10 characters of the signatureId. Example: wrmz22sixa::qdwyc2ptun::SHA_256_RSA_PKCS_PSS::2vwmobasva
freeformTags Map<String>
(Updatable) 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"}
imageId Changes to this property will trigger replacement. String
The OCID of the container image. Example: ocid1.containerimage.oc1..exampleuniqueID
kmsKeyId Changes to this property will trigger replacement. String
The OCID of the kmsKeyId used to sign the container image. Example: ocid1.key.oc1..exampleuniqueID
kmsKeyVersionId Changes to this property will trigger replacement. String
The OCID of the kmsKeyVersionId used to sign the container image. Example: ocid1.keyversion.oc1..exampleuniqueID
message Changes to this property will trigger replacement. String
The base64 encoded signature payload that was signed.
signature Changes to this property will trigger replacement. String
The signature of the message field using the kmsKeyId, the kmsKeyVersionId, and the signingAlgorithm.
signingAlgorithm Changes to this property will trigger replacement. String

The algorithm to be used for signing. These are the only supported signing algorithms for container images.

** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

state String
The current state of the container image signature.
systemTags Map<String>
The system tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
timeCreated String
An RFC 3339 timestamp indicating when the image was created.

Import

ContainerImageSignatures can be imported using the id, e.g.

$ pulumi import oci:Artifacts/containerImageSignature:ContainerImageSignature test_container_image_signature "container/imageSignatures/{imageSignatureId}"
Copy

To learn more about importing existing cloud resources, see Importing resources.

Package Details

Repository
oci pulumi/pulumi-oci
License
Apache-2.0
Notes
This Pulumi package is based on the oci Terraform Provider.