Oracle Cloud Infrastructure

v0.5.0 published on Monday, Sep 12, 2022 by Pulumi

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 System.Collections.Generic;
using Pulumi;
using Oci = Pulumi.Oci;

return await Deployment.RunAsync(() => 
{
    var testGenericArtifactsContent = Oci.GenericArtifactsContent.GetGenericArtifactsContent.Invoke(new()
    {
        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
	})
}
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.GetGenericArtifactsContentArgs;
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 testGenericArtifactsContent = GenericArtifactsContentFunctions.getGenericArtifactsContent(GetGenericArtifactsContentArgs.builder()
            .artifactId(oci_generic_artifacts_content_artifact.test_artifact().id())
            .build());

    }
}
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,
});
variables:
  testGenericArtifactsContent:
    Fn::Invoke:
      Function: oci:GenericArtifactsContent:getGenericArtifactsContent
      Arguments:
        artifactId: ${oci_generic_artifacts_content_artifact.test_artifact.id}

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:

ArtifactId string

The OCID of the artifact. Example: ocid1.genericartifact.oc1..exampleuniqueID

ArtifactId string

The OCID of the artifact. Example: ocid1.genericartifact.oc1..exampleuniqueID

artifactId String

The OCID of the artifact. Example: ocid1.genericartifact.oc1..exampleuniqueID

artifactId string

The OCID of the artifact. Example: ocid1.genericartifact.oc1..exampleuniqueID

artifact_id str

The OCID of the artifact. Example: ocid1.genericartifact.oc1..exampleuniqueID

artifactId String

The OCID of the artifact. Example: ocid1.genericartifact.oc1..exampleuniqueID

getGenericArtifactsContent Result

The following output properties are available:

ArtifactId string
Id string

The provider-assigned unique ID for this managed resource.

ArtifactId string
Id string

The provider-assigned unique ID for this managed resource.

artifactId String
id String

The provider-assigned unique ID for this managed resource.

artifactId 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.

artifactId 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.