oci.Artifacts.GenericArtifact
Explore with Pulumi AI
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.
Constructor 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:
- Artifact
Id string - The OCID of the artifact. Example:
ocid1.genericartifact.oc1..exampleuniqueID
- 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"}
- 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
- Artifact
Id string - The OCID of the artifact. Example:
ocid1.genericartifact.oc1..exampleuniqueID
- 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"}
- 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
- artifact
Id String - The OCID of the artifact. Example:
ocid1.genericartifact.oc1..exampleuniqueID
- 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"}
- 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
- artifact
Id string - The OCID of the artifact. Example:
ocid1.genericartifact.oc1..exampleuniqueID
- {[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"}
- {[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
- 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"}
- 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
- artifact
Id String - The OCID of the artifact. Example:
ocid1.genericartifact.oc1..exampleuniqueID
- 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"}
- 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:
- 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.
- 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
- Id string
- The provider-assigned unique ID for this managed resource.
- 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
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.
- 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
- Id string
- The provider-assigned unique ID for this managed resource.
- 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
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.
- 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
- id String
- The provider-assigned unique ID for this managed resource.
- 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
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.
- 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
- id string
- The provider-assigned unique ID for this managed resource.
- 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_
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_ 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
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.
- 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
- id String
- The provider-assigned unique ID for this managed resource.
- 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
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.
- Artifact
Id string - The OCID of the artifact. Example:
ocid1.genericartifact.oc1..exampleuniqueID
- 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>
- (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 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>
(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 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 - The OCID of the artifact. Example:
ocid1.genericartifact.oc1..exampleuniqueID
- 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{}
- (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 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{}
(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 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 - The OCID of the artifact. Example:
ocid1.genericartifact.oc1..exampleuniqueID
- 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>
- (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 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>
(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 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 - The OCID of the artifact. Example:
ocid1.genericartifact.oc1..exampleuniqueID
- 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}
- (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 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}
(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 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 - 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.
- 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
- 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_ 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 - The OCID of the artifact. Example:
ocid1.genericartifact.oc1..exampleuniqueID
- 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>
- (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 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>
(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 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
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.