Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi
oci.GenericArtifactsContent.getArtifactByPath
Explore with Pulumi AI
Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi
This data source provides details about a specific Artifact By Path resource in Oracle Cloud Infrastructure Generic Artifacts Content service.
Get generic artifact content.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testArtifactByPath = oci.GenericArtifactsContent.getArtifactByPath({
artifactPath: artifactByPathArtifactPath,
repositoryId: testRepository.id,
version: artifactByPathVersion,
});
import pulumi
import pulumi_oci as oci
test_artifact_by_path = oci.GenericArtifactsContent.get_artifact_by_path(artifact_path=artifact_by_path_artifact_path,
repository_id=test_repository["id"],
version=artifact_by_path_version)
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.GetArtifactByPath(ctx, &genericartifactscontent.GetArtifactByPathArgs{
ArtifactPath: artifactByPathArtifactPath,
RepositoryId: testRepository.Id,
Version: artifactByPathVersion,
}, nil)
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 testArtifactByPath = Oci.GenericArtifactsContent.GetArtifactByPath.Invoke(new()
{
ArtifactPath = artifactByPathArtifactPath,
RepositoryId = testRepository.Id,
Version = artifactByPathVersion,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.GenericArtifactsContent.GenericArtifactsContentFunctions;
import com.pulumi.oci.GenericArtifactsContent.inputs.GetArtifactByPathArgs;
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 testArtifactByPath = GenericArtifactsContentFunctions.getArtifactByPath(GetArtifactByPathArgs.builder()
.artifactPath(artifactByPathArtifactPath)
.repositoryId(testRepository.id())
.version(artifactByPathVersion)
.build());
}
}
variables:
testArtifactByPath:
fn::invoke:
Function: oci:GenericArtifactsContent:getArtifactByPath
Arguments:
artifactPath: ${artifactByPathArtifactPath}
repositoryId: ${testRepository.id}
version: ${artifactByPathVersion}
Using getArtifactByPath
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 getArtifactByPath(args: GetArtifactByPathArgs, opts?: InvokeOptions): Promise<GetArtifactByPathResult>
function getArtifactByPathOutput(args: GetArtifactByPathOutputArgs, opts?: InvokeOptions): Output<GetArtifactByPathResult>
def get_artifact_by_path(artifact_path: Optional[str] = None,
repository_id: Optional[str] = None,
version: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetArtifactByPathResult
def get_artifact_by_path_output(artifact_path: Optional[pulumi.Input[str]] = None,
repository_id: Optional[pulumi.Input[str]] = None,
version: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetArtifactByPathResult]
func GetArtifactByPath(ctx *Context, args *GetArtifactByPathArgs, opts ...InvokeOption) (*GetArtifactByPathResult, error)
func GetArtifactByPathOutput(ctx *Context, args *GetArtifactByPathOutputArgs, opts ...InvokeOption) GetArtifactByPathResultOutput
> Note: This function is named GetArtifactByPath
in the Go SDK.
public static class GetArtifactByPath
{
public static Task<GetArtifactByPathResult> InvokeAsync(GetArtifactByPathArgs args, InvokeOptions? opts = null)
public static Output<GetArtifactByPathResult> Invoke(GetArtifactByPathInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetArtifactByPathResult> getArtifactByPath(GetArtifactByPathArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: oci:GenericArtifactsContent/getArtifactByPath:getArtifactByPath
arguments:
# arguments dictionary
The following arguments are supported:
- Artifact
Path string - The generic artifact path. Example:
foo/bar/baz
- Repository
Id string - The OCID of the repository. Example:
ocid1.repository.oc1..exampleuniqueID
- Version string
- The generic artifact version. Example:
1.1.2
- Artifact
Path string - The generic artifact path. Example:
foo/bar/baz
- Repository
Id string - The OCID of the repository. Example:
ocid1.repository.oc1..exampleuniqueID
- Version string
- The generic artifact version. Example:
1.1.2
- artifact
Path String - The generic artifact path. Example:
foo/bar/baz
- repository
Id String - The OCID of the repository. Example:
ocid1.repository.oc1..exampleuniqueID
- version String
- The generic artifact version. Example:
1.1.2
- artifact
Path string - The generic artifact path. Example:
foo/bar/baz
- repository
Id string - The OCID of the repository. Example:
ocid1.repository.oc1..exampleuniqueID
- version string
- The generic artifact version. Example:
1.1.2
- artifact_
path str - The generic artifact path. Example:
foo/bar/baz
- repository_
id str - The OCID of the repository. Example:
ocid1.repository.oc1..exampleuniqueID
- version str
- The generic artifact version. Example:
1.1.2
- artifact
Path String - The generic artifact path. Example:
foo/bar/baz
- repository
Id String - The OCID of the repository. Example:
ocid1.repository.oc1..exampleuniqueID
- version String
- The generic artifact version. Example:
1.1.2
getArtifactByPath Result
The following output properties are available:
- Artifact
Id string - Artifact
Path string - Compartment
Id string - Content string
- Dictionary<string, object>
- Display
Name string - Dictionary<string, object>
- Id string
- Repository
Id string - Sha256 string
- Size
In stringBytes - Source string
- State string
- Time
Created string - Version string
- Artifact
Id string - Artifact
Path string - Compartment
Id string - Content string
- map[string]interface{}
- Display
Name string - map[string]interface{}
- Id string
- Repository
Id string - Sha256 string
- Size
In stringBytes - Source string
- State string
- Time
Created string - Version string
- artifact
Id String - artifact
Path String - compartment
Id String - content String
- Map<String,Object>
- display
Name String - Map<String,Object>
- id String
- repository
Id String - sha256 String
- size
In StringBytes - source String
- state String
- time
Created String - version String
- artifact
Id string - artifact
Path string - compartment
Id string - content string
- {[key: string]: any}
- display
Name string - {[key: string]: any}
- id string
- repository
Id string - sha256 string
- size
In stringBytes - source string
- state string
- time
Created string - version string
- artifact_
id str - artifact_
path str - compartment_
id str - content str
- Mapping[str, Any]
- display_
name str - Mapping[str, Any]
- id str
- repository_
id str - sha256 str
- size_
in_ strbytes - source str
- state str
- time_
created str - version str
- artifact
Id String - artifact
Path String - compartment
Id String - content String
- Map<Any>
- display
Name String - Map<Any>
- id String
- repository
Id String - sha256 String
- size
In StringBytes - source String
- state String
- time
Created String - version String
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oci
Terraform Provider.
Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi