Oracle Cloud Infrastructure v2.31.0 published on Thursday, Apr 17, 2025 by Pulumi
oci.DevOps.getDeployArtifact
Explore with Pulumi AI
This data source provides details about a specific Deploy Artifact resource in Oracle Cloud Infrastructure Devops service.
Retrieves a deployment artifact by identifier.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testDeployArtifact = oci.DevOps.getDeployArtifact({
    deployArtifactId: testDeployArtifactOciDevopsDeployArtifact.id,
});
import pulumi
import pulumi_oci as oci
test_deploy_artifact = oci.DevOps.get_deploy_artifact(deploy_artifact_id=test_deploy_artifact_oci_devops_deploy_artifact["id"])
package main
import (
	"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/devops"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := devops.GetDeployArtifact(ctx, &devops.GetDeployArtifactArgs{
			DeployArtifactId: testDeployArtifactOciDevopsDeployArtifact.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 testDeployArtifact = Oci.DevOps.GetDeployArtifact.Invoke(new()
    {
        DeployArtifactId = testDeployArtifactOciDevopsDeployArtifact.Id,
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.DevOps.DevOpsFunctions;
import com.pulumi.oci.DevOps.inputs.GetDeployArtifactArgs;
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 testDeployArtifact = DevOpsFunctions.getDeployArtifact(GetDeployArtifactArgs.builder()
            .deployArtifactId(testDeployArtifactOciDevopsDeployArtifact.id())
            .build());
    }
}
variables:
  testDeployArtifact:
    fn::invoke:
      function: oci:DevOps:getDeployArtifact
      arguments:
        deployArtifactId: ${testDeployArtifactOciDevopsDeployArtifact.id}
Using getDeployArtifact
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 getDeployArtifact(args: GetDeployArtifactArgs, opts?: InvokeOptions): Promise<GetDeployArtifactResult>
function getDeployArtifactOutput(args: GetDeployArtifactOutputArgs, opts?: InvokeOptions): Output<GetDeployArtifactResult>def get_deploy_artifact(deploy_artifact_id: Optional[str] = None,
                        opts: Optional[InvokeOptions] = None) -> GetDeployArtifactResult
def get_deploy_artifact_output(deploy_artifact_id: Optional[pulumi.Input[str]] = None,
                        opts: Optional[InvokeOptions] = None) -> Output[GetDeployArtifactResult]func GetDeployArtifact(ctx *Context, args *GetDeployArtifactArgs, opts ...InvokeOption) (*GetDeployArtifactResult, error)
func GetDeployArtifactOutput(ctx *Context, args *GetDeployArtifactOutputArgs, opts ...InvokeOption) GetDeployArtifactResultOutput> Note: This function is named GetDeployArtifact in the Go SDK.
public static class GetDeployArtifact 
{
    public static Task<GetDeployArtifactResult> InvokeAsync(GetDeployArtifactArgs args, InvokeOptions? opts = null)
    public static Output<GetDeployArtifactResult> Invoke(GetDeployArtifactInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetDeployArtifactResult> getDeployArtifact(GetDeployArtifactArgs args, InvokeOptions options)
public static Output<GetDeployArtifactResult> getDeployArtifact(GetDeployArtifactArgs args, InvokeOptions options)
fn::invoke:
  function: oci:DevOps/getDeployArtifact:getDeployArtifact
  arguments:
    # arguments dictionaryThe following arguments are supported:
- Deploy
Artifact stringId  - Unique artifact identifier.
 
- Deploy
Artifact stringId  - Unique artifact identifier.
 
- deploy
Artifact StringId  - Unique artifact identifier.
 
- deploy
Artifact stringId  - Unique artifact identifier.
 
- deploy_
artifact_ strid  - Unique artifact identifier.
 
- deploy
Artifact StringId  - Unique artifact identifier.
 
getDeployArtifact Result
The following output properties are available:
- Argument
Substitution stringMode  - Mode for artifact parameter substitution. Options: 
"NONE", "SUBSTITUTE_PLACEHOLDERS"For Helm Deployments only "NONE" is supported. - Compartment
Id string - The OCID of a compartment.
 - Dictionary<string, string>
 - Defined tags for this resource. Each key is predefined and scoped to a namespace. See Resource Tags. Example: 
{"foo-namespace.bar-key": "value"} - Deploy
Artifact stringId  - Deploy
Artifact List<GetSources Deploy Artifact Deploy Artifact Source>  - Specifies source of an artifact.
 - Deploy
Artifact stringType  - Type of the deployment artifact.
 - Description string
 - Optional description about the artifact to be deployed.
 - Display
Name string - Deployment artifact identifier, which can be renamed and is not necessarily unique. Avoid entering confidential information.
 - Dictionary<string, string>
 - Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. See Resource Tags. Example: 
{"bar-key": "value"} - Id string
 - Unique identifier that is immutable on creation.
 - Lifecycle
Details string - A detailed message describing the current state. For example, can be used to provide actionable information for a resource in Failed state.
 - Project
Id string - The OCID of a project.
 - State string
 - Current state of the deployment artifact.
 - Dictionary<string, string>
 - Usage of system tag keys. These predefined keys are scoped to namespaces. See Resource Tags. Example: 
{"orcl-cloud.free-tier-retained": "true"} - Time
Created string - Time the deployment artifact was created. Format defined by RFC3339.
 - Time
Updated string - Time the deployment artifact was updated. Format defined by RFC3339.
 
- Argument
Substitution stringMode  - Mode for artifact parameter substitution. Options: 
"NONE", "SUBSTITUTE_PLACEHOLDERS"For Helm Deployments only "NONE" is supported. - Compartment
Id string - The OCID of a compartment.
 - map[string]string
 - Defined tags for this resource. Each key is predefined and scoped to a namespace. See Resource Tags. Example: 
{"foo-namespace.bar-key": "value"} - Deploy
Artifact stringId  - Deploy
Artifact []GetSources Deploy Artifact Deploy Artifact Source  - Specifies source of an artifact.
 - Deploy
Artifact stringType  - Type of the deployment artifact.
 - Description string
 - Optional description about the artifact to be deployed.
 - Display
Name string - Deployment artifact identifier, which can be renamed and is not necessarily unique. Avoid entering confidential information.
 - map[string]string
 - Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. See Resource Tags. Example: 
{"bar-key": "value"} - Id string
 - Unique identifier that is immutable on creation.
 - Lifecycle
Details string - A detailed message describing the current state. For example, can be used to provide actionable information for a resource in Failed state.
 - Project
Id string - The OCID of a project.
 - State string
 - Current state of the deployment artifact.
 - map[string]string
 - Usage of system tag keys. These predefined keys are scoped to namespaces. See Resource Tags. Example: 
{"orcl-cloud.free-tier-retained": "true"} - Time
Created string - Time the deployment artifact was created. Format defined by RFC3339.
 - Time
Updated string - Time the deployment artifact was updated. Format defined by RFC3339.
 
- argument
Substitution StringMode  - Mode for artifact parameter substitution. Options: 
"NONE", "SUBSTITUTE_PLACEHOLDERS"For Helm Deployments only "NONE" is supported. - compartment
Id String - The OCID of a compartment.
 - Map<String,String>
 - Defined tags for this resource. Each key is predefined and scoped to a namespace. See Resource Tags. Example: 
{"foo-namespace.bar-key": "value"} - deploy
Artifact StringId  - deploy
Artifact List<GetSources Deploy Artifact Deploy Artifact Source>  - Specifies source of an artifact.
 - deploy
Artifact StringType  - Type of the deployment artifact.
 - description String
 - Optional description about the artifact to be deployed.
 - display
Name String - Deployment artifact identifier, which can be renamed and is not necessarily unique. Avoid entering confidential information.
 - Map<String,String>
 - Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. See Resource Tags. Example: 
{"bar-key": "value"} - id String
 - Unique identifier that is immutable on creation.
 - lifecycle
Details String - A detailed message describing the current state. For example, can be used to provide actionable information for a resource in Failed state.
 - project
Id String - The OCID of a project.
 - state String
 - Current state of the deployment artifact.
 - Map<String,String>
 - Usage of system tag keys. These predefined keys are scoped to namespaces. See Resource Tags. Example: 
{"orcl-cloud.free-tier-retained": "true"} - time
Created String - Time the deployment artifact was created. Format defined by RFC3339.
 - time
Updated String - Time the deployment artifact was updated. Format defined by RFC3339.
 
- argument
Substitution stringMode  - Mode for artifact parameter substitution. Options: 
"NONE", "SUBSTITUTE_PLACEHOLDERS"For Helm Deployments only "NONE" is supported. - compartment
Id string - The OCID of a compartment.
 - {[key: string]: string}
 - Defined tags for this resource. Each key is predefined and scoped to a namespace. See Resource Tags. Example: 
{"foo-namespace.bar-key": "value"} - deploy
Artifact stringId  - deploy
Artifact GetSources Deploy Artifact Deploy Artifact Source[]  - Specifies source of an artifact.
 - deploy
Artifact stringType  - Type of the deployment artifact.
 - description string
 - Optional description about the artifact to be deployed.
 - display
Name string - Deployment artifact identifier, which can be renamed and is not necessarily unique. Avoid entering confidential information.
 - {[key: string]: string}
 - Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. See Resource Tags. Example: 
{"bar-key": "value"} - id string
 - Unique identifier that is immutable on creation.
 - lifecycle
Details string - A detailed message describing the current state. For example, can be used to provide actionable information for a resource in Failed state.
 - project
Id string - The OCID of a project.
 - state string
 - Current state of the deployment artifact.
 - {[key: string]: string}
 - Usage of system tag keys. These predefined keys are scoped to namespaces. See Resource Tags. Example: 
{"orcl-cloud.free-tier-retained": "true"} - time
Created string - Time the deployment artifact was created. Format defined by RFC3339.
 - time
Updated string - Time the deployment artifact was updated. Format defined by RFC3339.
 
- argument_
substitution_ strmode  - Mode for artifact parameter substitution. Options: 
"NONE", "SUBSTITUTE_PLACEHOLDERS"For Helm Deployments only "NONE" is supported. - compartment_
id str - The OCID of a compartment.
 - Mapping[str, str]
 - Defined tags for this resource. Each key is predefined and scoped to a namespace. See Resource Tags. Example: 
{"foo-namespace.bar-key": "value"} - deploy_
artifact_ strid  - deploy_
artifact_ Sequence[devops.sources Get Deploy Artifact Deploy Artifact Source]  - Specifies source of an artifact.
 - deploy_
artifact_ strtype  - Type of the deployment artifact.
 - description str
 - Optional description about the artifact to be deployed.
 - display_
name str - Deployment artifact identifier, which can be renamed and is not necessarily unique. Avoid entering confidential information.
 - Mapping[str, str]
 - Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. See Resource Tags. Example: 
{"bar-key": "value"} - id str
 - Unique identifier that is immutable on creation.
 - lifecycle_
details str - A detailed message describing the current state. For example, can be used to provide actionable information for a resource in Failed state.
 - project_
id str - The OCID of a project.
 - state str
 - Current state of the deployment artifact.
 - Mapping[str, str]
 - Usage of system tag keys. These predefined keys are scoped to namespaces. See Resource Tags. Example: 
{"orcl-cloud.free-tier-retained": "true"} - time_
created str - Time the deployment artifact was created. Format defined by RFC3339.
 - time_
updated str - Time the deployment artifact was updated. Format defined by RFC3339.
 
- argument
Substitution StringMode  - Mode for artifact parameter substitution. Options: 
"NONE", "SUBSTITUTE_PLACEHOLDERS"For Helm Deployments only "NONE" is supported. - compartment
Id String - The OCID of a compartment.
 - Map<String>
 - Defined tags for this resource. Each key is predefined and scoped to a namespace. See Resource Tags. Example: 
{"foo-namespace.bar-key": "value"} - deploy
Artifact StringId  - deploy
Artifact List<Property Map>Sources  - Specifies source of an artifact.
 - deploy
Artifact StringType  - Type of the deployment artifact.
 - description String
 - Optional description about the artifact to be deployed.
 - display
Name String - Deployment artifact identifier, which can be renamed and is not necessarily unique. Avoid entering confidential information.
 - Map<String>
 - Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. See Resource Tags. Example: 
{"bar-key": "value"} - id String
 - Unique identifier that is immutable on creation.
 - lifecycle
Details String - A detailed message describing the current state. For example, can be used to provide actionable information for a resource in Failed state.
 - project
Id String - The OCID of a project.
 - state String
 - Current state of the deployment artifact.
 - Map<String>
 - Usage of system tag keys. These predefined keys are scoped to namespaces. See Resource Tags. Example: 
{"orcl-cloud.free-tier-retained": "true"} - time
Created String - Time the deployment artifact was created. Format defined by RFC3339.
 - time
Updated String - Time the deployment artifact was updated. Format defined by RFC3339.
 
Supporting Types
GetDeployArtifactDeployArtifactSource     
- Base64encoded
Content string - The Helm commands to be executed, base 64 encoded
 - Chart
Url string - The URL of an OCIR repository.
 - Deploy
Artifact stringPath  - Specifies the artifact path in the repository.
 - Deploy
Artifact stringSource Type  - Specifies types of artifact sources.
 - Deploy
Artifact stringVersion  - Users can set this as a placeholder value that refers to a pipeline parameter, for example, ${appVersion}.
 - Helm
Artifact stringSource Type  - Specifies types of artifact sources.
 - Helm
Verification List<GetKey Sources Deploy Artifact Deploy Artifact Source Helm Verification Key Source>  - The source of the verification material.
 - Image
Digest string - Specifies image digest for the version of the image.
 - Image
Uri string - Specifies OCIR Image Path - optionally include tag.
 - Repository
Id string - The OCID of a repository
 
- Base64encoded
Content string - The Helm commands to be executed, base 64 encoded
 - Chart
Url string - The URL of an OCIR repository.
 - Deploy
Artifact stringPath  - Specifies the artifact path in the repository.
 - Deploy
Artifact stringSource Type  - Specifies types of artifact sources.
 - Deploy
Artifact stringVersion  - Users can set this as a placeholder value that refers to a pipeline parameter, for example, ${appVersion}.
 - Helm
Artifact stringSource Type  - Specifies types of artifact sources.
 - Helm
Verification []GetKey Sources Deploy Artifact Deploy Artifact Source Helm Verification Key Source  - The source of the verification material.
 - Image
Digest string - Specifies image digest for the version of the image.
 - Image
Uri string - Specifies OCIR Image Path - optionally include tag.
 - Repository
Id string - The OCID of a repository
 
- base64encoded
Content String - The Helm commands to be executed, base 64 encoded
 - chart
Url String - The URL of an OCIR repository.
 - deploy
Artifact StringPath  - Specifies the artifact path in the repository.
 - deploy
Artifact StringSource Type  - Specifies types of artifact sources.
 - deploy
Artifact StringVersion  - Users can set this as a placeholder value that refers to a pipeline parameter, for example, ${appVersion}.
 - helm
Artifact StringSource Type  - Specifies types of artifact sources.
 - helm
Verification List<GetKey Sources Deploy Artifact Deploy Artifact Source Helm Verification Key Source>  - The source of the verification material.
 - image
Digest String - Specifies image digest for the version of the image.
 - image
Uri String - Specifies OCIR Image Path - optionally include tag.
 - repository
Id String - The OCID of a repository
 
- base64encoded
Content string - The Helm commands to be executed, base 64 encoded
 - chart
Url string - The URL of an OCIR repository.
 - deploy
Artifact stringPath  - Specifies the artifact path in the repository.
 - deploy
Artifact stringSource Type  - Specifies types of artifact sources.
 - deploy
Artifact stringVersion  - Users can set this as a placeholder value that refers to a pipeline parameter, for example, ${appVersion}.
 - helm
Artifact stringSource Type  - Specifies types of artifact sources.
 - helm
Verification GetKey Sources Deploy Artifact Deploy Artifact Source Helm Verification Key Source[]  - The source of the verification material.
 - image
Digest string - Specifies image digest for the version of the image.
 - image
Uri string - Specifies OCIR Image Path - optionally include tag.
 - repository
Id string - The OCID of a repository
 
- base64encoded_
content str - The Helm commands to be executed, base 64 encoded
 - chart_
url str - The URL of an OCIR repository.
 - deploy_
artifact_ strpath  - Specifies the artifact path in the repository.
 - deploy_
artifact_ strsource_ type  - Specifies types of artifact sources.
 - deploy_
artifact_ strversion  - Users can set this as a placeholder value that refers to a pipeline parameter, for example, ${appVersion}.
 - helm_
artifact_ strsource_ type  - Specifies types of artifact sources.
 - helm_
verification_ Sequence[devops.key_ sources Get Deploy Artifact Deploy Artifact Source Helm Verification Key Source]  - The source of the verification material.
 - image_
digest str - Specifies image digest for the version of the image.
 - image_
uri str - Specifies OCIR Image Path - optionally include tag.
 - repository_
id str - The OCID of a repository
 
- base64encoded
Content String - The Helm commands to be executed, base 64 encoded
 - chart
Url String - The URL of an OCIR repository.
 - deploy
Artifact StringPath  - Specifies the artifact path in the repository.
 - deploy
Artifact StringSource Type  - Specifies types of artifact sources.
 - deploy
Artifact StringVersion  - Users can set this as a placeholder value that refers to a pipeline parameter, for example, ${appVersion}.
 - helm
Artifact StringSource Type  - Specifies types of artifact sources.
 - helm
Verification List<Property Map>Key Sources  - The source of the verification material.
 - image
Digest String - Specifies image digest for the version of the image.
 - image
Uri String - Specifies OCIR Image Path - optionally include tag.
 - repository
Id String - The OCID of a repository
 
GetDeployArtifactDeployArtifactSourceHelmVerificationKeySource         
- Current
Public stringKey  - Current version of Base64 encoding of the public key which is in binary GPG exported format.
 - Previous
Public stringKey  - Previous version of Base64 encoding of the public key which is in binary GPG exported format. This would be used for key rotation scenarios.
 - Vault
Secret stringId  - The OCID of the Vault Secret containing the verification key versions.
 - Verification
Key stringSource Type  - Specifies type of verification material.
 
- Current
Public stringKey  - Current version of Base64 encoding of the public key which is in binary GPG exported format.
 - Previous
Public stringKey  - Previous version of Base64 encoding of the public key which is in binary GPG exported format. This would be used for key rotation scenarios.
 - Vault
Secret stringId  - The OCID of the Vault Secret containing the verification key versions.
 - Verification
Key stringSource Type  - Specifies type of verification material.
 
- current
Public StringKey  - Current version of Base64 encoding of the public key which is in binary GPG exported format.
 - previous
Public StringKey  - Previous version of Base64 encoding of the public key which is in binary GPG exported format. This would be used for key rotation scenarios.
 - vault
Secret StringId  - The OCID of the Vault Secret containing the verification key versions.
 - verification
Key StringSource Type  - Specifies type of verification material.
 
- current
Public stringKey  - Current version of Base64 encoding of the public key which is in binary GPG exported format.
 - previous
Public stringKey  - Previous version of Base64 encoding of the public key which is in binary GPG exported format. This would be used for key rotation scenarios.
 - vault
Secret stringId  - The OCID of the Vault Secret containing the verification key versions.
 - verification
Key stringSource Type  - Specifies type of verification material.
 
- current_
public_ strkey  - Current version of Base64 encoding of the public key which is in binary GPG exported format.
 - previous_
public_ strkey  - Previous version of Base64 encoding of the public key which is in binary GPG exported format. This would be used for key rotation scenarios.
 - vault_
secret_ strid  - The OCID of the Vault Secret containing the verification key versions.
 - verification_
key_ strsource_ type  - Specifies type of verification material.
 
- current
Public StringKey  - Current version of Base64 encoding of the public key which is in binary GPG exported format.
 - previous
Public StringKey  - Previous version of Base64 encoding of the public key which is in binary GPG exported format. This would be used for key rotation scenarios.
 - vault
Secret StringId  - The OCID of the Vault Secret containing the verification key versions.
 - verification
Key StringSource Type  - Specifies type of verification material.
 
Package Details
- Repository
 - oci pulumi/pulumi-oci
 - License
 - Apache-2.0
 - Notes
 - This Pulumi package is based on the 
ociTerraform Provider.