Oracle Cloud Infrastructure

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

ArtifactByPath

Provides the Artifact By Path resource in Oracle Cloud Infrastructure Generic Artifacts Content service. This resource supports upload/download the content of a generic artifact by specifying the repository id, artifact path, and artifact version

Note

This resource is not supported to delete generic artifact. In order to delete generic artifact, you can use oci.Artifacts.GenericArtifact

Example Usage

using Pulumi;
using Oci = Pulumi.Oci;

class MyStack : Stack
{
    public MyStack()
    {
        var testArtifactByPath = new Oci.GenericArtifactsContent.ArtifactByPath("testArtifactByPath", new Oci.GenericArtifactsContent.ArtifactByPathArgs
        {
            ArtifactPath = @var.Artifact_path,
            RepositoryId = oci_artifacts_repository.Test_repository.Id,
            Version = @var.Version,
            Source = @var.Source,
        });
    }

}
package main

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

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := GenericArtifactsContent.NewArtifactByPath(ctx, "testArtifactByPath", &GenericArtifactsContent.ArtifactByPathArgs{
			ArtifactPath: pulumi.Any(_var.Artifact_path),
			RepositoryId: pulumi.Any(oci_artifacts_repository.Test_repository.Id),
			Version:      pulumi.Any(_var.Version),
			Source:       pulumi.Any(_var.Source),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

Coming soon!

import pulumi
import pulumi_oci as oci

test_artifact_by_path = oci.generic_artifacts_content.ArtifactByPath("testArtifactByPath",
    artifact_path=var["artifact_path"],
    repository_id=oci_artifacts_repository["test_repository"]["id"],
    version=var["version"],
    source=var["source"])
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";

const testArtifactByPath = new oci.genericartifactscontent.ArtifactByPath("testArtifactByPath", {
    artifactPath: _var.artifact_path,
    repositoryId: oci_artifacts_repository.test_repository.id,
    version: _var.version,
    source: _var.source,
});

Coming soon!

Create a ArtifactByPath Resource

new ArtifactByPath(name: string, args: ArtifactByPathArgs, opts?: CustomResourceOptions);
@overload
def ArtifactByPath(resource_name: str,
                   opts: Optional[ResourceOptions] = None,
                   artifact_path: Optional[str] = None,
                   content: Optional[str] = None,
                   repository_id: Optional[str] = None,
                   source: Optional[str] = None,
                   version: Optional[str] = None)
@overload
def ArtifactByPath(resource_name: str,
                   args: ArtifactByPathArgs,
                   opts: Optional[ResourceOptions] = None)
func NewArtifactByPath(ctx *Context, name string, args ArtifactByPathArgs, opts ...ResourceOption) (*ArtifactByPath, error)
public ArtifactByPath(string name, ArtifactByPathArgs args, CustomResourceOptions? opts = null)
public ArtifactByPath(String name, ArtifactByPathArgs args)
public ArtifactByPath(String name, ArtifactByPathArgs args, CustomResourceOptions options)
type: oci:GenericArtifactsContent:ArtifactByPath
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

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

ArtifactByPath 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 ArtifactByPath resource accepts the following input properties:

ArtifactPath string

A user-defined path to describe the location of an artifact. You can use slashes to organize the repository, but slashes do not create a directory structure. An artifact path does not include an artifact version.

RepositoryId string

The OCID of the repository.

Version string

A user-defined string to describe the artifact version. Example: 1.1.0 or 1.2-beta-2

Content string

Content to be uploaded as the artifact. Cannot be defined if source is defined.

Source string

A path to a file on the local system to be uploaded as the artifact. Cannot be defined if content is defined.

ArtifactPath string

A user-defined path to describe the location of an artifact. You can use slashes to organize the repository, but slashes do not create a directory structure. An artifact path does not include an artifact version.

RepositoryId string

The OCID of the repository.

Version string

A user-defined string to describe the artifact version. Example: 1.1.0 or 1.2-beta-2

Content string

Content to be uploaded as the artifact. Cannot be defined if source is defined.

Source string

A path to a file on the local system to be uploaded as the artifact. Cannot be defined if content is defined.

artifactPath String

A user-defined path to describe the location of an artifact. You can use slashes to organize the repository, but slashes do not create a directory structure. An artifact path does not include an artifact version.

repositoryId String

The OCID of the repository.

version String

A user-defined string to describe the artifact version. Example: 1.1.0 or 1.2-beta-2

content String

Content to be uploaded as the artifact. Cannot be defined if source is defined.

source String

A path to a file on the local system to be uploaded as the artifact. Cannot be defined if content is defined.

artifactPath string

A user-defined path to describe the location of an artifact. You can use slashes to organize the repository, but slashes do not create a directory structure. An artifact path does not include an artifact version.

repositoryId string

The OCID of the repository.

version string

A user-defined string to describe the artifact version. Example: 1.1.0 or 1.2-beta-2

content string

Content to be uploaded as the artifact. Cannot be defined if source is defined.

source string

A path to a file on the local system to be uploaded as the artifact. Cannot be defined if content is defined.

artifact_path str

A user-defined path to describe the location of an artifact. You can use slashes to organize the repository, but slashes do not create a directory structure. An artifact path does not include an artifact version.

repository_id str

The OCID of the repository.

version str

A user-defined string to describe the artifact version. Example: 1.1.0 or 1.2-beta-2

content str

Content to be uploaded as the artifact. Cannot be defined if source is defined.

source str

A path to a file on the local system to be uploaded as the artifact. Cannot be defined if content is defined.

artifactPath String

A user-defined path to describe the location of an artifact. You can use slashes to organize the repository, but slashes do not create a directory structure. An artifact path does not include an artifact version.

repositoryId String

The OCID of the repository.

version String

A user-defined string to describe the artifact version. Example: 1.1.0 or 1.2-beta-2

content String

Content to be uploaded as the artifact. Cannot be defined if source is defined.

source String

A path to a file on the local system to be uploaded as the artifact. Cannot be defined if content is defined.

Outputs

All input properties are implicitly available as output properties. Additionally, the ArtifactByPath resource produces the following output properties:

ArtifactId string
CompartmentId string

The OCID of the repository's compartment.

DefinedTags Dictionary<string, object>

Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}

DisplayName string

The artifact name with the format of <artifact-path>:<artifact-version>. The artifact name is truncated to a maximum length of 255. Example: project01/my-web-app/artifact-abc:1.0.0

FreeformTags Dictionary<string, object>

Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}

