Oracle Cloud Infrastructure
getGenericArtifactsContent
This data source provides details about a specific Generic Artifacts Content resource in Oracle Cloud Infrastructure Generic Artifacts Content service.
Gets the specified artifact’s content.
Example Usage
using Pulumi;
using Oci = Pulumi.Oci;
class MyStack : Stack
{
public MyStack()
{
var testGenericArtifactsContent = Output.Create(Oci.GenericArtifactsContent.GetGenericArtifactsContent.InvokeAsync(new Oci.GenericArtifactsContent.GetGenericArtifactsContentArgs
{
ArtifactId = oci_generic_artifacts_content_artifact.Test_artifact.Id,
}));
}
}
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.GetGenericArtifactsContent(ctx, &genericartifactscontent.GetGenericArtifactsContentArgs{
ArtifactId: oci_generic_artifacts_content_artifact.Test_artifact.Id,
}, nil)
if err != nil {
return err
}
return nil
})
}
Coming soon!
import pulumi
import pulumi_oci as oci
test_generic_artifacts_content = oci.GenericArtifactsContent.get_generic_artifacts_content(artifact_id=oci_generic_artifacts_content_artifact["test_artifact"]["id"])
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testGenericArtifactsContent = oci.GenericArtifactsContent.getGenericArtifactsContent({
artifactId: oci_generic_artifacts_content_artifact.test_artifact.id,
});
Coming soon!
Using getGenericArtifactsContent
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 getGenericArtifactsContent(args: GetGenericArtifactsContentArgs, opts?: InvokeOptions): Promise<GetGenericArtifactsContentResult>
function getGenericArtifactsContentOutput(args: GetGenericArtifactsContentOutputArgs, opts?: InvokeOptions): Output<GetGenericArtifactsContentResult>
def get_generic_artifacts_content(artifact_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetGenericArtifactsContentResult
def get_generic_artifacts_content_output(artifact_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetGenericArtifactsContentResult]
func GetGenericArtifactsContent(ctx *Context, args *GetGenericArtifactsContentArgs, opts ...InvokeOption) (*GetGenericArtifactsContentResult, error)
func GetGenericArtifactsContentOutput(ctx *Context, args *GetGenericArtifactsContentOutputArgs, opts ...InvokeOption) GetGenericArtifactsContentResultOutput
> Note: This function is named GetGenericArtifactsContent
in the Go SDK.
public static class GetGenericArtifactsContent
{
public static Task<GetGenericArtifactsContentResult> InvokeAsync(GetGenericArtifactsContentArgs args, InvokeOptions? opts = null)
public static Output<GetGenericArtifactsContentResult> Invoke(GetGenericArtifactsContentInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetGenericArtifactsContentResult> getGenericArtifactsContent(GetGenericArtifactsContentArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
Fn::Invoke:
Function: oci:GenericArtifactsContent/getGenericArtifactsContent:getGenericArtifactsContent
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
getGenericArtifactsContent Result
The following output properties are available:
- Artifact
Id string - Id string
The provider-assigned unique ID for this managed resource.
- Artifact
Id string - Id string
The provider-assigned unique ID for this managed resource.
- artifact
Id String - id String
The provider-assigned unique ID for this managed resource.
- artifact
Id string - id string
The provider-assigned unique ID for this managed resource.
- artifact_
id str - id str
The provider-assigned unique ID for this managed resource.
- artifact
Id String - id String
The provider-assigned unique ID for this managed resource.
Package Details
- Repository
- https://github.com/pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
oci
Terraform Provider.