oci.Artifacts.getGenericArtifact
Explore with Pulumi AI
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 System.Collections.Generic;
using System.Linq;
using Pulumi;
using Oci = Pulumi.Oci;
return await Deployment.RunAsync(() =>
{
var testGenericArtifact = Oci.Artifacts.GetGenericArtifact.Invoke(new()
{
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
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.Artifacts.ArtifactsFunctions;
import com.pulumi.oci.Artifacts.inputs.GetGenericArtifactArgs;
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 testGenericArtifact = ArtifactsFunctions.getGenericArtifact(GetGenericArtifactArgs.builder()
.artifactId(oci_artifacts_artifact.test_artifact().id())
.build());
}
}
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,
});
variables:
testGenericArtifact:
fn::invoke:
Function: oci:Artifacts:getGenericArtifact
Arguments:
artifactId: ${oci_artifacts_artifact.test_artifact.id}
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:
- Artifact
Id string The OCID of the artifact. Example:
ocid1.genericartifact.oc1..exampleuniqueID
- Artifact
Id string The OCID of the artifact. Example:
ocid1.genericartifact.oc1..exampleuniqueID
- artifact
Id String The OCID of the artifact. Example:
ocid1.genericartifact.oc1..exampleuniqueID
- artifact
Id string The OCID of the artifact. Example:
ocid1.genericartifact.oc1..exampleuniqueID
- artifact_
id str The OCID of the artifact. Example:
ocid1.genericartifact.oc1..exampleuniqueID
- artifact
Id String The OCID of the artifact. Example:
ocid1.genericartifact.oc1..exampleuniqueID
getGenericArtifact Result
The following output properties are available:
- Artifact
Id string - Artifact
Path 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
- Compartment
Id string The OCID of the repository's compartment.
- 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"}
- Display
Name 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
- 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
- Repository
Id 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.
- Size
In stringBytes The size of the artifact in bytes.
- State string
The current state of the artifact.
- Time
Created 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
or1.2-beta-2
- Artifact
Id string - Artifact
Path 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
- Compartment
Id string The OCID of the repository's compartment.
- 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"}
- Display
Name 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
- 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
- Repository
Id 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.
- Size
In stringBytes The size of the artifact in bytes.
- State string
The current state of the artifact.
- Time
Created 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
or1.2-beta-2
- artifact
Id String - artifact
Path 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
- compartment
Id String The OCID of the repository's compartment.
- 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"}
- display
Name 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
- 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
- repository
Id 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.
- size
In StringBytes The size of the artifact in bytes.
- state String
The current state of the artifact.
- time
Created 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
or1.2-beta-2
- artifact
Id string - artifact
Path 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
- compartment
Id string The OCID of the repository's compartment.
- {[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"}
- display
Name 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
- {[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
- repository
Id 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.
- size
In stringBytes The size of the artifact in bytes.
- state string
The current state of the artifact.
- time
Created 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
or1.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.
- 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
- 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_ strbytes 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
or1.2-beta-2
- artifact
Id String - artifact
Path 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
- compartment
Id String The OCID of the repository's compartment.
- 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"}
- display
Name 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
- 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
- repository
Id 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.
- size
In StringBytes The size of the artifact in bytes.
- state String
The current state of the artifact.
- time
Created 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
or1.2-beta-2
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
oci
Terraform Provider.