Oracle Cloud Infrastructure v2.11.0 published on Thursday, Sep 19, 2024 by Pulumi
oci.Artifacts.getRepository
Explore with Pulumi AI
This data source provides details about a specific Repository resource in Oracle Cloud Infrastructure Artifacts service.
Gets the specified repository’s information.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testRepository = oci.Artifacts.getRepository({
repositoryId: testRepositoryOciArtifactsRepository.id,
});
import pulumi
import pulumi_oci as oci
test_repository = oci.Artifacts.get_repository(repository_id=test_repository_oci_artifacts_repository["id"])
package main
import (
"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/Artifacts"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := Artifacts.GetRepository(ctx, &artifacts.GetRepositoryArgs{
RepositoryId: testRepositoryOciArtifactsRepository.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 testRepository = Oci.Artifacts.GetRepository.Invoke(new()
{
RepositoryId = testRepositoryOciArtifactsRepository.Id,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.Artifacts.ArtifactsFunctions;
import com.pulumi.oci.Artifacts.inputs.GetRepositoryArgs;
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 testRepository = ArtifactsFunctions.getRepository(GetRepositoryArgs.builder()
.repositoryId(testRepositoryOciArtifactsRepository.id())
.build());
}
}
variables:
testRepository:
fn::invoke:
Function: oci:Artifacts:getRepository
Arguments:
repositoryId: ${testRepositoryOciArtifactsRepository.id}
Using getRepository
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 getRepository(args: GetRepositoryArgs, opts?: InvokeOptions): Promise<GetRepositoryResult>
function getRepositoryOutput(args: GetRepositoryOutputArgs, opts?: InvokeOptions): Output<GetRepositoryResult>
def get_repository(repository_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetRepositoryResult
def get_repository_output(repository_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetRepositoryResult]
func GetRepository(ctx *Context, args *GetRepositoryArgs, opts ...InvokeOption) (*GetRepositoryResult, error)
func GetRepositoryOutput(ctx *Context, args *GetRepositoryOutputArgs, opts ...InvokeOption) GetRepositoryResultOutput
> Note: This function is named GetRepository
in the Go SDK.
public static class GetRepository
{
public static Task<GetRepositoryResult> InvokeAsync(GetRepositoryArgs args, InvokeOptions? opts = null)
public static Output<GetRepositoryResult> Invoke(GetRepositoryInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetRepositoryResult> getRepository(GetRepositoryArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: oci:Artifacts/getRepository:getRepository
arguments:
# arguments dictionary
The following arguments are supported:
- Repository
Id string - The OCID of the repository. Example:
ocid1.artifactrepository.oc1..exampleuniqueID
- Repository
Id string - The OCID of the repository. Example:
ocid1.artifactrepository.oc1..exampleuniqueID
- repository
Id String - The OCID of the repository. Example:
ocid1.artifactrepository.oc1..exampleuniqueID
- repository
Id string - The OCID of the repository. Example:
ocid1.artifactrepository.oc1..exampleuniqueID
- repository_
id str - The OCID of the repository. Example:
ocid1.artifactrepository.oc1..exampleuniqueID
- repository
Id String - The OCID of the repository. Example:
ocid1.artifactrepository.oc1..exampleuniqueID
getRepository Result
The following output properties are available:
- Compartment
Id string - The OCID of the repository's compartment.
- Dictionary<string, string>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"}
- Description string
- The repository description.
- Display
Name string - The repository name.
- Dictionary<string, string>
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"}
- Id string
- The OCID of the repository. Example:
ocid1.artifactrepository.oc1..exampleuniqueID
- Is
Immutable bool - Whether the repository is immutable. The artifacts of an immutable repository cannot be overwritten.
- Repository
Id string - Repository
Type string - The repository's supported artifact type.
- State string
- The current state of the repository.
- Time
Created string - An RFC 3339 timestamp indicating when the repository was created.
- Compartment
Id string - The OCID of the repository's compartment.
- map[string]string
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"}
- Description string
- The repository description.
- Display
Name string - The repository name.
- map[string]string
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"}
- Id string
- The OCID of the repository. Example:
ocid1.artifactrepository.oc1..exampleuniqueID
- Is
Immutable bool - Whether the repository is immutable. The artifacts of an immutable repository cannot be overwritten.
- Repository
Id string - Repository
Type string - The repository's supported artifact type.
- State string
- The current state of the repository.
- Time
Created string - An RFC 3339 timestamp indicating when the repository was created.
- compartment
Id String - The OCID of the repository's compartment.
- Map<String,String>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"}
- description String
- The repository description.
- display
Name String - The repository name.
- Map<String,String>
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"}
- id String
- The OCID of the repository. Example:
ocid1.artifactrepository.oc1..exampleuniqueID
- is
Immutable Boolean - Whether the repository is immutable. The artifacts of an immutable repository cannot be overwritten.
- repository
Id String - repository
Type String - The repository's supported artifact type.
- state String
- The current state of the repository.
- time
Created String - An RFC 3339 timestamp indicating when the repository was created.
- compartment
Id string - The OCID of the repository's compartment.
- {[key: string]: string}
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"}
- description string
- The repository description.
- display
Name string - The repository name.
- {[key: string]: string}
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"}
- id string
- The OCID of the repository. Example:
ocid1.artifactrepository.oc1..exampleuniqueID
- is
Immutable boolean - Whether the repository is immutable. The artifacts of an immutable repository cannot be overwritten.
- repository
Id string - repository
Type string - The repository's supported artifact type.
- state string
- The current state of the repository.
- time
Created string - An RFC 3339 timestamp indicating when the repository was created.
- compartment_
id str - The OCID of the repository's compartment.
- Mapping[str, str]
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"}
- description str
- The repository description.
- display_
name str - The repository name.
- Mapping[str, str]
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"}
- id str
- The OCID of the repository. Example:
ocid1.artifactrepository.oc1..exampleuniqueID
- is_
immutable bool - Whether the repository is immutable. The artifacts of an immutable repository cannot be overwritten.
- repository_
id str - repository_
type str - The repository's supported artifact type.
- state str
- The current state of the repository.
- time_
created str - An RFC 3339 timestamp indicating when the repository was created.
- compartment
Id String - The OCID of the repository's compartment.
- Map<String>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"}
- description String
- The repository description.
- display
Name String - The repository name.
- Map<String>
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"}
- id String
- The OCID of the repository. Example:
ocid1.artifactrepository.oc1..exampleuniqueID
- is
Immutable Boolean - Whether the repository is immutable. The artifacts of an immutable repository cannot be overwritten.
- repository
Id String - repository
Type String - The repository's supported artifact type.
- state String
- The current state of the repository.
- time
Created String - An RFC 3339 timestamp indicating when the repository was created.
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oci
Terraform Provider.