Id string

The provider-assigned unique ID for this managed resource.

Sha256 string

The SHA256 digest for the artifact. When you upload an artifact to the repository, a SHA256 digest is calculated and added to the artifact properties.

SizeInBytes string

The size of the artifact in bytes.

State string

The current state of the artifact.

TimeCreated string

An RFC 3339 timestamp indicating when the repository was created.

ArtifactId string
CompartmentId string

The OCID of the repository's compartment.

DefinedTags map[string]interface{}

Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}

DisplayName string

The artifact name with the format of <artifact-path>:<artifact-version>. The artifact name is truncated to a maximum length of 255. Example: project01/my-web-app/artifact-abc:1.0.0

FreeformTags map[string]interface{}

Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}

Id string

The provider-assigned unique ID for this managed resource.

Sha256 string

The SHA256 digest for the artifact. When you upload an artifact to the repository, a SHA256 digest is calculated and added to the artifact properties.

SizeInBytes string

The size of the artifact in bytes.

State string

The current state of the artifact.

TimeCreated string

An RFC 3339 timestamp indicating when the repository was created.

artifactId String
compartmentId String

The OCID of the repository's compartment.

definedTags Map<String,Object>

Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}

displayName String

The artifact name with the format of <artifact-path>:<artifact-version>. The artifact name is truncated to a maximum length of 255. Example: project01/my-web-app/artifact-abc:1.0.0

freeformTags Map<String,Object>

Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}

id String

The provider-assigned unique ID for this managed resource.

sha256 String

The SHA256 digest for the artifact. When you upload an artifact to the repository, a SHA256 digest is calculated and added to the artifact properties.

sizeInBytes String

The size of the artifact in bytes.

state String

The current state of the artifact.

timeCreated String

An RFC 3339 timestamp indicating when the repository was created.

artifactId string
compartmentId string

The OCID of the repository's compartment.

definedTags {[key: string]: any}

Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}

displayName string

The artifact name with the format of <artifact-path>:<artifact-version>. The artifact name is truncated to a maximum length of 255. Example: project01/my-web-app/artifact-abc:1.0.0

freeformTags {[key: string]: any}

Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}

id string

The provider-assigned unique ID for this managed resource.

sha256 string

The SHA256 digest for the artifact. When you upload an artifact to the repository, a SHA256 digest is calculated and added to the artifact properties.

sizeInBytes string

The size of the artifact in bytes.

state string

The current state of the artifact.

timeCreated string

An RFC 3339 timestamp indicating when the repository was created.

artifact_id str
compartment_id str

The OCID of the repository's compartment.

defined_tags Mapping[str, Any]

Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}

display_name str

The artifact name with the format of <artifact-path>:<artifact-version>. The artifact name is truncated to a maximum length of 255. Example: project01/my-web-app/artifact-abc:1.0.0

freeform_tags Mapping[str, Any]

Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}

id str

The provider-assigned unique ID for this managed resource.

sha256 str

The SHA256 digest for the artifact. When you upload an artifact to the repository, a SHA256 digest is calculated and added to the artifact properties.

size_in_bytes str

The size of the artifact in bytes.

state str

The current state of the artifact.

time_created str

An RFC 3339 timestamp indicating when the repository was created.

artifactId String
compartmentId String

The OCID of the repository's compartment.

definedTags Map<Any>

Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}

displayName String

The artifact name with the format of <artifact-path>:<artifact-version>. The artifact name is truncated to a maximum length of 255. Example: project01/my-web-app/artifact-abc:1.0.0

freeformTags Map<Any>

Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}

id String

The provider-assigned unique ID for this managed resource.

sha256 String

The SHA256 digest for the artifact. When you upload an artifact to the repository, a SHA256 digest is calculated and added to the artifact properties.

sizeInBytes String

The size of the artifact in bytes.

state String

The current state of the artifact.

timeCreated String

An RFC 3339 timestamp indicating when the repository was created.

Look up an Existing ArtifactByPath Resource

Get an existing ArtifactByPath 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?: ArtifactByPathState, opts?: CustomResourceOptions): ArtifactByPath
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        artifact_id: Optional[str] = None,
        artifact_path: Optional[str] = None,
        compartment_id: Optional[str] = None,
        content: Optional[str] = None,
        defined_tags: Optional[Mapping[str, Any]] = None,
        display_name: Optional[str] = None,
        freeform_tags: Optional[Mapping[str, Any]] = None,
        repository_id: Optional[str] = None,
        sha256: Optional[str] = None,
        size_in_bytes: Optional[str] = None,
        source: Optional[str] = None,
        state: Optional[str] = None,
        time_created: Optional[str] = None,
        version: Optional[str] = None) -> ArtifactByPath
func GetArtifactByPath(ctx *Context, name string, id IDInput, state *ArtifactByPathState, opts ...ResourceOption) (*ArtifactByPath, error)
public static ArtifactByPath Get(string name, Input<string> id, ArtifactByPathState? state, CustomResourceOptions? opts = null)
public static ArtifactByPath get(String name, Output<String> id, ArtifactByPathState 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:
ArtifactId string
ArtifactPath string

A user-defined path to describe the location of an artifact. You can use slashes to organize the repository, but slashes do not create a directory structure. An artifact path does not include an artifact version.

CompartmentId string

The OCID of the repository's compartment.

Content string

Content to be uploaded as the artifact. Cannot be defined if source is defined.

DefinedTags Dictionary<string, object>

Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}

DisplayName string

The artifact name with the format of <artifact-path>:<artifact-version>. The artifact name is truncated to a maximum length of 255. Example: project01/my-web-app/artifact-abc:1.0.0

FreeformTags Dictionary<string, object>

Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}

RepositoryId string

The OCID of the repository.

Sha256 string

The SHA256 digest for the artifact. When you upload an artifact to the repository, a SHA256 digest is calculated and added to the artifact properties.

SizeInBytes string

The size of the artifact in bytes.

Source string

A path to a file on the local system to be uploaded as the artifact. Cannot be defined if content is defined.

State string

The current state of the artifact.

TimeCreated string

An RFC 3339 timestamp indicating when the repository was created.

Version string

A user-defined string to describe the artifact version. Example: 1.1.0 or 1.2-beta-2

ArtifactId string
ArtifactPath string

A user-defined path to describe the location of an artifact. You can use slashes to organize the repository, but slashes do not create a directory structure. An artifact path does not include an artifact version.

CompartmentId string

The OCID of the repository's compartment.

Content string

Content to be uploaded as the artifact. Cannot be defined if source is defined.

DefinedTags map[string]interface{}

Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}

DisplayName string

The artifact name with the format of <artifact-path>:<artifact-version>. The artifact name is truncated to a maximum length of 255. Example: project01/my-web-app/artifact-abc:1.0.0

FreeformTags map[string]interface{}

Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}

RepositoryId string

The OCID of the repository.

Sha256 string

The SHA256 digest for the artifact. When you upload an artifact to the repository, a SHA256 digest is calculated and added to the artifact properties.

SizeInBytes string

The size of the artifact in bytes.

Source string

A path to a file on the local system to be uploaded as the artifact. Cannot be defined if content is defined.

State string

The current state of the artifact.

TimeCreated string

An RFC 3339 timestamp indicating when the repository was created.

Version string

A user-defined string to describe the artifact version. Example: 1.1.0 or 1.2-beta-2

artifactId String
artifactPath String

A user-defined path to describe the location of an artifact. You can use slashes to organize the repository, but slashes do not create a directory structure. An artifact path does not include an artifact version.

compartmentId String

The OCID of the repository's compartment.

content String

Content to be uploaded as the artifact. Cannot be defined if source is defined.

definedTags Map<String,Object>

Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}

displayName String

The artifact name with the format of <artifact-path>:<artifact-version>. The artifact name is truncated to a maximum length of 255. Example: project01/my-web-app/artifact-abc:1.0.0

freeformTags Map<String,Object>

Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}

repositoryId String

The OCID of the repository.

sha256 String

The SHA256 digest for the artifact. When you upload an artifact to the repository, a SHA256 digest is calculated and added to the artifact properties.

sizeInBytes String

The size of the artifact in bytes.

source String

A path to a file on the local system to be uploaded as the artifact. Cannot be defined if content is defined.

state String

The current state of the artifact.

timeCreated String

An RFC 3339 timestamp indicating when the repository was created.

version String

A user-defined string to describe the artifact version. Example: 1.1.0 or 1.2-beta-2

artifactId string
artifactPath string

A user-defined path to describe the location of an artifact. You can use slashes to organize the repository, but slashes do not create a directory structure. An artifact path does not include an artifact version.

compartmentId string

The OCID of the repository's compartment.

content string

Content to be uploaded as the artifact. Cannot be defined if source is defined.

definedTags {[key: string]: any}

Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}

displayName string

The artifact name with the format of <artifact-path>:<artifact-version>. The artifact name is truncated to a maximum length of 255. Example: project01/my-web-app/artifact-abc:1.0.0

freeformTags {[key: string]: any}

Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}

repositoryId string

The OCID of the repository.

sha256 string

The SHA256 digest for the artifact. When you upload an artifact to the repository, a SHA256 digest is calculated and added to the artifact properties.

sizeInBytes string

The size of the artifact in bytes.

source string

A path to a file on the local system to be uploaded as the artifact. Cannot be defined if content is defined.

state string

The current state of the artifact.

timeCreated string

An RFC 3339 timestamp indicating when the repository was created.

version string

A user-defined string to describe the artifact version. Example: 1.1.0 or 1.2-beta-2

artifact_id str
artifact_path str

A user-defined path to describe the location of an artifact. You can use slashes to organize the repository, but slashes do not create a directory structure. An artifact path does not include an artifact version.

compartment_id str

The OCID of the repository's compartment.

content str

Content to be uploaded as the artifact. Cannot be defined if source is defined.

defined_tags Mapping[str, Any]

Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}

display_name str

The artifact name with the format of <artifact-path>:<artifact-version>. The artifact name is truncated to a maximum length of 255. Example: project01/my-web-app/artifact-abc:1.0.0

freeform_tags Mapping[str, Any]

Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}

repository_id str

The OCID of the repository.

sha256 str

The SHA256 digest for the artifact. When you upload an artifact to the repository, a SHA256 digest is calculated and added to the artifact properties.

size_in_bytes str

The size of the artifact in bytes.

source str

A path to a file on the local system to be uploaded as the artifact. Cannot be defined if content is defined.

state str

The current state of the artifact.

time_created str

An RFC 3339 timestamp indicating when the repository was created.

version str

A user-defined string to describe the artifact version. Example: 1.1.0 or 1.2-beta-2

artifactId String
artifactPath String

A user-defined path to describe the location of an artifact. You can use slashes to organize the repository, but slashes do not create a directory structure. An artifact path does not include an artifact version.

compartmentId String

The OCID of the repository's compartment.

content String

Content to be uploaded as the artifact. Cannot be defined if source is defined.

definedTags Map<Any>

Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}

displayName String

The artifact name with the format of <artifact-path>:<artifact-version>. The artifact name is truncated to a maximum length of 255. Example: project01/my-web-app/artifact-abc:1.0.0

freeformTags Map<Any>

Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}

repositoryId String

The OCID of the repository.

sha256 String

The SHA256 digest for the artifact. When you upload an artifact to the repository, a SHA256 digest is calculated and added to the artifact properties.

sizeInBytes String

The size of the artifact in bytes.

source String

A path to a file on the local system to be uploaded as the artifact. Cannot be defined if content is defined.

state String

The current state of the artifact.

timeCreated String

An RFC 3339 timestamp indicating when the repository was created.

version String

A user-defined string to describe the artifact version. Example: 1.1.0 or 1.2-beta-2

Package Details

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

This Pulumi package is based on the oci Terraform Provider.