Oracle Cloud Infrastructure

Pulumi Official
Package maintained by Pulumi
v0.1.1 published on Tuesday, May 3, 2022 by Pulumi

ContainerImageSignature

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

Upload a signature to an image.

Example Usage

using Pulumi;
using Oci = Pulumi.Oci;

class MyStack : Stack
{
    public MyStack()
    {
        var testContainerImageSignature = new Oci.Artifacts.ContainerImageSignature("testContainerImageSignature", new Oci.Artifacts.ContainerImageSignatureArgs
        {
            CompartmentId = @var.Compartment_id,
            ImageId = oci_core_image.Test_image.Id,
            KmsKeyId = oci_kms_key.Test_key.Id,
            KmsKeyVersionId = oci_kms_key_version.Test_key_version.Id,
            Message = @var.Container_image_signature_message,
            Signature = @var.Container_image_signature_signature,
            SigningAlgorithm = @var.Container_image_signature_signing_algorithm,
        });
    }

}
package main

import (
	"github.com/pulumi/pulumi-oci/sdk/go/oci/Artifacts"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := Artifacts.NewContainerImageSignature(ctx, "testContainerImageSignature", &Artifacts.ContainerImageSignatureArgs{
			CompartmentId:    pulumi.Any(_var.Compartment_id),
			ImageId:          pulumi.Any(oci_core_image.Test_image.Id),
			KmsKeyId:         pulumi.Any(oci_kms_key.Test_key.Id),
			KmsKeyVersionId:  pulumi.Any(oci_kms_key_version.Test_key_version.Id),
			Message:          pulumi.Any(_var.Container_image_signature_message),
			Signature:        pulumi.Any(_var.Container_image_signature_signature),
			SigningAlgorithm: pulumi.Any(_var.Container_image_signature_signing_algorithm),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

Coming soon!

import pulumi
import pulumi_oci as oci

test_container_image_signature = oci.artifacts.ContainerImageSignature("testContainerImageSignature",
    compartment_id=var["compartment_id"],
    image_id=oci_core_image["test_image"]["id"],
    kms_key_id=oci_kms_key["test_key"]["id"],
    kms_key_version_id=oci_kms_key_version["test_key_version"]["id"],
    message=var["container_image_signature_message"],
    signature=var["container_image_signature_signature"],
    signing_algorithm=var["container_image_signature_signing_algorithm"])
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";

const testContainerImageSignature = new oci.artifacts.ContainerImageSignature("testContainerImageSignature", {
    compartmentId: _var.compartment_id,
    imageId: oci_core_image.test_image.id,
    kmsKeyId: oci_kms_key.test_key.id,
    kmsKeyVersionId: oci_kms_key_version.test_key_version.id,
    message: _var.container_image_signature_message,
    signature: _var.container_image_signature_signature,
    signingAlgorithm: _var.container_image_signature_signing_algorithm,
});

Coming soon!

Create a ContainerImageSignature Resource

new ContainerImageSignature(name: string, args: ContainerImageSignatureArgs, opts?: CustomResourceOptions);
@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)
@overload
def ContainerImageSignature(resource_name: str,
                            args: ContainerImageSignatureArgs,
                            opts: Optional[ResourceOptions] = 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.

name string
The unique name of the resource.
args ContainerImageSignatureArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name str
The unique name of the resource.
args 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 string
The unique name of the resource.
args ContainerImageSignatureArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args ContainerImageSignatureArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args ContainerImageSignatureArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

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

The ContainerImageSignature resource accepts the following input properties:

CompartmentId string

The OCID of the compartment in which the container repository exists.

ImageId string

The OCID of the container image. Example: ocid1.containerimage.oc1..exampleuniqueID

KmsKeyId string

The OCID of the kmsKeyId used to sign the container image. Example: ocid1.key.oc1..exampleuniqueID

KmsKeyVersionId string

The OCID of the kmsKeyVersionId used to sign the container image. Example: ocid1.keyversion.oc1..exampleuniqueID

Message string

The base64 encoded signature payload that was signed.

Signature string

The signature of the message field using the kmsKeyId, the kmsKeyVersionId, and the signingAlgorithm.

SigningAlgorithm string

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

CompartmentId string

The OCID of the compartment in which the container repository exists.

ImageId string

The OCID of the container image. Example: ocid1.containerimage.oc1..exampleuniqueID

KmsKeyId string

The OCID of the kmsKeyId used to sign the container image. Example: ocid1.key.oc1..exampleuniqueID

KmsKeyVersionId string

The OCID of the kmsKeyVersionId used to sign the container image. Example: ocid1.keyversion.oc1..exampleuniqueID

Message string

The base64 encoded signature payload that was signed.

Signature string

The signature of the message field using the kmsKeyId, the kmsKeyVersionId, and the signingAlgorithm.

SigningAlgorithm string

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

compartmentId String

The OCID of the compartment in which the container repository exists.

imageId String

The OCID of the container image. Example: ocid1.containerimage.oc1..exampleuniqueID

kmsKeyId String

The OCID of the kmsKeyId used to sign the container image. Example: ocid1.key.oc1..exampleuniqueID

kmsKeyVersionId String

The OCID of the kmsKeyVersionId used to sign the container image. Example: ocid1.keyversion.oc1..exampleuniqueID

message String

The base64 encoded signature payload that was signed.

signature String

The signature of the message field using the kmsKeyId, the kmsKeyVersionId, and the signingAlgorithm.

signingAlgorithm String

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

compartmentId string

The OCID of the compartment in which the container repository exists.

imageId string

The OCID of the container image. Example: ocid1.containerimage.oc1..exampleuniqueID

kmsKeyId string

The OCID of the kmsKeyId used to sign the container image. Example: ocid1.key.oc1..exampleuniqueID

kmsKeyVersionId string

The OCID of the kmsKeyVersionId used to sign the container image. Example: ocid1.keyversion.oc1..exampleuniqueID

message string

The base64 encoded signature payload that was signed.

signature string

The signature of the message field using the kmsKeyId, the kmsKeyVersionId, and the signingAlgorithm.

signingAlgorithm string

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

compartment_id str

The OCID of the compartment in which the container repository exists.

image_id str

The OCID of the container image. Example: ocid1.containerimage.oc1..exampleuniqueID

kms_key_id str

The OCID of the kmsKeyId used to sign the container image. Example: ocid1.key.oc1..exampleuniqueID

kms_key_version_id str

The OCID of the kmsKeyVersionId used to sign the container image. Example: ocid1.keyversion.oc1..exampleuniqueID

message str

The base64 encoded signature payload that was signed.

signature str

The signature of the message field using the kmsKeyId, the kmsKeyVersionId, and the signingAlgorithm.

signing_algorithm str

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

compartmentId String

The OCID of the compartment in which the container repository exists.

imageId String

The OCID of the container image. Example: ocid1.containerimage.oc1..exampleuniqueID

kmsKeyId String

The OCID of the kmsKeyId used to sign the container image. Example: ocid1.key.oc1..exampleuniqueID

kmsKeyVersionId String

The OCID of the kmsKeyVersionId used to sign the container image. Example: ocid1.keyversion.oc1..exampleuniqueID

message String

The base64 encoded signature payload that was signed.

signature String

The signature of the message field using the kmsKeyId, the kmsKeyVersionId, and the signingAlgorithm.

signingAlgorithm String

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

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.

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.

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.

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.

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.

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.

timeCreated String

An RFC 3339 timestamp indicating when the image was created.

Look up an 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,
        display_name: 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,
        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)
Resource lookup is not supported in YAML
name
The unique name of the resulting resource.
id
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
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
name
The unique name of the resulting resource.
id
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
The unique name of the resulting resource.
id
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
The unique name of the resulting resource.
id
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 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.

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

ImageId string

The OCID of the container image. Example: ocid1.containerimage.oc1..exampleuniqueID

KmsKeyId string

The OCID of the kmsKeyId used to sign the container image. Example: ocid1.key.oc1..exampleuniqueID

KmsKeyVersionId string

The OCID of the kmsKeyVersionId used to sign the container image. Example: ocid1.keyversion.oc1..exampleuniqueID

Message string

The base64 encoded signature payload that was signed.

Signature string

The signature of the message field using the kmsKeyId, the kmsKeyVersionId, and the signingAlgorithm.

SigningAlgorithm string

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

TimeCreated string

An RFC 3339 timestamp indicating when the image was created.

CompartmentId 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.

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

ImageId string

The OCID of the container image. Example: ocid1.containerimage.oc1..exampleuniqueID

KmsKeyId string

The OCID of the kmsKeyId used to sign the container image. Example: ocid1.key.oc1..exampleuniqueID

KmsKeyVersionId string

The OCID of the kmsKeyVersionId used to sign the container image. Example: ocid1.keyversion.oc1..exampleuniqueID

Message string

The base64 encoded signature payload that was signed.

Signature string

The signature of the message field using the kmsKeyId, the kmsKeyVersionId, and the signingAlgorithm.

SigningAlgorithm string

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

TimeCreated string

An RFC 3339 timestamp indicating when the image was created.

compartmentId 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.

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

imageId String

The OCID of the container image. Example: ocid1.containerimage.oc1..exampleuniqueID

kmsKeyId String

The OCID of the kmsKeyId used to sign the container image. Example: ocid1.key.oc1..exampleuniqueID

kmsKeyVersionId String

The OCID of the kmsKeyVersionId used to sign the container image. Example: ocid1.keyversion.oc1..exampleuniqueID

message String

The base64 encoded signature payload that was signed.

signature String

The signature of the message field using the kmsKeyId, the kmsKeyVersionId, and the signingAlgorithm.

signingAlgorithm String

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

timeCreated String

An RFC 3339 timestamp indicating when the image was created.

compartmentId 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.

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

imageId string

The OCID of the container image. Example: ocid1.containerimage.oc1..exampleuniqueID

kmsKeyId string

The OCID of the kmsKeyId used to sign the container image. Example: ocid1.key.oc1..exampleuniqueID

kmsKeyVersionId string

The OCID of the kmsKeyVersionId used to sign the container image. Example: ocid1.keyversion.oc1..exampleuniqueID

message string

The base64 encoded signature payload that was signed.

signature string

The signature of the message field using the kmsKeyId, the kmsKeyVersionId, and the signingAlgorithm.

signingAlgorithm string

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

timeCreated string

An RFC 3339 timestamp indicating when the image was created.

compartment_id 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.

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

image_id str

The OCID of the container image. Example: ocid1.containerimage.oc1..exampleuniqueID

kms_key_id str

The OCID of the kmsKeyId used to sign the container image. Example: ocid1.key.oc1..exampleuniqueID

kms_key_version_id str

The OCID of the kmsKeyVersionId used to sign the container image. Example: ocid1.keyversion.oc1..exampleuniqueID

message str

The base64 encoded signature payload that was signed.

signature str

The signature of the message field using the kmsKeyId, the kmsKeyVersionId, and the signingAlgorithm.

signing_algorithm str

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

time_created str

An RFC 3339 timestamp indicating when the image was created.

compartmentId 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.

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

imageId String

The OCID of the container image. Example: ocid1.containerimage.oc1..exampleuniqueID

kmsKeyId String

The OCID of the kmsKeyId used to sign the container image. Example: ocid1.key.oc1..exampleuniqueID

kmsKeyVersionId String

The OCID of the kmsKeyVersionId used to sign the container image. Example: ocid1.keyversion.oc1..exampleuniqueID

message String

The base64 encoded signature payload that was signed.

signature String

The signature of the message field using the kmsKeyId, the kmsKeyVersionId, and the signingAlgorithm.

signingAlgorithm String

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

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}"

Package Details

Repository
https://github.com/pulumi/pulumi-oci
License
Apache-2.0
Notes

This Pulumi package is based on the oci Terraform Provider.