1. Registry
  2. Packages
  3. Oracle Cloud Infrastructure
  4. API Docs
  5. DataScience
  6. getModelArtifactSignature
Viewing docs for Oracle Cloud Infrastructure v5.6.0
published on Thursday, Nov 5, 2026 by Pulumi
oci logo oci logo
Viewing docs for Oracle Cloud Infrastructure v5.6.0
published on Thursday, Nov 5, 2026 by Pulumi

    This data source provides details about a specific Model Artifact Signature resource in Oracle Cloud Infrastructure Data Science service.

    Gets the specified artifact signature for a model

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testModelArtifactSignature = oci.datascience.getModelArtifactSignature({
        artifactSignatureId: testArtifactSignature.id,
        modelId: testModel.id,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_model_artifact_signature = oci.datascience.get_model_artifact_signature(artifact_signature_id=test_artifact_signature["id"],
        model_id=test_model["id"])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/v5/go/oci/datascience"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := datascience.GetModelArtifactSignature(ctx, &datascience.GetModelArtifactSignatureArgs{
    			ArtifactSignatureId: testArtifactSignature.Id,
    			ModelId:             testModel.Id,
    		}, 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 testModelArtifactSignature = Oci.DataScience.GetModelArtifactSignature.Invoke(new()
        {
            ArtifactSignatureId = testArtifactSignature.Id,
            ModelId = testModel.Id,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.oci.DataScience.DataScienceFunctions;
    import com.pulumi.oci.DataScience.inputs.GetModelArtifactSignatureArgs;
    import java.util.ArrayList;
    import java.util.Arrays;
    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 testModelArtifactSignature = DataScienceFunctions.getModelArtifactSignature(GetModelArtifactSignatureArgs.builder()
                .artifactSignatureId(testArtifactSignature.get("id"))
                .modelId(testModel.get("id"))
                .build());
    
        }
    }
    
    variables:
      testModelArtifactSignature:
        fn::invoke:
          function: oci:DataScience:getModelArtifactSignature
          arguments:
            artifactSignatureId: ${testArtifactSignature.id}
            modelId: ${testModel.id}
    
    terraform {
      required_providers {
        oci = {
          source = "pulumi/oci"
        }
      }
    }
    
    data "oci_data_science_model_artifact_signature" "testModelArtifactSignature" {
      artifact_signature_id = testArtifactSignature.id
      model_id              = testModel.id
    }
    

    Using getModelArtifactSignature

    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 getModelArtifactSignature(args: GetModelArtifactSignatureArgs, opts?: InvokeOptions): Promise<GetModelArtifactSignatureResult>
    function getModelArtifactSignatureOutput(args: GetModelArtifactSignatureOutputArgs, opts?: InvokeOutputOptions): Output<GetModelArtifactSignatureResult>
    def get_model_artifact_signature(artifact_signature_id: Optional[str] = None,
                                     model_id: Optional[str] = None,
                                     opts: Optional[InvokeOptions] = None) -> GetModelArtifactSignatureResult
    def get_model_artifact_signature_output(artifact_signature_id: pulumi.Input[Optional[str]] = None,
                                     model_id: pulumi.Input[Optional[str]] = None,
                                     opts: Optional[InvokeOutputOptions] = None) -> Output[GetModelArtifactSignatureResult]
    func LookupModelArtifactSignature(ctx *Context, args *LookupModelArtifactSignatureArgs, opts ...InvokeOption) (*LookupModelArtifactSignatureResult, error)
    func LookupModelArtifactSignatureOutput(ctx *Context, args *LookupModelArtifactSignatureOutputArgs, opts ...InvokeOption) LookupModelArtifactSignatureResultOutput

    > Note: This function is named LookupModelArtifactSignature in the Go SDK.

    public static class GetModelArtifactSignature 
    {
        public static Task<GetModelArtifactSignatureResult> InvokeAsync(GetModelArtifactSignatureArgs args, InvokeOptions? opts = null)
        public static Output<GetModelArtifactSignatureResult> Invoke(GetModelArtifactSignatureInvokeArgs args, InvokeOptions? opts = null)
        public static Output<GetModelArtifactSignatureResult> Invoke(GetModelArtifactSignatureInvokeArgs args, InvokeOutputOptions opts)
    }
    public static CompletableFuture<GetModelArtifactSignatureResult> getModelArtifactSignature(GetModelArtifactSignatureArgs args, InvokeOptions options)
    public static Output<GetModelArtifactSignatureResult> getModelArtifactSignature(GetModelArtifactSignatureArgs args, InvokeOptions options)
    public static Output<GetModelArtifactSignatureResult> getModelArtifactSignature(GetModelArtifactSignatureArgs args, InvokeOutputOptions options)
    
    fn::invoke:
      function: oci:DataScience/getModelArtifactSignature:getModelArtifactSignature
      arguments:
        # arguments dictionary
    data "oci_data_science_get_model_artifact_signature" "name" {
        # arguments
    }

    The following arguments are supported:

    ArtifactSignatureId string
    The OCID of the model artifact signature.
    ModelId string
    The OCID of the model.
    ArtifactSignatureId string
    The OCID of the model artifact signature.
    ModelId string
    The OCID of the model.
    artifact_signature_id string
    The OCID of the model artifact signature.
    model_id string
    The OCID of the model.
    artifactSignatureId String
    The OCID of the model artifact signature.
    modelId String
    The OCID of the model.
    artifactSignatureId string
    The OCID of the model artifact signature.
    modelId string
    The OCID of the model.
    artifact_signature_id str
    The OCID of the model artifact signature.
    model_id str
    The OCID of the model.
    artifactSignatureId String
    The OCID of the model artifact signature.
    modelId String
    The OCID of the model.

    getModelArtifactSignature Result

    The following output properties are available:

    ArtifactSignatureId string
    CompartmentId string
    The OCID of the compartment containing the resource.
    CreatedBy string
    The OCID of the user who created the model.
    DefinedTags Dictionary<string, string>
    Defined tags for this resource. Each key is predefined and scoped to a namespace. See Resource Tags. Example: {"Operations.CostCenter": "42"}
    Digest string
    Base64 encoded string representing the model artifact digest.
    DisplayName string
    A user-friendly display name for the resource.
    FreeformTags Dictionary<string, string>
    Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. See Resource Tags. Example: {"Department": "Finance"}
    Id string
    The OCID of the model artifact signature.
    KmsKeyId string
    The OCID of the key from Oracle Cloud Infrastructure KMS.
    KmsKeyVersionId string
    The OCID of the key version from Oracle Cloud Infrastructure KMS.
    ModelId string
    The OCID of the model whose artifact has to be signed.
    Signature string
    The signature of the digest generated using kmsKeyId, kmsKeyVersion Id and signingAlgorithm.
    SigningAlgorithm string
    The algorithm used for signing.
    State string
    The lifecycle state of the model artifact signature
    SystemTags Dictionary<string, string>
    Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
    TimeCreated string
    The date and time the resource was created in the timestamp format defined by RFC3339. Example: 2019-08-25T21:10:29.41Z
    TimeUpdated string
    The date and time the resource was updated in the timestamp format defined by RFC3339. Example: 2019-08-25T21:10:29.41Z
    VerifyTrigger int
    ArtifactSignatureId string
    CompartmentId string
    The OCID of the compartment containing the resource.
    CreatedBy string
    The OCID of the user who created the model.
    DefinedTags map[string]string
    Defined tags for this resource. Each key is predefined and scoped to a namespace. See Resource Tags. Example: {"Operations.CostCenter": "42"}
    Digest string
    Base64 encoded string representing the model artifact digest.
    DisplayName string
    A user-friendly display name for the resource.
    FreeformTags map[string]string
    Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. See Resource Tags. Example: {"Department": "Finance"}
    Id string
    The OCID of the model artifact signature.
    KmsKeyId string
    The OCID of the key from Oracle Cloud Infrastructure KMS.
    KmsKeyVersionId string
    The OCID of the key version from Oracle Cloud Infrastructure KMS.
    ModelId string
    The OCID of the model whose artifact has to be signed.
    Signature string
    The signature of the digest generated using kmsKeyId, kmsKeyVersion Id and signingAlgorithm.
    SigningAlgorithm string
    The algorithm used for signing.
    State string
    The lifecycle state of the model artifact signature
    SystemTags map[string]string
    Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
    TimeCreated string
    The date and time the resource was created in the timestamp format defined by RFC3339. Example: 2019-08-25T21:10:29.41Z
    TimeUpdated string
    The date and time the resource was updated in the timestamp format defined by RFC3339. Example: 2019-08-25T21:10:29.41Z
    VerifyTrigger int
    artifact_signature_id string
    compartment_id string
    The OCID of the compartment containing the resource.
    created_by string
    The OCID of the user who created the model.
    defined_tags map(string)
    Defined tags for this resource. Each key is predefined and scoped to a namespace. See Resource Tags. Example: {"Operations.CostCenter": "42"}
    digest string
    Base64 encoded string representing the model artifact digest.
    display_name string
    A user-friendly display name for the resource.
    freeform_tags map(string)
    Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. See Resource Tags. Example: {"Department": "Finance"}
    id string
    The OCID of the model artifact signature.
    kms_key_id string
    The OCID of the key from Oracle Cloud Infrastructure KMS.
    kms_key_version_id string
    The OCID of the key version from Oracle Cloud Infrastructure KMS.
    model_id string
    The OCID of the model whose artifact has to be signed.
    signature string
    The signature of the digest generated using kmsKeyId, kmsKeyVersion Id and signingAlgorithm.
    signing_algorithm string
    The algorithm used for signing.
    state string
    The lifecycle state of the model artifact signature
    system_tags map(string)
    Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
    time_created string
    The date and time the resource was created in the timestamp format defined by RFC3339. Example: 2019-08-25T21:10:29.41Z
    time_updated string
    The date and time the resource was updated in the timestamp format defined by RFC3339. Example: 2019-08-25T21:10:29.41Z
    verify_trigger number
    artifactSignatureId String
    compartmentId String
    The OCID of the compartment containing the resource.
    createdBy String
    The OCID of the user who created the model.
    definedTags Map<String,String>
    Defined tags for this resource. Each key is predefined and scoped to a namespace. See Resource Tags. Example: {"Operations.CostCenter": "42"}
    digest String
    Base64 encoded string representing the model artifact digest.
    displayName String
    A user-friendly display name for the resource.
    freeformTags Map<String,String>
    Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. See Resource Tags. Example: {"Department": "Finance"}
    id String
    The OCID of the model artifact signature.
    kmsKeyId String
    The OCID of the key from Oracle Cloud Infrastructure KMS.
    kmsKeyVersionId String
    The OCID of the key version from Oracle Cloud Infrastructure KMS.
    modelId String
    The OCID of the model whose artifact has to be signed.
    signature String
    The signature of the digest generated using kmsKeyId, kmsKeyVersion Id and signingAlgorithm.
    signingAlgorithm String
    The algorithm used for signing.
    state String
    The lifecycle state of the model artifact signature
    systemTags Map<String,String>
    Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
    timeCreated String
    The date and time the resource was created in the timestamp format defined by RFC3339. Example: 2019-08-25T21:10:29.41Z
    timeUpdated String
    The date and time the resource was updated in the timestamp format defined by RFC3339. Example: 2019-08-25T21:10:29.41Z
    verifyTrigger Integer
    artifactSignatureId string
    compartmentId string
    The OCID of the compartment containing the resource.
    createdBy string
    The OCID of the user who created the model.
    definedTags {[key: string]: string}
    Defined tags for this resource. Each key is predefined and scoped to a namespace. See Resource Tags. Example: {"Operations.CostCenter": "42"}
    digest string
    Base64 encoded string representing the model artifact digest.
    displayName string
    A user-friendly display name for the resource.
    freeformTags {[key: string]: string}
    Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. See Resource Tags. Example: {"Department": "Finance"}
    id string
    The OCID of the model artifact signature.
    kmsKeyId string
    The OCID of the key from Oracle Cloud Infrastructure KMS.
    kmsKeyVersionId string
    The OCID of the key version from Oracle Cloud Infrastructure KMS.
    modelId string
    The OCID of the model whose artifact has to be signed.
    signature string
    The signature of the digest generated using kmsKeyId, kmsKeyVersion Id and signingAlgorithm.
    signingAlgorithm string
    The algorithm used for signing.
    state string
    The lifecycle state of the model artifact signature
    systemTags {[key: string]: string}
    Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
    timeCreated string
    The date and time the resource was created in the timestamp format defined by RFC3339. Example: 2019-08-25T21:10:29.41Z
    timeUpdated string
    The date and time the resource was updated in the timestamp format defined by RFC3339. Example: 2019-08-25T21:10:29.41Z
    verifyTrigger number
    artifact_signature_id str
    compartment_id str
    The OCID of the compartment containing the resource.
    created_by str
    The OCID of the user who created the model.
    defined_tags Mapping[str, str]
    Defined tags for this resource. Each key is predefined and scoped to a namespace. See Resource Tags. Example: {"Operations.CostCenter": "42"}
    digest str
    Base64 encoded string representing the model artifact digest.
    display_name str
    A user-friendly display name for the resource.
    freeform_tags Mapping[str, str]
    Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. See Resource Tags. Example: {"Department": "Finance"}
    id str
    The OCID of the model artifact signature.
    kms_key_id str
    The OCID of the key from Oracle Cloud Infrastructure KMS.
    kms_key_version_id str
    The OCID of the key version from Oracle Cloud Infrastructure KMS.
    model_id str
    The OCID of the model whose artifact has to be signed.
    signature str
    The signature of the digest generated using kmsKeyId, kmsKeyVersion Id and signingAlgorithm.
    signing_algorithm str
    The algorithm used for signing.
    state str
    The lifecycle state of the model artifact signature
    system_tags Mapping[str, str]
    Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
    time_created str
    The date and time the resource was created in the timestamp format defined by RFC3339. Example: 2019-08-25T21:10:29.41Z
    time_updated str
    The date and time the resource was updated in the timestamp format defined by RFC3339. Example: 2019-08-25T21:10:29.41Z
    verify_trigger int
    artifactSignatureId String
    compartmentId String
    The OCID of the compartment containing the resource.
    createdBy String
    The OCID of the user who created the model.
    definedTags Map<String>
    Defined tags for this resource. Each key is predefined and scoped to a namespace. See Resource Tags. Example: {"Operations.CostCenter": "42"}
    digest String
    Base64 encoded string representing the model artifact digest.
    displayName String
    A user-friendly display name for the resource.
    freeformTags Map<String>
    Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. See Resource Tags. Example: {"Department": "Finance"}
    id String
    The OCID of the model artifact signature.
    kmsKeyId String
    The OCID of the key from Oracle Cloud Infrastructure KMS.
    kmsKeyVersionId String
    The OCID of the key version from Oracle Cloud Infrastructure KMS.
    modelId String
    The OCID of the model whose artifact has to be signed.
    signature String
    The signature of the digest generated using kmsKeyId, kmsKeyVersion Id and signingAlgorithm.
    signingAlgorithm String
    The algorithm used for signing.
    state String
    The lifecycle state of the model artifact signature
    systemTags Map<String>
    Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
    timeCreated String
    The date and time the resource was created in the timestamp format defined by RFC3339. Example: 2019-08-25T21:10:29.41Z
    timeUpdated String
    The date and time the resource was updated in the timestamp format defined by RFC3339. Example: 2019-08-25T21:10:29.41Z
    verifyTrigger Number

    Package Details

    Repository
    oci pulumi/pulumi-oci
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the oci Terraform Provider.
    oci logo oci logo
    Viewing docs for Oracle Cloud Infrastructure v5.6.0
    published on Thursday, Nov 5, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial