Oracle Cloud Infrastructure

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

getDeployArtifacts

This data source provides the list of Deploy Artifacts in Oracle Cloud Infrastructure Devops service.

Returns a list of deployment artifacts.

Example Usage

using Pulumi;
using Oci = Pulumi.Oci;

class MyStack : Stack
{
    public MyStack()
    {
        var testDeployArtifacts = Output.Create(Oci.DevOps.GetDeployArtifacts.InvokeAsync(new Oci.DevOps.GetDeployArtifactsArgs
        {
            CompartmentId = @var.Compartment_id,
            DisplayName = @var.Deploy_artifact_display_name,
            Id = @var.Deploy_artifact_id,
            ProjectId = oci_devops_project.Test_project.Id,
            State = @var.Deploy_artifact_state,
        }));
    }

}
package main

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

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := DevOps.GetDeployArtifacts(ctx, &devops.GetDeployArtifactsArgs{
			CompartmentId: pulumi.StringRef(_var.Compartment_id),
			DisplayName:   pulumi.StringRef(_var.Deploy_artifact_display_name),
			Id:            pulumi.StringRef(_var.Deploy_artifact_id),
			ProjectId:     pulumi.StringRef(oci_devops_project.Test_project.Id),
			State:         pulumi.StringRef(_var.Deploy_artifact_state),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

Coming soon!

import pulumi
import pulumi_oci as oci

test_deploy_artifacts = oci.DevOps.get_deploy_artifacts(compartment_id=var["compartment_id"],
    display_name=var["deploy_artifact_display_name"],
    id=var["deploy_artifact_id"],
    project_id=oci_devops_project["test_project"]["id"],
    state=var["deploy_artifact_state"])
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";

const testDeployArtifacts = oci.DevOps.getDeployArtifacts({
    compartmentId: _var.compartment_id,
    displayName: _var.deploy_artifact_display_name,
    id: _var.deploy_artifact_id,
    projectId: oci_devops_project.test_project.id,
    state: _var.deploy_artifact_state,
});

Coming soon!

Using getDeployArtifacts

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 getDeployArtifacts(args: GetDeployArtifactsArgs, opts?: InvokeOptions): Promise<GetDeployArtifactsResult>
function getDeployArtifactsOutput(args: GetDeployArtifactsOutputArgs, opts?: InvokeOptions): Output<GetDeployArtifactsResult>
def get_deploy_artifacts(compartment_id: Optional[str] = None,
                         display_name: Optional[str] = None,
                         filters: Optional[Sequence[_devops.GetDeployArtifactsFilter]] = None,
                         id: Optional[str] = None,
                         project_id: Optional[str] = None,
                         state: Optional[str] = None,
                         opts: Optional[InvokeOptions] = None) -> GetDeployArtifactsResult
def get_deploy_artifacts_output(compartment_id: Optional[pulumi.Input[str]] = None,
                         display_name: Optional[pulumi.Input[str]] = None,
                         filters: Optional[pulumi.Input[Sequence[pulumi.Input[_devops.GetDeployArtifactsFilterArgs]]]] = None,
                         id: Optional[pulumi.Input[str]] = None,
                         project_id: Optional[pulumi.Input[str]] = None,
                         state: Optional[pulumi.Input[str]] = None,
                         opts: Optional[InvokeOptions] = None) -> Output[GetDeployArtifactsResult]
func GetDeployArtifacts(ctx *Context, args *GetDeployArtifactsArgs, opts ...InvokeOption) (*GetDeployArtifactsResult, error)
func GetDeployArtifactsOutput(ctx *Context, args *GetDeployArtifactsOutputArgs, opts ...InvokeOption) GetDeployArtifactsResultOutput

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

public static class GetDeployArtifacts 
{
    public static Task<GetDeployArtifactsResult> InvokeAsync(GetDeployArtifactsArgs args, InvokeOptions? opts = null)
    public static Output<GetDeployArtifactsResult> Invoke(GetDeployArtifactsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetDeployArtifactsResult> getDeployArtifacts(GetDeployArtifactsArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
Fn::Invoke:
  Function: oci:DevOps/getDeployArtifacts:getDeployArtifacts
  Arguments:
    # Arguments dictionary

The following arguments are supported:

CompartmentId string

The OCID of the compartment in which to list resources.

DisplayName string

A filter to return only resources that match the entire display name given.

Filters List<GetDeployArtifactsFilter>
Id string

Unique identifier or OCID for listing a single resource by ID.

ProjectId string

unique project identifier

State string

A filter to return only DeployArtifacts that matches the given lifecycleState.

CompartmentId string

The OCID of the compartment in which to list resources.

DisplayName string

A filter to return only resources that match the entire display name given.

Filters []GetDeployArtifactsFilter
Id string

Unique identifier or OCID for listing a single resource by ID.

ProjectId string

unique project identifier

State string

A filter to return only DeployArtifacts that matches the given lifecycleState.

compartmentId String

The OCID of the compartment in which to list resources.

displayName String

A filter to return only resources that match the entire display name given.

filters List<GetDeployArtifactsFilter>
id String

Unique identifier or OCID for listing a single resource by ID.

projectId String

unique project identifier

state String

A filter to return only DeployArtifacts that matches the given lifecycleState.

compartmentId string

The OCID of the compartment in which to list resources.

displayName string

A filter to return only resources that match the entire display name given.

filters GetDeployArtifactsFilter[]
id string

Unique identifier or OCID for listing a single resource by ID.

projectId string

unique project identifier

state string

A filter to return only DeployArtifacts that matches the given lifecycleState.

compartment_id str

The OCID of the compartment in which to list resources.

display_name str

A filter to return only resources that match the entire display name given.

filters GetDeployArtifactsFilter]
id str

Unique identifier or OCID for listing a single resource by ID.

project_id str

unique project identifier

state str

A filter to return only DeployArtifacts that matches the given lifecycleState.

compartmentId String

The OCID of the compartment in which to list resources.

displayName String

A filter to return only resources that match the entire display name given.

filters List<Property Map>
id String

Unique identifier or OCID for listing a single resource by ID.

projectId String

unique project identifier

state String

A filter to return only DeployArtifacts that matches the given lifecycleState.

getDeployArtifacts Result

The following output properties are available:

DeployArtifactCollections List<GetDeployArtifactsDeployArtifactCollection>

The list of deploy_artifact_collection.

CompartmentId string

The OCID of a compartment.

DisplayName string

Deployment artifact identifier, which can be renamed and is not necessarily unique. Avoid entering confidential information.

Filters List<GetDeployArtifactsFilter>
Id string

Unique identifier that is immutable on creation.

ProjectId string

The OCID of a project.

State string

Current state of the deployment artifact.

DeployArtifactCollections []GetDeployArtifactsDeployArtifactCollection

The list of deploy_artifact_collection.

CompartmentId string

The OCID of a compartment.

DisplayName string

Deployment artifact identifier, which can be renamed and is not necessarily unique. Avoid entering confidential information.

Filters []GetDeployArtifactsFilter
Id string

Unique identifier that is immutable on creation.

ProjectId string

The OCID of a project.

State string

Current state of the deployment artifact.

deployArtifactCollections List<GetDeployArtifactsDeployArtifactCollection>

The list of deploy_artifact_collection.

compartmentId String

The OCID of a compartment.

displayName String

Deployment artifact identifier, which can be renamed and is not necessarily unique. Avoid entering confidential information.

filters List<GetDeployArtifactsFilter>
id String

Unique identifier that is immutable on creation.

projectId String

The OCID of a project.

state String

Current state of the deployment artifact.

deployArtifactCollections GetDeployArtifactsDeployArtifactCollection[]

The list of deploy_artifact_collection.

compartmentId string

The OCID of a compartment.

displayName string

Deployment artifact identifier, which can be renamed and is not necessarily unique. Avoid entering confidential information.

filters GetDeployArtifactsFilter[]
id string

Unique identifier that is immutable on creation.

projectId string

The OCID of a project.

state string

Current state of the deployment artifact.

deploy_artifact_collections GetDeployArtifactsDeployArtifactCollection]

The list of deploy_artifact_collection.

compartment_id str

The OCID of a compartment.

display_name str

Deployment artifact identifier, which can be renamed and is not necessarily unique. Avoid entering confidential information.

filters GetDeployArtifactsFilter]
id str

Unique identifier that is immutable on creation.

project_id str

The OCID of a project.

state str

Current state of the deployment artifact.

deployArtifactCollections List<Property Map>

The list of deploy_artifact_collection.

compartmentId String

The OCID of a compartment.

displayName String

Deployment artifact identifier, which can be renamed and is not necessarily unique. Avoid entering confidential information.

filters List<Property Map>
id String

Unique identifier that is immutable on creation.

projectId String

The OCID of a project.

state String

Current state of the deployment artifact.

Supporting Types

GetDeployArtifactsDeployArtifactCollection

GetDeployArtifactsDeployArtifactCollectionItem

ArgumentSubstitutionMode string

Mode for artifact parameter substitution.

CompartmentId string

The OCID of the compartment in which to list resources.

DefinedTags Dictionary<string, object>

Defined tags for this resource. Each key is predefined and scoped to a namespace. See Resource Tags. Example: {"foo-namespace.bar-key": "value"}

DeployArtifactSources List<GetDeployArtifactsDeployArtifactCollectionItemDeployArtifactSource>

Specifies source of an artifact.

DeployArtifactType string

Type of the deployment artifact.

Description string

Optional description about the artifact to be deployed.

DisplayName string

A filter to return only resources that match the entire display name given.

FreeformTags Dictionary<string, object>

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 or OCID for listing a single resource by ID.

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

unique project identifier

State string

A filter to return only DeployArtifacts that matches the given lifecycleState.

SystemTags Dictionary<string, object>

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.

CompartmentId string

The OCID of the compartment in which to list resources.

DefinedTags map[string]interface{}

Defined tags for this resource. Each key is predefined and scoped to a namespace. See Resource Tags. Example: {"foo-namespace.bar-key": "value"}

DeployArtifactSources []GetDeployArtifactsDeployArtifactCollectionItemDeployArtifactSource

Specifies source of an artifact.

DeployArtifactType string

Type of the deployment artifact.

Description string

Optional description about the artifact to be deployed.

DisplayName string

A filter to return only resources that match the entire display name given.

FreeformTags map[string]interface{}

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 or OCID for listing a single resource by ID.

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

unique project identifier

State string

A filter to return only DeployArtifacts that matches the given lifecycleState.

SystemTags map[string]interface{}

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.

compartmentId String

The OCID of the compartment in which to list resources.

definedTags Map<String,Object>

Defined tags for this resource. Each key is predefined and scoped to a namespace. See Resource Tags. Example: {"foo-namespace.bar-key": "value"}

deployArtifactSources List<GetDeployArtifactsDeployArtifactCollectionItemDeployArtifactSource>

Specifies source of an artifact.

deployArtifactType String

Type of the deployment artifact.

description String

Optional description about the artifact to be deployed.

displayName String

A filter to return only resources that match the entire display name given.

freeformTags Map<String,Object>

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 or OCID for listing a single resource by ID.

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

unique project identifier

state String

A filter to return only DeployArtifacts that matches the given lifecycleState.

systemTags Map<String,Object>

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.

compartmentId string

The OCID of the compartment in which to list resources.

definedTags {[key: string]: any}

Defined tags for this resource. Each key is predefined and scoped to a namespace. See Resource Tags. Example: {"foo-namespace.bar-key": "value"}

deployArtifactSources GetDeployArtifactsDeployArtifactCollectionItemDeployArtifactSource[]

Specifies source of an artifact.

deployArtifactType string

Type of the deployment artifact.

description string

Optional description about the artifact to be deployed.

displayName string

A filter to return only resources that match the entire display name given.

freeformTags {[key: string]: any}

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 or OCID for listing a single resource by ID.

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

unique project identifier

state string

A filter to return only DeployArtifacts that matches the given lifecycleState.

systemTags {[key: string]: any}

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.

compartment_id str

The OCID of the compartment in which to list resources.

defined_tags Mapping[str, Any]

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_sources GetDeployArtifactsDeployArtifactCollectionItemDeployArtifactSource]

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

A filter to return only resources that match the entire display name given.

freeform_tags Mapping[str, Any]

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 or OCID for listing a single resource by ID.

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

unique project identifier

state str

A filter to return only DeployArtifacts that matches the given lifecycleState.

system_tags Mapping[str, Any]

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.

compartmentId String

The OCID of the compartment in which to list resources.

definedTags Map<Any>

Defined tags for this resource. Each key is predefined and scoped to a namespace. See Resource Tags. Example: {"foo-namespace.bar-key": "value"}

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

A filter to return only resources that match the entire display name given.

freeformTags Map<Any>

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 or OCID for listing a single resource by ID.

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

unique project identifier

state String

A filter to return only DeployArtifacts that matches the given lifecycleState.

systemTags Map<Any>

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.

GetDeployArtifactsDeployArtifactCollectionItemDeployArtifactSource

Base64encodedContent string

base64 Encoded String

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

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

base64 Encoded String

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

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

base64 Encoded String

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

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

base64 Encoded String

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

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

base64 Encoded String

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

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

base64 Encoded String

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

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

GetDeployArtifactsFilter

Name string
Values List<string>
Regex bool
Name string
Values []string
Regex bool
name String
values List<String>
regex Boolean
name string
values string[]
regex boolean
name str
values Sequence[str]
regex bool
name String
values List<String>
regex Boolean

Package Details

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

This Pulumi package is based on the oci Terraform Provider.