Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi
oci.DevOps.getRepositoryArchiveContent
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 Repository Archive Content resource in Oracle Cloud Infrastructure Devops service.
Returns the archived repository information.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testRepositoryArchiveContent = oci.DevOps.getRepositoryArchiveContent({
repositoryId: testRepository.id,
format: repositoryArchiveContentFormat,
refName: repositoryArchiveContentRefName,
});
import pulumi
import pulumi_oci as oci
test_repository_archive_content = oci.DevOps.get_repository_archive_content(repository_id=test_repository["id"],
format=repository_archive_content_format,
ref_name=repository_archive_content_ref_name)
package main
import (
"github.com/pulumi/pulumi-oci/sdk/go/oci/DevOps"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := DevOps.GetRepositoryArchiveContent(ctx, &devops.GetRepositoryArchiveContentArgs{
RepositoryId: testRepository.Id,
Format: pulumi.StringRef(repositoryArchiveContentFormat),
RefName: pulumi.StringRef(repositoryArchiveContentRefName),
}, 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 testRepositoryArchiveContent = Oci.DevOps.GetRepositoryArchiveContent.Invoke(new()
{
RepositoryId = testRepository.Id,
Format = repositoryArchiveContentFormat,
RefName = repositoryArchiveContentRefName,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.DevOps.DevOpsFunctions;
import com.pulumi.oci.DevOps.inputs.GetRepositoryArchiveContentArgs;
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 testRepositoryArchiveContent = DevOpsFunctions.getRepositoryArchiveContent(GetRepositoryArchiveContentArgs.builder()
.repositoryId(testRepository.id())
.format(repositoryArchiveContentFormat)
.refName(repositoryArchiveContentRefName)
.build());
}
}
variables:
testRepositoryArchiveContent:
fn::invoke:
Function: oci:DevOps:getRepositoryArchiveContent
Arguments:
repositoryId: ${testRepository.id}
format: ${repositoryArchiveContentFormat}
refName: ${repositoryArchiveContentRefName}
Using getRepositoryArchiveContent
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 getRepositoryArchiveContent(args: GetRepositoryArchiveContentArgs, opts?: InvokeOptions): Promise<GetRepositoryArchiveContentResult>
function getRepositoryArchiveContentOutput(args: GetRepositoryArchiveContentOutputArgs, opts?: InvokeOptions): Output<GetRepositoryArchiveContentResult>
def get_repository_archive_content(format: Optional[str] = None,
ref_name: Optional[str] = None,
repository_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetRepositoryArchiveContentResult
def get_repository_archive_content_output(format: Optional[pulumi.Input[str]] = None,
ref_name: Optional[pulumi.Input[str]] = None,
repository_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetRepositoryArchiveContentResult]
func GetRepositoryArchiveContent(ctx *Context, args *GetRepositoryArchiveContentArgs, opts ...InvokeOption) (*GetRepositoryArchiveContentResult, error)
func GetRepositoryArchiveContentOutput(ctx *Context, args *GetRepositoryArchiveContentOutputArgs, opts ...InvokeOption) GetRepositoryArchiveContentResultOutput
> Note: This function is named GetRepositoryArchiveContent
in the Go SDK.
public static class GetRepositoryArchiveContent
{
public static Task<GetRepositoryArchiveContentResult> InvokeAsync(GetRepositoryArchiveContentArgs args, InvokeOptions? opts = null)
public static Output<GetRepositoryArchiveContentResult> Invoke(GetRepositoryArchiveContentInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetRepositoryArchiveContentResult> getRepositoryArchiveContent(GetRepositoryArchiveContentArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: oci:DevOps/getRepositoryArchiveContent:getRepositoryArchiveContent
arguments:
# arguments dictionary
The following arguments are supported:
- Repository
Id string - Unique repository identifier.
- Format string
- The archive format query parameter for downloading repository endpoint.
- Ref
Name string - A filter to return only resources that match the given reference name.
- Repository
Id string - Unique repository identifier.
- Format string
- The archive format query parameter for downloading repository endpoint.
- Ref
Name string - A filter to return only resources that match the given reference name.
- repository
Id String - Unique repository identifier.
- format String
- The archive format query parameter for downloading repository endpoint.
- ref
Name String - A filter to return only resources that match the given reference name.
- repository
Id string - Unique repository identifier.
- format string
- The archive format query parameter for downloading repository endpoint.
- ref
Name string - A filter to return only resources that match the given reference name.
- repository_
id str - Unique repository identifier.
- format str
- The archive format query parameter for downloading repository endpoint.
- ref_
name str - A filter to return only resources that match the given reference name.
- repository
Id String - Unique repository identifier.
- format String
- The archive format query parameter for downloading repository endpoint.
- ref
Name String - A filter to return only resources that match the given reference name.
getRepositoryArchiveContent Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Repository
Id string - Format string
- Ref
Name string
- Id string
- The provider-assigned unique ID for this managed resource.
- Repository
Id string - Format string
- Ref
Name string
- id String
- The provider-assigned unique ID for this managed resource.
- repository
Id String - format String
- ref
Name String
- id string
- The provider-assigned unique ID for this managed resource.
- repository
Id string - format string
- ref
Name string
- id str
- The provider-assigned unique ID for this managed resource.
- repository_
id str - format str
- ref_
name str
- id String
- The provider-assigned unique ID for this managed resource.
- repository
Id String - format String
- ref
Name 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