1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. DevOps
  5. getDeployArtifact
Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi

oci.DevOps.getDeployArtifact

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi

    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)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: oci:DevOps/getDeployArtifact:getDeployArtifact
      arguments:
        # arguments dictionary

    The following arguments are supported:

    DeployArtifactId string
    Unique artifact identifier.
    DeployArtifactId string
    Unique artifact identifier.
    deployArtifactId String
    Unique artifact identifier.
    deployArtifactId string
    Unique artifact identifier.
    deploy_artifact_id str
    Unique artifact identifier.
    deployArtifactId String
    Unique artifact identifier.

    getDeployArtifact Result

    The following output properties are available:

    ArgumentSubstitutionMode string
    Mode for artifact parameter substitution. Options: "NONE", "SUBSTITUTE_PLACEHOLDERS" For Helm Deployments only "NONE" is supported.
    CompartmentId string
    The OCID of a compartment.
    DefinedTags 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"}
    DeployArtifactId string
    DeployArtifactSources List<GetDeployArtifactDeployArtifactSource>
    Specifies source of an artifact.
    DeployArtifactType string
    Type of the deployment artifact.
    Description string
    Optional description about the artifact to be deployed.
    DisplayName string
    Deployment artifact identifier, which can be renamed and is not necessarily unique. Avoid entering confidential information.
    FreeformTags 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.
    LifecycleDetails string
    A detailed message describing the current state. For example, can be used to provide actionable information for a resource in Failed state.
    ProjectId string
    The OCID of a project.
    State string
    Current state of the deployment artifact.
    SystemTags 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"}
    TimeCreated string
    Time the deployment artifact was created. Format defined by RFC3339.
    TimeUpdated string
    Time the deployment artifact was updated. Format defined by RFC3339.
    ArgumentSubstitutionMode string
    Mode for artifact parameter substitution. Options: "NONE", "SUBSTITUTE_PLACEHOLDERS" For Helm Deployments only "NONE" is supported.
    CompartmentId string
    The OCID of a compartment.
    DefinedTags 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"}
    DeployArtifactId string
    DeployArtifactSources []GetDeployArtifactDeployArtifactSource
    Specifies source of an artifact.
    DeployArtifactType string
    Type of the deployment artifact.
    Description string
    Optional description about the artifact to be deployed.
    DisplayName string
    Deployment artifact identifier, which can be renamed and is not necessarily unique. Avoid entering confidential information.
    FreeformTags 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.
    LifecycleDetails string
    A detailed message describing the current state. For example, can be used to provide actionable information for a resource in Failed state.
    ProjectId string
    The OCID of a project.
    State string
    Current state of the deployment artifact.
    SystemTags 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"}
    TimeCreated string
    Time the deployment artifact was created. Format defined by RFC3339.
    TimeUpdated string
    Time the deployment artifact was updated. Format defined by RFC3339.
    argumentSubstitutionMode String
    Mode for artifact parameter substitution. Options: "NONE", "SUBSTITUTE_PLACEHOLDERS" For Helm Deployments only "NONE" is supported.
    compartmentId String
    The OCID of a compartment.
    definedTags 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"}
    deployArtifactId String
    deployArtifactSources List<GetDeployArtifactDeployArtifactSource>
    Specifies source of an artifact.
    deployArtifactType String
    Type of the deployment artifact.
    description String
    Optional description about the artifact to be deployed.
    displayName String
    Deployment artifact identifier, which can be renamed and is not necessarily unique. Avoid entering confidential information.
    freeformTags 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.
    lifecycleDetails String
    A detailed message describing the current state. For example, can be used to provide actionable information for a resource in Failed state.
    projectId String
    The OCID of a project.
    state String
    Current state of the deployment artifact.
    systemTags 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"}
    timeCreated String
    Time the deployment artifact was created. Format defined by RFC3339.
    timeUpdated String
    Time the deployment artifact was updated. Format defined by RFC3339.
    argumentSubstitutionMode string
    Mode for artifact parameter substitution. Options: "NONE", "SUBSTITUTE_PLACEHOLDERS" For Helm Deployments only "NONE" is supported.
    compartmentId string
    The OCID of a compartment.
    definedTags {[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"}
    deployArtifactId string
    deployArtifactSources GetDeployArtifactDeployArtifactSource[]
    Specifies source of an artifact.
    deployArtifactType string
    Type of the deployment artifact.
    description string
    Optional description about the artifact to be deployed.
    displayName string
    Deployment artifact identifier, which can be renamed and is not necessarily unique. Avoid entering confidential information.
    freeformTags {[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.
    lifecycleDetails string
    A detailed message describing the current state. For example, can be used to provide actionable information for a resource in Failed state.
    projectId string
    The OCID of a project.
    state string
    Current state of the deployment artifact.
    systemTags {[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"}
    timeCreated string
    Time the deployment artifact was created. Format defined by RFC3339.
    timeUpdated string
    Time the deployment artifact was updated. Format defined by RFC3339.
    argument_substitution_mode str
    Mode for artifact parameter substitution. Options: "NONE", "SUBSTITUTE_PLACEHOLDERS" For Helm Deployments only "NONE" is supported.
    compartment_id str
    The OCID of a compartment.
    defined_tags 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_id str
    deploy_artifact_sources Sequence[devops.GetDeployArtifactDeployArtifactSource]
    Specifies source of an artifact.
    deploy_artifact_type str
    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.
    freeform_tags 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.
    system_tags 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.
    argumentSubstitutionMode String
    Mode for artifact parameter substitution. Options: "NONE", "SUBSTITUTE_PLACEHOLDERS" For Helm Deployments only "NONE" is supported.
    compartmentId String
    The OCID of a compartment.
    definedTags 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"}
    deployArtifactId String
    deployArtifactSources List<Property Map>
    Specifies source of an artifact.
    deployArtifactType String
    Type of the deployment artifact.
    description String
    Optional description about the artifact to be deployed.
    displayName String
    Deployment artifact identifier, which can be renamed and is not necessarily unique. Avoid entering confidential information.
    freeformTags 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.
    lifecycleDetails String
    A detailed message describing the current state. For example, can be used to provide actionable information for a resource in Failed state.
    projectId String
    The OCID of a project.
    state String
    Current state of the deployment artifact.
    systemTags Map<String>
    Usage of system tag keys. These predefined keys are scoped to namespaces. See Resource Tags. Example: {"orcl-cloud.free-tier-retained": "true"}
    timeCreated String
    Time the deployment artifact was created. Format defined by RFC3339.
    timeUpdated String
    Time the deployment artifact was updated. Format defined by RFC3339.

    Supporting Types

    GetDeployArtifactDeployArtifactSource

    Base64encodedContent string
    The Helm commands to be executed, base 64 encoded
    ChartUrl string
    The URL of an OCIR repository.
    DeployArtifactPath string
    Specifies the artifact path in the repository.
    DeployArtifactSourceType string
    Specifies types of artifact sources.
    DeployArtifactVersion string
    Users can set this as a placeholder value that refers to a pipeline parameter, for example, ${appVersion}.
    HelmArtifactSourceType string
    Specifies types of artifact sources.
    HelmVerificationKeySources List<GetDeployArtifactDeployArtifactSourceHelmVerificationKeySource>
    The source of the verification material.
    ImageDigest string
    Specifies image digest for the version of the image.
    ImageUri string
    Specifies OCIR Image Path - optionally include tag.
    RepositoryId string
    The OCID of a repository
    Base64encodedContent string
    The Helm commands to be executed, base 64 encoded
    ChartUrl string
    The URL of an OCIR repository.
    DeployArtifactPath string
    Specifies the artifact path in the repository.
    DeployArtifactSourceType string
    Specifies types of artifact sources.
    DeployArtifactVersion string
    Users can set this as a placeholder value that refers to a pipeline parameter, for example, ${appVersion}.
    HelmArtifactSourceType string
    Specifies types of artifact sources.
    HelmVerificationKeySources []GetDeployArtifactDeployArtifactSourceHelmVerificationKeySource
    The source of the verification material.
    ImageDigest string
    Specifies image digest for the version of the image.
    ImageUri string
    Specifies OCIR Image Path - optionally include tag.
    RepositoryId string
    The OCID of a repository
    base64encodedContent String
    The Helm commands to be executed, base 64 encoded
    chartUrl String
    The URL of an OCIR repository.
    deployArtifactPath String
    Specifies the artifact path in the repository.
    deployArtifactSourceType String
    Specifies types of artifact sources.
    deployArtifactVersion String
    Users can set this as a placeholder value that refers to a pipeline parameter, for example, ${appVersion}.
    helmArtifactSourceType String
    Specifies types of artifact sources.
    helmVerificationKeySources List<GetDeployArtifactDeployArtifactSourceHelmVerificationKeySource>
    The source of the verification material.
    imageDigest String
    Specifies image digest for the version of the image.
    imageUri String
    Specifies OCIR Image Path - optionally include tag.
    repositoryId String
    The OCID of a repository
    base64encodedContent string
    The Helm commands to be executed, base 64 encoded
    chartUrl string
    The URL of an OCIR repository.
    deployArtifactPath string
    Specifies the artifact path in the repository.
    deployArtifactSourceType string
    Specifies types of artifact sources.
    deployArtifactVersion string
    Users can set this as a placeholder value that refers to a pipeline parameter, for example, ${appVersion}.
    helmArtifactSourceType string
    Specifies types of artifact sources.
    helmVerificationKeySources GetDeployArtifactDeployArtifactSourceHelmVerificationKeySource[]
    The source of the verification material.
    imageDigest string
    Specifies image digest for the version of the image.
    imageUri string
    Specifies OCIR Image Path - optionally include tag.
    repositoryId 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_path str
    Specifies the artifact path in the repository.
    deploy_artifact_source_type str
    Specifies types of artifact sources.
    deploy_artifact_version str
    Users can set this as a placeholder value that refers to a pipeline parameter, for example, ${appVersion}.
    helm_artifact_source_type str
    Specifies types of artifact sources.
    helm_verification_key_sources Sequence[devops.GetDeployArtifactDeployArtifactSourceHelmVerificationKeySource]
    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
    base64encodedContent String
    The Helm commands to be executed, base 64 encoded
    chartUrl String
    The URL of an OCIR repository.
    deployArtifactPath String
    Specifies the artifact path in the repository.
    deployArtifactSourceType String
    Specifies types of artifact sources.
    deployArtifactVersion String
    Users can set this as a placeholder value that refers to a pipeline parameter, for example, ${appVersion}.
    helmArtifactSourceType String
    Specifies types of artifact sources.
    helmVerificationKeySources List<Property Map>
    The source of the verification material.
    imageDigest String
    Specifies image digest for the version of the image.
    imageUri String
    Specifies OCIR Image Path - optionally include tag.
    repositoryId String
    The OCID of a repository

    GetDeployArtifactDeployArtifactSourceHelmVerificationKeySource

    CurrentPublicKey string
    Current version of Base64 encoding of the public key which is in binary GPG exported format.
    PreviousPublicKey string
    Previous version of Base64 encoding of the public key which is in binary GPG exported format. This would be used for key rotation scenarios.
    VaultSecretId string
    The OCID of the Vault Secret containing the verification key versions.
    VerificationKeySourceType string
    Specifies type of verification material.
    CurrentPublicKey string
    Current version of Base64 encoding of the public key which is in binary GPG exported format.
    PreviousPublicKey string
    Previous version of Base64 encoding of the public key which is in binary GPG exported format. This would be used for key rotation scenarios.
    VaultSecretId string
    The OCID of the Vault Secret containing the verification key versions.
    VerificationKeySourceType string
    Specifies type of verification material.
    currentPublicKey String
    Current version of Base64 encoding of the public key which is in binary GPG exported format.
    previousPublicKey String
    Previous version of Base64 encoding of the public key which is in binary GPG exported format. This would be used for key rotation scenarios.
    vaultSecretId String
    The OCID of the Vault Secret containing the verification key versions.
    verificationKeySourceType String
    Specifies type of verification material.
    currentPublicKey string
    Current version of Base64 encoding of the public key which is in binary GPG exported format.
    previousPublicKey string
    Previous version of Base64 encoding of the public key which is in binary GPG exported format. This would be used for key rotation scenarios.
    vaultSecretId string
    The OCID of the Vault Secret containing the verification key versions.
    verificationKeySourceType string
    Specifies type of verification material.
    current_public_key str
    Current version of Base64 encoding of the public key which is in binary GPG exported format.
    previous_public_key str
    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_id str
    The OCID of the Vault Secret containing the verification key versions.
    verification_key_source_type str
    Specifies type of verification material.
    currentPublicKey String
    Current version of Base64 encoding of the public key which is in binary GPG exported format.
    previousPublicKey String
    Previous version of Base64 encoding of the public key which is in binary GPG exported format. This would be used for key rotation scenarios.
    vaultSecretId String
    The OCID of the Vault Secret containing the verification key versions.
    verificationKeySourceType String
    Specifies type of verification material.

    Package Details

    Repository
    oci pulumi/pulumi-oci
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the oci Terraform Provider.
    oci logo
    Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi