Oracle Cloud Infrastructure

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

getGenericArtifact

This data source provides details about a specific Generic Artifact resource in Oracle Cloud Infrastructure Artifacts service.

Gets information about an artifact with a specified OCID.

Example Usage

using Pulumi;
using Oci = Pulumi.Oci;

class MyStack : Stack
{
    public MyStack()
    {
        var testGenericArtifact = Output.Create(Oci.Artifacts.GetGenericArtifact.InvokeAsync(new Oci.Artifacts.GetGenericArtifactArgs
        {
            ArtifactId = oci_artifacts_artifact.Test_artifact.Id,
        }));
    }

}
package main

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

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := Artifacts.GetGenericArtifact(ctx, &artifacts.GetGenericArtifactArgs{
			ArtifactId: oci_artifacts_artifact.Test_artifact.Id,
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

Coming soon!

import pulumi
import pulumi_oci as oci

test_generic_artifact = oci.Artifacts.get_generic_artifact(artifact_id=oci_artifacts_artifact["test_artifact"]["id"])
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";

const testGenericArtifact = oci.Artifacts.getGenericArtifact({
    artifactId: oci_artifacts_artifact.test_artifact.id,
});

Coming soon!

Using getGenericArtifact

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 getGenericArtifact(args: GetGenericArtifactArgs, opts?: InvokeOptions): Promise<GetGenericArtifactResult>
function getGenericArtifactOutput(args: GetGenericArtifactOutputArgs, opts?: InvokeOptions): Output<GetGenericArtifactResult>
def get_generic_artifact(artifact_id: Optional[str] = None,
                         opts: Optional[InvokeOptions] = None) -> GetGenericArtifactResult
def get_generic_artifact_output(artifact_id: Optional[pulumi.Input[str]] = None,
                         opts: Optional[InvokeOptions] = None) -> Output[GetGenericArtifactResult]
func GetGenericArtifact(ctx *Context, args *GetGenericArtifactArgs, opts ...InvokeOption) (*GetGenericArtifactResult, error)
func GetGenericArtifactOutput(ctx *Context, args *GetGenericArtifactOutputArgs, opts ...InvokeOption) GetGenericArtifactResultOutput

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

public static class GetGenericArtifact 
{
    public static Task<GetGenericArtifactResult> InvokeAsync(GetGenericArtifactArgs args, InvokeOptions? opts = null)
    public static Output<GetGenericArtifactResult> Invoke(GetGenericArtifactInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetGenericArtifactResult> getGenericArtifact(GetGenericArtifactArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
Fn::Invoke:
  Function: oci:Artifacts/getGenericArtifact:getGenericArtifact
  Arguments:
    # Arguments dictionary

The following arguments are supported:

ArtifactId string

The OCID of the artifact. Example: ocid1.genericartifact.oc1..exampleuniqueID

ArtifactId string

The OCID of the artifact. Example: ocid1.genericartifact.oc1..exampleuniqueID

artifactId String

The OCID of the artifact. Example: ocid1.genericartifact.oc1..exampleuniqueID

artifactId string

The OCID of the artifact. Example: ocid1.genericartifact.oc1..exampleuniqueID

artifact_id str

The OCID of the artifact. Example: ocid1.genericartifact.oc1..exampleuniqueID

artifactId String

The OCID of the artifact. Example: ocid1.genericartifact.oc1..exampleuniqueID

getGenericArtifact Result

The following output properties are available:

ArtifactId string
ArtifactPath string

A user-defined path to describe the location of an artifact. Slashes do not create a directory structure, but you can use slashes to organize the repository. An artifact path does not include an artifact version. Example: project01/my-web-app/artifact-abc

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 OCID of the artifact. Example: ocid1.genericartifact.oc1..exampleuniqueID

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.

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. Slashes do not create a directory structure, but you can use slashes to organize the repository. An artifact path does not include an artifact version. Example: project01/my-web-app/artifact-abc

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 OCID of the artifact. Example: ocid1.genericartifact.oc1..exampleuniqueID

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.

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. Slashes do not create a directory structure, but you can use slashes to organize the repository. An artifact path does not include an artifact version. Example: project01/my-web-app/artifact-abc

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 OCID of the artifact. Example: ocid1.genericartifact.oc1..exampleuniqueID

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.

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. Slashes do not create a directory structure, but you can use slashes to organize the repository. An artifact path does not include an artifact version. Example: project01/my-web-app/artifact-abc

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 OCID of the artifact. Example: ocid1.genericartifact.oc1..exampleuniqueID

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.

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. Slashes do not create a directory structure, but you can use slashes to organize the repository. An artifact path does not include an artifact version. Example: project01/my-web-app/artifact-abc

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 OCID of the artifact. Example: ocid1.genericartifact.oc1..exampleuniqueID

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.

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. Slashes do not create a directory structure, but you can use slashes to organize the repository. An artifact path does not include an artifact version. Example: project01/my-web-app/artifact-abc

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 OCID of the artifact. Example: ocid1.genericartifact.oc1..exampleuniqueID

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.

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.