Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi
oci.DevOps.getRepository
Explore with Pulumi AI
This data source provides details about a specific Repository resource in Oracle Cloud Infrastructure Devops service.
Retrieves a repository by identifier.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testRepository = oci.DevOps.getRepository({
repositoryId: testRepositoryOciDevopsRepository.id,
fields: repositoryFields,
});
import pulumi
import pulumi_oci as oci
test_repository = oci.DevOps.get_repository(repository_id=test_repository_oci_devops_repository["id"],
fields=repository_fields)
package main
import (
"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/DevOps"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := DevOps.GetRepository(ctx, &devops.GetRepositoryArgs{
RepositoryId: testRepositoryOciDevopsRepository.Id,
Fields: repositoryFields,
}, 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.DevOps.GetRepository.Invoke(new()
{
RepositoryId = testRepositoryOciDevopsRepository.Id,
Fields = repositoryFields,
});
});
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.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 = DevOpsFunctions.getRepository(GetRepositoryArgs.builder()
.repositoryId(testRepositoryOciDevopsRepository.id())
.fields(repositoryFields)
.build());
}
}
variables:
testRepository:
fn::invoke:
Function: oci:DevOps:getRepository
Arguments:
repositoryId: ${testRepositoryOciDevopsRepository.id}
fields: ${repositoryFields}
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(fields: Optional[Sequence[str]] = None,
repository_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetRepositoryResult
def get_repository_output(fields: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
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:DevOps/getRepository:getRepository
arguments:
# arguments dictionary
The following arguments are supported:
- Repository
Id string - Unique repository identifier.
- Fields List<string>
- Fields parameter can contain multiple flags useful in deciding the API functionality.
- Repository
Id string - Unique repository identifier.
- Fields []string
- Fields parameter can contain multiple flags useful in deciding the API functionality.
- repository
Id String - Unique repository identifier.
- fields List<String>
- Fields parameter can contain multiple flags useful in deciding the API functionality.
- repository
Id string - Unique repository identifier.
- fields string[]
- Fields parameter can contain multiple flags useful in deciding the API functionality.
- repository_
id str - Unique repository identifier.
- fields Sequence[str]
- Fields parameter can contain multiple flags useful in deciding the API functionality.
- repository
Id String - Unique repository identifier.
- fields List<String>
- Fields parameter can contain multiple flags useful in deciding the API functionality.
getRepository Result
The following output properties are available:
- Branch
Count int - The count of the branches present in the repository.
- Commit
Count int - The count of the commits present in the repository.
- Compartment
Id string - The OCID of the repository's compartment.
- Default
Branch string - The default branch of the repository.
- Dictionary<string, string>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. See Resource Tags. Example:
{"foo-namespace.bar-key": "value"}
- Description string
- Details of the repository. Avoid entering confidential information.
- Dictionary<string, string>
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. See Resource Tags. Example:
{"bar-key": "value"}
- Http
Url string - HTTP URL that you use to git clone, pull and push.
- Id string
- The OCID of the repository. This value is unique and immutable.
- Lifecyle
Details string - A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
- Mirror
Repository List<GetConfigs Repository Mirror Repository Config> - Configuration information for mirroring the repository.
- Name string
- Name of the repository. Should be unique within the project. This value is mutable.
- Namespace string
- Tenancy unique namespace.
- Parent
Repository stringId - The OCID of the parent repository.
- Project
Id string - The OCID of the DevOps project containing the repository.
- Project
Name string - Unique project name in a namespace.
- Repository
Id string - Repository
Type string - Type of repository: MIRRORED - Repository created by mirroring an existing repository. HOSTED - Repository created and hosted using Oracle Cloud Infrastructure DevOps code repository. FORKED - Repository created by forking an existing repository.
- Size
In stringBytes - The size of the repository in bytes.
- Ssh
Url string - SSH URL that you use to git clone, pull and push.
- State string
- The current state of the repository.
- Dictionary<string, string>
- Usage of system tag keys. These predefined keys are scoped to namespaces. See Resource Tags. Example:
{"orcl-cloud.free-tier-retained": "true"}
- Time
Created string - The time the repository was created. Format defined by RFC3339.
- Time
Updated string - The time the repository was updated. Format defined by RFC3339.
- Trigger
Build List<string>Events - Trigger build events supported for this repository: PUSH - Build is triggered when a push event occurs. PULL_REQUEST_CREATED - Build is triggered when a pull request is created in the repository. PULL_REQUEST_UPDATED - Build is triggered when a push is made to a branch with an open pull request. COMMIT_UPDATES - Build is triggered when new commits are mirrored into a repository.
- Fields List<string>
- Branch
Count int - The count of the branches present in the repository.
- Commit
Count int - The count of the commits present in the repository.
- Compartment
Id string - The OCID of the repository's compartment.
- Default
Branch string - The default branch of the repository.
- map[string]string
- Defined tags for this resource. Each key is predefined and scoped to a namespace. See Resource Tags. Example:
{"foo-namespace.bar-key": "value"}
- Description string
- Details of the repository. Avoid entering confidential information.
- map[string]string
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. See Resource Tags. Example:
{"bar-key": "value"}
- Http
Url string - HTTP URL that you use to git clone, pull and push.
- Id string
- The OCID of the repository. This value is unique and immutable.
- Lifecyle
Details string - A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
- Mirror
Repository []GetConfigs Repository Mirror Repository Config - Configuration information for mirroring the repository.
- Name string
- Name of the repository. Should be unique within the project. This value is mutable.
- Namespace string
- Tenancy unique namespace.
- Parent
Repository stringId - The OCID of the parent repository.
- Project
Id string - The OCID of the DevOps project containing the repository.
- Project
Name string - Unique project name in a namespace.
- Repository
Id string - Repository
Type string - Type of repository: MIRRORED - Repository created by mirroring an existing repository. HOSTED - Repository created and hosted using Oracle Cloud Infrastructure DevOps code repository. FORKED - Repository created by forking an existing repository.
- Size
In stringBytes - The size of the repository in bytes.
- Ssh
Url string - SSH URL that you use to git clone, pull and push.
- State string
- The current state of the repository.
- map[string]string
- Usage of system tag keys. These predefined keys are scoped to namespaces. See Resource Tags. Example:
{"orcl-cloud.free-tier-retained": "true"}
- Time
Created string - The time the repository was created. Format defined by RFC3339.
- Time
Updated string - The time the repository was updated. Format defined by RFC3339.
- Trigger
Build []stringEvents - Trigger build events supported for this repository: PUSH - Build is triggered when a push event occurs. PULL_REQUEST_CREATED - Build is triggered when a pull request is created in the repository. PULL_REQUEST_UPDATED - Build is triggered when a push is made to a branch with an open pull request. COMMIT_UPDATES - Build is triggered when new commits are mirrored into a repository.
- Fields []string
- branch
Count Integer - The count of the branches present in the repository.
- commit
Count Integer - The count of the commits present in the repository.
- compartment
Id String - The OCID of the repository's compartment.
- default
Branch String - The default branch of the repository.
- Map<String,String>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. See Resource Tags. Example:
{"foo-namespace.bar-key": "value"}
- description String
- Details of the repository. Avoid entering confidential information.
- Map<String,String>
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. See Resource Tags. Example:
{"bar-key": "value"}
- http
Url String - HTTP URL that you use to git clone, pull and push.
- id String
- The OCID of the repository. This value is unique and immutable.
- lifecyle
Details String - A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
- mirror
Repository List<GetConfigs Repository Mirror Repository Config> - Configuration information for mirroring the repository.
- name String
- Name of the repository. Should be unique within the project. This value is mutable.
- namespace String
- Tenancy unique namespace.
- parent
Repository StringId - The OCID of the parent repository.
- project
Id String - The OCID of the DevOps project containing the repository.
- project
Name String - Unique project name in a namespace.
- repository
Id String - repository
Type String - Type of repository: MIRRORED - Repository created by mirroring an existing repository. HOSTED - Repository created and hosted using Oracle Cloud Infrastructure DevOps code repository. FORKED - Repository created by forking an existing repository.
- size
In StringBytes - The size of the repository in bytes.
- ssh
Url String - SSH URL that you use to git clone, pull and push.
- state String
- The current state of the repository.
- Map<String,String>
- Usage of system tag keys. These predefined keys are scoped to namespaces. See Resource Tags. Example:
{"orcl-cloud.free-tier-retained": "true"}
- time
Created String - The time the repository was created. Format defined by RFC3339.
- time
Updated String - The time the repository was updated. Format defined by RFC3339.
- trigger
Build List<String>Events - Trigger build events supported for this repository: PUSH - Build is triggered when a push event occurs. PULL_REQUEST_CREATED - Build is triggered when a pull request is created in the repository. PULL_REQUEST_UPDATED - Build is triggered when a push is made to a branch with an open pull request. COMMIT_UPDATES - Build is triggered when new commits are mirrored into a repository.
- fields List<String>
- branch
Count number - The count of the branches present in the repository.
- commit
Count number - The count of the commits present in the repository.
- compartment
Id string - The OCID of the repository's compartment.
- default
Branch string - The default branch of the repository.
- {[key: string]: string}
- Defined tags for this resource. Each key is predefined and scoped to a namespace. See Resource Tags. Example:
{"foo-namespace.bar-key": "value"}
- description string
- Details of the repository. Avoid entering confidential information.
- {[key: string]: string}
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. See Resource Tags. Example:
{"bar-key": "value"}
- http
Url string - HTTP URL that you use to git clone, pull and push.
- id string
- The OCID of the repository. This value is unique and immutable.
- lifecyle
Details string - A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
- mirror
Repository GetConfigs Repository Mirror Repository Config[] - Configuration information for mirroring the repository.
- name string
- Name of the repository. Should be unique within the project. This value is mutable.
- namespace string
- Tenancy unique namespace.
- parent
Repository stringId - The OCID of the parent repository.
- project
Id string - The OCID of the DevOps project containing the repository.
- project
Name string - Unique project name in a namespace.
- repository
Id string - repository
Type string - Type of repository: MIRRORED - Repository created by mirroring an existing repository. HOSTED - Repository created and hosted using Oracle Cloud Infrastructure DevOps code repository. FORKED - Repository created by forking an existing repository.
- size
In stringBytes - The size of the repository in bytes.
- ssh
Url string - SSH URL that you use to git clone, pull and push.
- state string
- The current state of the repository.
- {[key: string]: string}
- Usage of system tag keys. These predefined keys are scoped to namespaces. See Resource Tags. Example:
{"orcl-cloud.free-tier-retained": "true"}
- time
Created string - The time the repository was created. Format defined by RFC3339.
- time
Updated string - The time the repository was updated. Format defined by RFC3339.
- trigger
Build string[]Events - Trigger build events supported for this repository: PUSH - Build is triggered when a push event occurs. PULL_REQUEST_CREATED - Build is triggered when a pull request is created in the repository. PULL_REQUEST_UPDATED - Build is triggered when a push is made to a branch with an open pull request. COMMIT_UPDATES - Build is triggered when new commits are mirrored into a repository.
- fields string[]
- branch_
count int - The count of the branches present in the repository.
- commit_
count int - The count of the commits present in the repository.
- compartment_
id str - The OCID of the repository's compartment.
- default_
branch str - The default branch of the repository.
- Mapping[str, str]
- Defined tags for this resource. Each key is predefined and scoped to a namespace. See Resource Tags. Example:
{"foo-namespace.bar-key": "value"}
- description str
- Details of the repository. Avoid entering confidential information.
- Mapping[str, str]
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. See Resource Tags. Example:
{"bar-key": "value"}
- http_
url str - HTTP URL that you use to git clone, pull and push.
- id str
- The OCID of the repository. This value is unique and immutable.
- lifecyle_
details str - A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
- mirror_
repository_ Sequence[devops.configs Get Repository Mirror Repository Config] - Configuration information for mirroring the repository.
- name str
- Name of the repository. Should be unique within the project. This value is mutable.
- namespace str
- Tenancy unique namespace.
- parent_
repository_ strid - The OCID of the parent repository.
- project_
id str - The OCID of the DevOps project containing the repository.
- project_
name str - Unique project name in a namespace.
- repository_
id str - repository_
type str - Type of repository: MIRRORED - Repository created by mirroring an existing repository. HOSTED - Repository created and hosted using Oracle Cloud Infrastructure DevOps code repository. FORKED - Repository created by forking an existing repository.
- size_
in_ strbytes - The size of the repository in bytes.
- ssh_
url str - SSH URL that you use to git clone, pull and push.
- state str
- The current state of the repository.
- Mapping[str, str]
- Usage of system tag keys. These predefined keys are scoped to namespaces. See Resource Tags. Example:
{"orcl-cloud.free-tier-retained": "true"}
- time_
created str - The time the repository was created. Format defined by RFC3339.
- time_
updated str - The time the repository was updated. Format defined by RFC3339.
- trigger_
build_ Sequence[str]events - Trigger build events supported for this repository: PUSH - Build is triggered when a push event occurs. PULL_REQUEST_CREATED - Build is triggered when a pull request is created in the repository. PULL_REQUEST_UPDATED - Build is triggered when a push is made to a branch with an open pull request. COMMIT_UPDATES - Build is triggered when new commits are mirrored into a repository.
- fields Sequence[str]
- branch
Count Number - The count of the branches present in the repository.
- commit
Count Number - The count of the commits present in the repository.
- compartment
Id String - The OCID of the repository's compartment.
- default
Branch String - The default branch of the repository.
- Map<String>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. See Resource Tags. Example:
{"foo-namespace.bar-key": "value"}
- description String
- Details of the repository. Avoid entering confidential information.
- Map<String>
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. See Resource Tags. Example:
{"bar-key": "value"}
- http
Url String - HTTP URL that you use to git clone, pull and push.
- id String
- The OCID of the repository. This value is unique and immutable.
- lifecyle
Details String - A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
- mirror
Repository List<Property Map>Configs - Configuration information for mirroring the repository.
- name String
- Name of the repository. Should be unique within the project. This value is mutable.
- namespace String
- Tenancy unique namespace.
- parent
Repository StringId - The OCID of the parent repository.
- project
Id String - The OCID of the DevOps project containing the repository.
- project
Name String - Unique project name in a namespace.
- repository
Id String - repository
Type String - Type of repository: MIRRORED - Repository created by mirroring an existing repository. HOSTED - Repository created and hosted using Oracle Cloud Infrastructure DevOps code repository. FORKED - Repository created by forking an existing repository.
- size
In StringBytes - The size of the repository in bytes.
- ssh
Url String - SSH URL that you use to git clone, pull and push.
- state String
- The current state of the repository.
- Map<String>
- Usage of system tag keys. These predefined keys are scoped to namespaces. See Resource Tags. Example:
{"orcl-cloud.free-tier-retained": "true"}
- time
Created String - The time the repository was created. Format defined by RFC3339.
- time
Updated String - The time the repository was updated. Format defined by RFC3339.
- trigger
Build List<String>Events - Trigger build events supported for this repository: PUSH - Build is triggered when a push event occurs. PULL_REQUEST_CREATED - Build is triggered when a pull request is created in the repository. PULL_REQUEST_UPDATED - Build is triggered when a push is made to a branch with an open pull request. COMMIT_UPDATES - Build is triggered when new commits are mirrored into a repository.
- fields List<String>
Supporting Types
GetRepositoryMirrorRepositoryConfig
- Connector
Id string - Upstream git repository connection identifier.
- Repository
Url string - URL of external repository you want to mirror.
- Trigger
Schedules List<GetRepository Mirror Repository Config Trigger Schedule> - Specifies a trigger schedule. Timing information for when to initiate automated syncs.
- Connector
Id string - Upstream git repository connection identifier.
- Repository
Url string - URL of external repository you want to mirror.
- Trigger
Schedules []GetRepository Mirror Repository Config Trigger Schedule - Specifies a trigger schedule. Timing information for when to initiate automated syncs.
- connector
Id String - Upstream git repository connection identifier.
- repository
Url String - URL of external repository you want to mirror.
- trigger
Schedules List<GetRepository Mirror Repository Config Trigger Schedule> - Specifies a trigger schedule. Timing information for when to initiate automated syncs.
- connector
Id string - Upstream git repository connection identifier.
- repository
Url string - URL of external repository you want to mirror.
- trigger
Schedules GetRepository Mirror Repository Config Trigger Schedule[] - Specifies a trigger schedule. Timing information for when to initiate automated syncs.
- connector_
id str - Upstream git repository connection identifier.
- repository_
url str - URL of external repository you want to mirror.
- trigger_
schedules Sequence[devops.Get Repository Mirror Repository Config Trigger Schedule] - Specifies a trigger schedule. Timing information for when to initiate automated syncs.
- connector
Id String - Upstream git repository connection identifier.
- repository
Url String - URL of external repository you want to mirror.
- trigger
Schedules List<Property Map> - Specifies a trigger schedule. Timing information for when to initiate automated syncs.
GetRepositoryMirrorRepositoryConfigTriggerSchedule
- Custom
Schedule string - Valid if type is CUSTOM. Following RFC 5545 recurrence rules, we can specify starting time, occurrence frequency, and interval size. Example for frequency could be DAILY/WEEKLY/HOURLY or any RFC 5545 supported frequency, which is followed by start time of this window. You can control the start time with BYHOUR, BYMINUTE and BYSECONDS. It is followed by the interval size.
- Schedule
Type string - Different types of trigger schedule: NONE - No automated synchronization schedule. DEFAULT - Trigger schedule is every 30 minutes. CUSTOM - Custom triggering schedule.
- Custom
Schedule string - Valid if type is CUSTOM. Following RFC 5545 recurrence rules, we can specify starting time, occurrence frequency, and interval size. Example for frequency could be DAILY/WEEKLY/HOURLY or any RFC 5545 supported frequency, which is followed by start time of this window. You can control the start time with BYHOUR, BYMINUTE and BYSECONDS. It is followed by the interval size.
- Schedule
Type string - Different types of trigger schedule: NONE - No automated synchronization schedule. DEFAULT - Trigger schedule is every 30 minutes. CUSTOM - Custom triggering schedule.
- custom
Schedule String - Valid if type is CUSTOM. Following RFC 5545 recurrence rules, we can specify starting time, occurrence frequency, and interval size. Example for frequency could be DAILY/WEEKLY/HOURLY or any RFC 5545 supported frequency, which is followed by start time of this window. You can control the start time with BYHOUR, BYMINUTE and BYSECONDS. It is followed by the interval size.
- schedule
Type String - Different types of trigger schedule: NONE - No automated synchronization schedule. DEFAULT - Trigger schedule is every 30 minutes. CUSTOM - Custom triggering schedule.
- custom
Schedule string - Valid if type is CUSTOM. Following RFC 5545 recurrence rules, we can specify starting time, occurrence frequency, and interval size. Example for frequency could be DAILY/WEEKLY/HOURLY or any RFC 5545 supported frequency, which is followed by start time of this window. You can control the start time with BYHOUR, BYMINUTE and BYSECONDS. It is followed by the interval size.
- schedule
Type string - Different types of trigger schedule: NONE - No automated synchronization schedule. DEFAULT - Trigger schedule is every 30 minutes. CUSTOM - Custom triggering schedule.
- custom_
schedule str - Valid if type is CUSTOM. Following RFC 5545 recurrence rules, we can specify starting time, occurrence frequency, and interval size. Example for frequency could be DAILY/WEEKLY/HOURLY or any RFC 5545 supported frequency, which is followed by start time of this window. You can control the start time with BYHOUR, BYMINUTE and BYSECONDS. It is followed by the interval size.
- schedule_
type str - Different types of trigger schedule: NONE - No automated synchronization schedule. DEFAULT - Trigger schedule is every 30 minutes. CUSTOM - Custom triggering schedule.
- custom
Schedule String - Valid if type is CUSTOM. Following RFC 5545 recurrence rules, we can specify starting time, occurrence frequency, and interval size. Example for frequency could be DAILY/WEEKLY/HOURLY or any RFC 5545 supported frequency, which is followed by start time of this window. You can control the start time with BYHOUR, BYMINUTE and BYSECONDS. It is followed by the interval size.
- schedule
Type String - Different types of trigger schedule: NONE - No automated synchronization schedule. DEFAULT - Trigger schedule is every 30 minutes. CUSTOM - Custom triggering schedule.
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oci
Terraform Provider.