1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. GenericArtifactsContent
  5. getGenericArtifactsContent
Oracle Cloud Infrastructure v2.11.0 published on Thursday, Sep 19, 2024 by Pulumi

oci.GenericArtifactsContent.getGenericArtifactsContent

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v2.11.0 published on Thursday, Sep 19, 2024 by Pulumi

    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

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testGenericArtifactsContent = oci.GenericArtifactsContent.getGenericArtifactsContent({
        artifactId: testArtifact.id,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_generic_artifacts_content = oci.GenericArtifactsContent.get_generic_artifacts_content(artifact_id=test_artifact["id"])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/v2/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: testArtifact.Id,
    		}, 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 testGenericArtifactsContent = Oci.GenericArtifactsContent.GetGenericArtifactsContent.Invoke(new()
        {
            ArtifactId = testArtifact.Id,
        });
    
    });
    
    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(testArtifact.id())
                .build());
    
        }
    }
    
    variables:
      testGenericArtifactsContent:
        fn::invoke:
          Function: oci:GenericArtifactsContent:getGenericArtifactsContent
          Arguments:
            artifactId: ${testArtifact.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
    oci pulumi/pulumi-oci
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the oci Terraform Provider.
    oci logo
    Oracle Cloud Infrastructure v2.11.0 published on Thursday, Sep 19, 2024 by Pulumi