1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. Artifacts
  5. GenericArtifact
Oracle Cloud Infrastructure v1.40.0 published on Wednesday, Jun 12, 2024 by Pulumi

oci.Artifacts.GenericArtifact

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v1.40.0 published on Wednesday, Jun 12, 2024 by Pulumi

    This resource provides the Generic Artifact resource in Oracle Cloud Infrastructure Artifacts service.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testGenericArtifact = new oci.artifacts.GenericArtifact("test_generic_artifact", {
        artifactId: testArtifact.id,
        definedTags: {
            "Operations.CostCenter": "42",
        },
        freeformTags: {
            Department: "Finance",
        },
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_generic_artifact = oci.artifacts.GenericArtifact("test_generic_artifact",
        artifact_id=test_artifact["id"],
        defined_tags={
            "Operations.CostCenter": "42",
        },
        freeform_tags={
            "Department": "Finance",
        })
    
    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.NewGenericArtifact(ctx, "test_generic_artifact", &Artifacts.GenericArtifactArgs{
    			ArtifactId: pulumi.Any(testArtifact.Id),
    			DefinedTags: pulumi.Map{
    				"Operations.CostCenter": pulumi.Any("42"),
    			},
    			FreeformTags: pulumi.Map{
    				"Department": pulumi.Any("Finance"),
    			},
    		})
    		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 testGenericArtifact = new Oci.Artifacts.GenericArtifact("test_generic_artifact", new()
        {
            ArtifactId = testArtifact.Id,
            DefinedTags = 
            {
                { "Operations.CostCenter", "42" },
            },
            FreeformTags = 
            {
                { "Department", "Finance" },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.oci.Artifacts.GenericArtifact;
    import com.pulumi.oci.Artifacts.GenericArtifactArgs;
    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) {
            var testGenericArtifact = new GenericArtifact("testGenericArtifact", GenericArtifactArgs.builder()
                .artifactId(testArtifact.id())
                .definedTags(Map.of("Operations.CostCenter", "42"))
                .freeformTags(Map.of("Department", "Finance"))
                .build());
    
        }
    }
    
    resources:
      testGenericArtifact:
        type: oci:Artifacts:GenericArtifact
        name: test_generic_artifact
        properties:
          artifactId: ${testArtifact.id}
          definedTags:
            Operations.CostCenter: '42'
          freeformTags:
            Department: Finance
    

    Create GenericArtifact Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new GenericArtifact(name: string, args: GenericArtifactArgs, opts?: CustomResourceOptions);
    @overload
    def GenericArtifact(resource_name: str,
                        args: GenericArtifactArgs,
                        opts: Optional[ResourceOptions] = None)
    
    @overload
    def GenericArtifact(resource_name: str,
                        opts: Optional[ResourceOptions] = None,
                        artifact_id: Optional[str] = None,
                        defined_tags: Optional[Mapping[str, Any]] = None,
                        freeform_tags: Optional[Mapping[str, Any]] = None)
    func NewGenericArtifact(ctx *Context, name string, args GenericArtifactArgs, opts ...ResourceOption) (*GenericArtifact, error)
    public GenericArtifact(string name, GenericArtifactArgs args, CustomResourceOptions? opts = null)
    public GenericArtifact(String name, GenericArtifactArgs args)
    public GenericArtifact(String name, GenericArtifactArgs args, CustomResourceOptions options)
    
    type: oci:Artifacts:GenericArtifact
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

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

    Example

    The following reference example uses placeholder values for all input properties.

    var genericArtifactResource = new Oci.Artifacts.GenericArtifact("genericArtifactResource", new()
    {
        ArtifactId = "string",
        DefinedTags = 
        {
            { "string", "any" },
        },
        FreeformTags = 
        {
            { "string", "any" },
        },
    });
    
    example, err := Artifacts.NewGenericArtifact(ctx, "genericArtifactResource", &Artifacts.GenericArtifactArgs{
    	ArtifactId: pulumi.String("string"),
    	DefinedTags: pulumi.Map{
    		"string": pulumi.Any("any"),
    	},
    	FreeformTags: pulumi.Map{
    		"string": pulumi.Any("any"),
    	},
    })
    
    var genericArtifactResource = new GenericArtifact("genericArtifactResource", GenericArtifactArgs.builder()
        .artifactId("string")
        .definedTags(Map.of("string", "any"))
        .freeformTags(Map.of("string", "any"))
        .build());
    
    generic_artifact_resource = oci.artifacts.GenericArtifact("genericArtifactResource",
        artifact_id="string",
        defined_tags={
            "string": "any",
        },
        freeform_tags={
            "string": "any",
        })
    
    const genericArtifactResource = new oci.artifacts.GenericArtifact("genericArtifactResource", {
        artifactId: "string",
        definedTags: {
            string: "any",
        },
        freeformTags: {
            string: "any",
        },
    });
    
    type: oci:Artifacts:GenericArtifact
    properties:
        artifactId: string
        definedTags:
            string: any
        freeformTags:
            string: any
    

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

    ArtifactId string
    The OCID of the artifact. Example: ocid1.genericartifact.oc1..exampleuniqueID
    DefinedTags Dictionary<string, object>
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    FreeformTags Dictionary<string, object>

    (Updatable) 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"}

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    ArtifactId string
    The OCID of the artifact. Example: ocid1.genericartifact.oc1..exampleuniqueID
    DefinedTags map[string]interface{}
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    FreeformTags map[string]interface{}

    (Updatable) 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"}

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    artifactId String
    The OCID of the artifact. Example: ocid1.genericartifact.oc1..exampleuniqueID
    definedTags Map<String,Object>
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    freeformTags Map<String,Object>

    (Updatable) 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"}

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    artifactId string
    The OCID of the artifact. Example: ocid1.genericartifact.oc1..exampleuniqueID
    definedTags {[key: string]: any}
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    freeformTags {[key: string]: any}

    (Updatable) 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"}

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    artifact_id str
    The OCID of the artifact. Example: ocid1.genericartifact.oc1..exampleuniqueID
    defined_tags Mapping[str, Any]
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    freeform_tags Mapping[str, Any]

    (Updatable) 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"}

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    artifactId String
    The OCID of the artifact. Example: ocid1.genericartifact.oc1..exampleuniqueID
    definedTags Map<Any>
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    freeformTags Map<Any>

    (Updatable) 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"}

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    Outputs

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

    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.
    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
    Id string
    The provider-assigned unique ID for this managed resource.
    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
    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.
    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
    Id string
    The provider-assigned unique ID for this managed resource.
    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
    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.
    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
    id String
    The provider-assigned unique ID for this managed resource.
    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
    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.
    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
    id string
    The provider-assigned unique ID for this managed resource.
    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_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.
    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
    id str
    The provider-assigned unique ID for this managed resource.
    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
    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.
    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
    id String
    The provider-assigned unique ID for this managed resource.
    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

    Look up Existing GenericArtifact Resource

    Get an existing GenericArtifact 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?: GenericArtifactState, opts?: CustomResourceOptions): GenericArtifact
    @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,
            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,
            state: Optional[str] = None,
            time_created: Optional[str] = None,
            version: Optional[str] = None) -> GenericArtifact
    func GetGenericArtifact(ctx *Context, name string, id IDInput, state *GenericArtifactState, opts ...ResourceOption) (*GenericArtifact, error)
    public static GenericArtifact Get(string name, Input<string> id, GenericArtifactState? state, CustomResourceOptions? opts = null)
    public static GenericArtifact get(String name, Output<String> id, GenericArtifactState 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
    The OCID of the artifact. Example: ocid1.genericartifact.oc1..exampleuniqueID
    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>
    (Updatable) 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>

    (Updatable) 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"}

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    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
    The OCID of the artifact. Example: ocid1.genericartifact.oc1..exampleuniqueID
    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{}
    (Updatable) 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{}

    (Updatable) 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"}

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

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

    (Updatable) 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"}

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    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
    The OCID of the artifact. Example: ocid1.genericartifact.oc1..exampleuniqueID
    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}
    (Updatable) 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}

    (Updatable) 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"}

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    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
    The OCID of the artifact. Example: ocid1.genericartifact.oc1..exampleuniqueID
    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]
    (Updatable) 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]

    (Updatable) 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"}

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

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

    (Updatable) 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"}

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    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

    Import

    GenericArtifacts can be imported using the id, e.g.

    $ pulumi import oci:Artifacts/genericArtifact:GenericArtifact test_generic_artifact "generic/artifacts/{artifactId}"
    

    To learn more about importing existing cloud resources, see Importing resources.

    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 v1.40.0 published on Wednesday, Jun 12, 2024 by Pulumi