oci.DevOps.Repository
Explore with Pulumi AI
This resource provides the Repository resource in Oracle Cloud Infrastructure Devops service.
Creates a new repository.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testRepository = new oci.devops.Repository("test_repository", {
name: repositoryName,
projectId: testProject.id,
repositoryType: repositoryRepositoryType,
defaultBranch: repositoryDefaultBranch,
definedTags: {
"foo-namespace.bar-key": "value",
},
description: repositoryDescription,
freeformTags: {
"bar-key": "value",
},
mirrorRepositoryConfig: {
connectorId: testConnector.id,
repositoryUrl: repositoryMirrorRepositoryConfigRepositoryUrl,
triggerSchedule: {
scheduleType: repositoryMirrorRepositoryConfigTriggerScheduleScheduleType,
customSchedule: repositoryMirrorRepositoryConfigTriggerScheduleCustomSchedule,
},
},
});
import pulumi
import pulumi_oci as oci
test_repository = oci.dev_ops.Repository("test_repository",
name=repository_name,
project_id=test_project["id"],
repository_type=repository_repository_type,
default_branch=repository_default_branch,
defined_tags={
"foo-namespace.bar-key": "value",
},
description=repository_description,
freeform_tags={
"bar-key": "value",
},
mirror_repository_config=oci.dev_ops.RepositoryMirrorRepositoryConfigArgs(
connector_id=test_connector["id"],
repository_url=repository_mirror_repository_config_repository_url,
trigger_schedule=oci.dev_ops.RepositoryMirrorRepositoryConfigTriggerScheduleArgs(
schedule_type=repository_mirror_repository_config_trigger_schedule_schedule_type,
custom_schedule=repository_mirror_repository_config_trigger_schedule_custom_schedule,
),
))
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.NewRepository(ctx, "test_repository", &DevOps.RepositoryArgs{
Name: pulumi.Any(repositoryName),
ProjectId: pulumi.Any(testProject.Id),
RepositoryType: pulumi.Any(repositoryRepositoryType),
DefaultBranch: pulumi.Any(repositoryDefaultBranch),
DefinedTags: pulumi.Map{
"foo-namespace.bar-key": pulumi.Any("value"),
},
Description: pulumi.Any(repositoryDescription),
FreeformTags: pulumi.Map{
"bar-key": pulumi.Any("value"),
},
MirrorRepositoryConfig: &devops.RepositoryMirrorRepositoryConfigArgs{
ConnectorId: pulumi.Any(testConnector.Id),
RepositoryUrl: pulumi.Any(repositoryMirrorRepositoryConfigRepositoryUrl),
TriggerSchedule: &devops.RepositoryMirrorRepositoryConfigTriggerScheduleArgs{
ScheduleType: pulumi.Any(repositoryMirrorRepositoryConfigTriggerScheduleScheduleType),
CustomSchedule: pulumi.Any(repositoryMirrorRepositoryConfigTriggerScheduleCustomSchedule),
},
},
})
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 = new Oci.DevOps.Repository("test_repository", new()
{
Name = repositoryName,
ProjectId = testProject.Id,
RepositoryType = repositoryRepositoryType,
DefaultBranch = repositoryDefaultBranch,
DefinedTags =
{
{ "foo-namespace.bar-key", "value" },
},
Description = repositoryDescription,
FreeformTags =
{
{ "bar-key", "value" },
},
MirrorRepositoryConfig = new Oci.DevOps.Inputs.RepositoryMirrorRepositoryConfigArgs
{
ConnectorId = testConnector.Id,
RepositoryUrl = repositoryMirrorRepositoryConfigRepositoryUrl,
TriggerSchedule = new Oci.DevOps.Inputs.RepositoryMirrorRepositoryConfigTriggerScheduleArgs
{
ScheduleType = repositoryMirrorRepositoryConfigTriggerScheduleScheduleType,
CustomSchedule = repositoryMirrorRepositoryConfigTriggerScheduleCustomSchedule,
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.DevOps.Repository;
import com.pulumi.oci.DevOps.RepositoryArgs;
import com.pulumi.oci.DevOps.inputs.RepositoryMirrorRepositoryConfigArgs;
import com.pulumi.oci.DevOps.inputs.RepositoryMirrorRepositoryConfigTriggerScheduleArgs;
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) {
var testRepository = new Repository("testRepository", RepositoryArgs.builder()
.name(repositoryName)
.projectId(testProject.id())
.repositoryType(repositoryRepositoryType)
.defaultBranch(repositoryDefaultBranch)
.definedTags(Map.of("foo-namespace.bar-key", "value"))
.description(repositoryDescription)
.freeformTags(Map.of("bar-key", "value"))
.mirrorRepositoryConfig(RepositoryMirrorRepositoryConfigArgs.builder()
.connectorId(testConnector.id())
.repositoryUrl(repositoryMirrorRepositoryConfigRepositoryUrl)
.triggerSchedule(RepositoryMirrorRepositoryConfigTriggerScheduleArgs.builder()
.scheduleType(repositoryMirrorRepositoryConfigTriggerScheduleScheduleType)
.customSchedule(repositoryMirrorRepositoryConfigTriggerScheduleCustomSchedule)
.build())
.build())
.build());
}
}
resources:
testRepository:
type: oci:DevOps:Repository
name: test_repository
properties:
name: ${repositoryName}
projectId: ${testProject.id}
repositoryType: ${repositoryRepositoryType}
defaultBranch: ${repositoryDefaultBranch}
definedTags:
foo-namespace.bar-key: value
description: ${repositoryDescription}
freeformTags:
bar-key: value
mirrorRepositoryConfig:
connectorId: ${testConnector.id}
repositoryUrl: ${repositoryMirrorRepositoryConfigRepositoryUrl}
triggerSchedule:
scheduleType: ${repositoryMirrorRepositoryConfigTriggerScheduleScheduleType}
customSchedule: ${repositoryMirrorRepositoryConfigTriggerScheduleCustomSchedule}
Create Repository Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Repository(name: string, args: RepositoryArgs, opts?: CustomResourceOptions);
@overload
def Repository(resource_name: str,
args: RepositoryArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Repository(resource_name: str,
opts: Optional[ResourceOptions] = None,
project_id: Optional[str] = None,
repository_type: Optional[str] = None,
default_branch: Optional[str] = None,
defined_tags: Optional[Mapping[str, Any]] = None,
description: Optional[str] = None,
freeform_tags: Optional[Mapping[str, Any]] = None,
mirror_repository_config: Optional[_devops.RepositoryMirrorRepositoryConfigArgs] = None,
name: Optional[str] = None)
func NewRepository(ctx *Context, name string, args RepositoryArgs, opts ...ResourceOption) (*Repository, error)
public Repository(string name, RepositoryArgs args, CustomResourceOptions? opts = null)
public Repository(String name, RepositoryArgs args)
public Repository(String name, RepositoryArgs args, CustomResourceOptions options)
type: oci:DevOps:Repository
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args RepositoryArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args RepositoryArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args RepositoryArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args RepositoryArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args RepositoryArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var ociRepositoryResource = new Oci.DevOps.Repository("ociRepositoryResource", new()
{
ProjectId = "string",
RepositoryType = "string",
DefaultBranch = "string",
DefinedTags =
{
{ "string", "any" },
},
Description = "string",
FreeformTags =
{
{ "string", "any" },
},
MirrorRepositoryConfig = new Oci.DevOps.Inputs.RepositoryMirrorRepositoryConfigArgs
{
ConnectorId = "string",
RepositoryUrl = "string",
TriggerSchedule = new Oci.DevOps.Inputs.RepositoryMirrorRepositoryConfigTriggerScheduleArgs
{
ScheduleType = "string",
CustomSchedule = "string",
},
},
Name = "string",
});
example, err := DevOps.NewRepository(ctx, "ociRepositoryResource", &DevOps.RepositoryArgs{
ProjectId: pulumi.String("string"),
RepositoryType: pulumi.String("string"),
DefaultBranch: pulumi.String("string"),
DefinedTags: pulumi.Map{
"string": pulumi.Any("any"),
},
Description: pulumi.String("string"),
FreeformTags: pulumi.Map{
"string": pulumi.Any("any"),
},
MirrorRepositoryConfig: &devops.RepositoryMirrorRepositoryConfigArgs{
ConnectorId: pulumi.String("string"),
RepositoryUrl: pulumi.String("string"),
TriggerSchedule: &devops.RepositoryMirrorRepositoryConfigTriggerScheduleArgs{
ScheduleType: pulumi.String("string"),
CustomSchedule: pulumi.String("string"),
},
},
Name: pulumi.String("string"),
})
var ociRepositoryResource = new Repository("ociRepositoryResource", RepositoryArgs.builder()
.projectId("string")
.repositoryType("string")
.defaultBranch("string")
.definedTags(Map.of("string", "any"))
.description("string")
.freeformTags(Map.of("string", "any"))
.mirrorRepositoryConfig(RepositoryMirrorRepositoryConfigArgs.builder()
.connectorId("string")
.repositoryUrl("string")
.triggerSchedule(RepositoryMirrorRepositoryConfigTriggerScheduleArgs.builder()
.scheduleType("string")
.customSchedule("string")
.build())
.build())
.name("string")
.build());
oci_repository_resource = oci.dev_ops.Repository("ociRepositoryResource",
project_id="string",
repository_type="string",
default_branch="string",
defined_tags={
"string": "any",
},
description="string",
freeform_tags={
"string": "any",
},
mirror_repository_config=oci.dev_ops.RepositoryMirrorRepositoryConfigArgs(
connector_id="string",
repository_url="string",
trigger_schedule=oci.dev_ops.RepositoryMirrorRepositoryConfigTriggerScheduleArgs(
schedule_type="string",
custom_schedule="string",
),
),
name="string")
const ociRepositoryResource = new oci.devops.Repository("ociRepositoryResource", {
projectId: "string",
repositoryType: "string",
defaultBranch: "string",
definedTags: {
string: "any",
},
description: "string",
freeformTags: {
string: "any",
},
mirrorRepositoryConfig: {
connectorId: "string",
repositoryUrl: "string",
triggerSchedule: {
scheduleType: "string",
customSchedule: "string",
},
},
name: "string",
});
type: oci:DevOps:Repository
properties:
defaultBranch: string
definedTags:
string: any
description: string
freeformTags:
string: any
mirrorRepositoryConfig:
connectorId: string
repositoryUrl: string
triggerSchedule:
customSchedule: string
scheduleType: string
name: string
projectId: string
repositoryType: string
Repository Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The Repository resource accepts the following input properties:
- Project
Id string - The OCID of the DevOps project containing the repository.
- Repository
Type string (Updatable) Type of repository. Allowed values:
MIRRORED
HOSTED
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- Default
Branch string - (Updatable) The default branch of the repository.
- Dictionary<string, object>
- (Updatable) 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
- (Updatable) Details of the repository. Avoid entering confidential information.
- Dictionary<string, object>
- (Updatable) 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"}
- Mirror
Repository RepositoryConfig Mirror Repository Config - (Updatable) Configuration information for mirroring the repository.
- Name string
- (Updatable) Unique name of a repository.
- Project
Id string - The OCID of the DevOps project containing the repository.
- Repository
Type string (Updatable) Type of repository. Allowed values:
MIRRORED
HOSTED
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- Default
Branch string - (Updatable) The default branch of the repository.
- map[string]interface{}
- (Updatable) 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
- (Updatable) Details of the repository. Avoid entering confidential information.
- map[string]interface{}
- (Updatable) 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"}
- Mirror
Repository RepositoryConfig Mirror Repository Config Args - (Updatable) Configuration information for mirroring the repository.
- Name string
- (Updatable) Unique name of a repository.
- project
Id String - The OCID of the DevOps project containing the repository.
- repository
Type String (Updatable) Type of repository. Allowed values:
MIRRORED
HOSTED
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- default
Branch String - (Updatable) The default branch of the repository.
- Map<String,Object>
- (Updatable) 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
- (Updatable) Details of the repository. Avoid entering confidential information.
- Map<String,Object>
- (Updatable) 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"}
- mirror
Repository RepositoryConfig Mirror Repository Config - (Updatable) Configuration information for mirroring the repository.
- name String
- (Updatable) Unique name of a repository.
- project
Id string - The OCID of the DevOps project containing the repository.
- repository
Type string (Updatable) Type of repository. Allowed values:
MIRRORED
HOSTED
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- default
Branch string - (Updatable) The default branch of the repository.
- {[key: string]: any}
- (Updatable) 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
- (Updatable) Details of the repository. Avoid entering confidential information.
- {[key: string]: any}
- (Updatable) 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"}
- mirror
Repository RepositoryConfig Mirror Repository Config - (Updatable) Configuration information for mirroring the repository.
- name string
- (Updatable) Unique name of a repository.
- project_
id str - The OCID of the DevOps project containing the repository.
- repository_
type str (Updatable) Type of repository. Allowed values:
MIRRORED
HOSTED
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- default_
branch str - (Updatable) The default branch of the repository.
- Mapping[str, Any]
- (Updatable) 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
- (Updatable) Details of the repository. Avoid entering confidential information.
- Mapping[str, Any]
- (Updatable) 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"}
- mirror_
repository_ devops.config Repository Mirror Repository Config Args - (Updatable) Configuration information for mirroring the repository.
- name str
- (Updatable) Unique name of a repository.
- project
Id String - The OCID of the DevOps project containing the repository.
- repository
Type String (Updatable) Type of repository. Allowed values:
MIRRORED
HOSTED
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- default
Branch String - (Updatable) The default branch of the repository.
- Map<Any>
- (Updatable) 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
- (Updatable) Details of the repository. Avoid entering confidential information.
- Map<Any>
- (Updatable) 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"}
- mirror
Repository Property MapConfig - (Updatable) Configuration information for mirroring the repository.
- name String
- (Updatable) Unique name of a repository.
Outputs
All input properties are implicitly available as output properties. Additionally, the Repository resource produces the following output properties:
- 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.
- Http
Url string - HTTP URL that you use to git clone, pull and push.
- Id string
- The provider-assigned unique ID for this managed resource.
- 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.
- Namespace string
- Tenancy unique namespace.
- Project
Name string - Unique project name in a namespace.
- 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, object>
- 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. COMMIT_UPDATES - Build is triggered when new commits are mirrored into a repository.
- 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.
- Http
Url string - HTTP URL that you use to git clone, pull and push.
- Id string
- The provider-assigned unique ID for this managed resource.
- 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.
- Namespace string
- Tenancy unique namespace.
- Project
Name string - Unique project name in a namespace.
- 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]interface{}
- 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. COMMIT_UPDATES - Build is triggered when new commits are mirrored into a repository.
- 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.
- http
Url String - HTTP URL that you use to git clone, pull and push.
- id String
- The provider-assigned unique ID for this managed resource.
- 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.
- namespace String
- Tenancy unique namespace.
- project
Name String - Unique project name in a namespace.
- 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,Object>
- 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. COMMIT_UPDATES - Build is triggered when new commits are mirrored into a repository.
- 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.
- http
Url string - HTTP URL that you use to git clone, pull and push.
- id string
- The provider-assigned unique ID for this managed resource.
- 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.
- namespace string
- Tenancy unique namespace.
- project
Name string - Unique project name in a namespace.
- 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]: any}
- 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. COMMIT_UPDATES - Build is triggered when new commits are mirrored into a repository.
- 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.
- http_
url str - HTTP URL that you use to git clone, pull and push.
- id str
- The provider-assigned unique ID for this managed resource.
- 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.
- namespace str
- Tenancy unique namespace.
- project_
name str - Unique project name in a namespace.
- 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, Any]
- 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. COMMIT_UPDATES - Build is triggered when new commits are mirrored into a repository.
- 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.
- http
Url String - HTTP URL that you use to git clone, pull and push.
- id String
- The provider-assigned unique ID for this managed resource.
- 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.
- namespace String
- Tenancy unique namespace.
- project
Name String - Unique project name in a namespace.
- 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<Any>
- 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. COMMIT_UPDATES - Build is triggered when new commits are mirrored into a repository.
Look up Existing Repository Resource
Get an existing Repository resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: RepositoryState, opts?: CustomResourceOptions): Repository
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
branch_count: Optional[int] = None,
commit_count: Optional[int] = None,
compartment_id: Optional[str] = None,
default_branch: Optional[str] = None,
defined_tags: Optional[Mapping[str, Any]] = None,
description: Optional[str] = None,
freeform_tags: Optional[Mapping[str, Any]] = None,
http_url: Optional[str] = None,
lifecyle_details: Optional[str] = None,
mirror_repository_config: Optional[_devops.RepositoryMirrorRepositoryConfigArgs] = None,
name: Optional[str] = None,
namespace: Optional[str] = None,
project_id: Optional[str] = None,
project_name: Optional[str] = None,
repository_type: Optional[str] = None,
size_in_bytes: Optional[str] = None,
ssh_url: Optional[str] = None,
state: Optional[str] = None,
system_tags: Optional[Mapping[str, Any]] = None,
time_created: Optional[str] = None,
time_updated: Optional[str] = None,
trigger_build_events: Optional[Sequence[str]] = None) -> Repository
func GetRepository(ctx *Context, name string, id IDInput, state *RepositoryState, opts ...ResourceOption) (*Repository, error)
public static Repository Get(string name, Input<string> id, RepositoryState? state, CustomResourceOptions? opts = null)
public static Repository get(String name, Output<String> id, RepositoryState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- 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 - (Updatable) The default branch of the repository.
- Dictionary<string, object>
- (Updatable) 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
- (Updatable) Details of the repository. Avoid entering confidential information.
- Dictionary<string, object>
- (Updatable) 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.
- 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 RepositoryConfig Mirror Repository Config - (Updatable) Configuration information for mirroring the repository.
- Name string
- (Updatable) Unique name of a repository.
- Namespace string
- Tenancy unique namespace.
- Project
Id string - The OCID of the DevOps project containing the repository.
- Project
Name string - Unique project name in a namespace.
- Repository
Type string (Updatable) Type of repository. Allowed values:
MIRRORED
HOSTED
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- 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, object>
- 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. COMMIT_UPDATES - Build is triggered when new commits are mirrored into a repository.
- 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 - (Updatable) The default branch of the repository.
- map[string]interface{}
- (Updatable) 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
- (Updatable) Details of the repository. Avoid entering confidential information.
- map[string]interface{}
- (Updatable) 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.
- 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 RepositoryConfig Mirror Repository Config Args - (Updatable) Configuration information for mirroring the repository.
- Name string
- (Updatable) Unique name of a repository.
- Namespace string
- Tenancy unique namespace.
- Project
Id string - The OCID of the DevOps project containing the repository.
- Project
Name string - Unique project name in a namespace.
- Repository
Type string (Updatable) Type of repository. Allowed values:
MIRRORED
HOSTED
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- 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]interface{}
- 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. COMMIT_UPDATES - Build is triggered when new commits are mirrored into a repository.
- 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 - (Updatable) The default branch of the repository.
- Map<String,Object>
- (Updatable) 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
- (Updatable) Details of the repository. Avoid entering confidential information.
- Map<String,Object>
- (Updatable) 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.
- 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 RepositoryConfig Mirror Repository Config - (Updatable) Configuration information for mirroring the repository.
- name String
- (Updatable) Unique name of a repository.
- namespace String
- Tenancy unique namespace.
- project
Id String - The OCID of the DevOps project containing the repository.
- project
Name String - Unique project name in a namespace.
- repository
Type String (Updatable) Type of repository. Allowed values:
MIRRORED
HOSTED
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- 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,Object>
- 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. COMMIT_UPDATES - Build is triggered when new commits are mirrored into a repository.
- 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 - (Updatable) The default branch of the repository.
- {[key: string]: any}
- (Updatable) 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
- (Updatable) Details of the repository. Avoid entering confidential information.
- {[key: string]: any}
- (Updatable) 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.
- 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 RepositoryConfig Mirror Repository Config - (Updatable) Configuration information for mirroring the repository.
- name string
- (Updatable) Unique name of a repository.
- namespace string
- Tenancy unique namespace.
- project
Id string - The OCID of the DevOps project containing the repository.
- project
Name string - Unique project name in a namespace.
- repository
Type string (Updatable) Type of repository. Allowed values:
MIRRORED
HOSTED
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- 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]: any}
- 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. COMMIT_UPDATES - Build is triggered when new commits are mirrored into a repository.
- 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 - (Updatable) The default branch of the repository.
- Mapping[str, Any]
- (Updatable) 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
- (Updatable) Details of the repository. Avoid entering confidential information.
- Mapping[str, Any]
- (Updatable) 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.
- 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_ devops.config Repository Mirror Repository Config Args - (Updatable) Configuration information for mirroring the repository.
- name str
- (Updatable) Unique name of a repository.
- namespace str
- Tenancy unique namespace.
- project_
id str - The OCID of the DevOps project containing the repository.
- project_
name str - Unique project name in a namespace.
- repository_
type str (Updatable) Type of repository. Allowed values:
MIRRORED
HOSTED
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- 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, Any]
- 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. COMMIT_UPDATES - Build is triggered when new commits are mirrored into a repository.
- 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 - (Updatable) The default branch of the repository.
- Map<Any>
- (Updatable) 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
- (Updatable) Details of the repository. Avoid entering confidential information.
- Map<Any>
- (Updatable) 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.
- 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 Property MapConfig - (Updatable) Configuration information for mirroring the repository.
- name String
- (Updatable) Unique name of a repository.
- namespace String
- Tenancy unique namespace.
- project
Id String - The OCID of the DevOps project containing the repository.
- project
Name String - Unique project name in a namespace.
- repository
Type String (Updatable) Type of repository. Allowed values:
MIRRORED
HOSTED
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- 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<Any>
- 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. COMMIT_UPDATES - Build is triggered when new commits are mirrored into a repository.
Supporting Types
RepositoryMirrorRepositoryConfig, RepositoryMirrorRepositoryConfigArgs
- Connector
Id string - (Updatable) Upstream git repository connection identifer.
- Repository
Url string - (Updatable) URL of external repository you want to mirror.
- Trigger
Schedule RepositoryMirror Repository Config Trigger Schedule - (Updatable) Specifies a trigger schedule. Timing information for when to initiate automated syncs.
- Connector
Id string - (Updatable) Upstream git repository connection identifer.
- Repository
Url string - (Updatable) URL of external repository you want to mirror.
- Trigger
Schedule RepositoryMirror Repository Config Trigger Schedule - (Updatable) Specifies a trigger schedule. Timing information for when to initiate automated syncs.
- connector
Id String - (Updatable) Upstream git repository connection identifer.
- repository
Url String - (Updatable) URL of external repository you want to mirror.
- trigger
Schedule RepositoryMirror Repository Config Trigger Schedule - (Updatable) Specifies a trigger schedule. Timing information for when to initiate automated syncs.
- connector
Id string - (Updatable) Upstream git repository connection identifer.
- repository
Url string - (Updatable) URL of external repository you want to mirror.
- trigger
Schedule RepositoryMirror Repository Config Trigger Schedule - (Updatable) Specifies a trigger schedule. Timing information for when to initiate automated syncs.
- connector_
id str - (Updatable) Upstream git repository connection identifer.
- repository_
url str - (Updatable) URL of external repository you want to mirror.
- trigger_
schedule devops.Repository Mirror Repository Config Trigger Schedule - (Updatable) Specifies a trigger schedule. Timing information for when to initiate automated syncs.
- connector
Id String - (Updatable) Upstream git repository connection identifer.
- repository
Url String - (Updatable) URL of external repository you want to mirror.
- trigger
Schedule Property Map - (Updatable) Specifies a trigger schedule. Timing information for when to initiate automated syncs.
RepositoryMirrorRepositoryConfigTriggerSchedule, RepositoryMirrorRepositoryConfigTriggerScheduleArgs
- Schedule
Type string - (Updatable) Different types of trigger schedule: NONE - No automated synchronization schedule. DEFAULT - Trigger schedule is every 30 minutes. CUSTOM - Custom triggering schedule.
- Custom
Schedule string - (Updatable) 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 - (Updatable) Different types of trigger schedule: NONE - No automated synchronization schedule. DEFAULT - Trigger schedule is every 30 minutes. CUSTOM - Custom triggering schedule.
- Custom
Schedule string - (Updatable) 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 - (Updatable) Different types of trigger schedule: NONE - No automated synchronization schedule. DEFAULT - Trigger schedule is every 30 minutes. CUSTOM - Custom triggering schedule.
- custom
Schedule String - (Updatable) 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 - (Updatable) Different types of trigger schedule: NONE - No automated synchronization schedule. DEFAULT - Trigger schedule is every 30 minutes. CUSTOM - Custom triggering schedule.
- custom
Schedule string - (Updatable) 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 - (Updatable) Different types of trigger schedule: NONE - No automated synchronization schedule. DEFAULT - Trigger schedule is every 30 minutes. CUSTOM - Custom triggering schedule.
- custom_
schedule str - (Updatable) 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 - (Updatable) Different types of trigger schedule: NONE - No automated synchronization schedule. DEFAULT - Trigger schedule is every 30 minutes. CUSTOM - Custom triggering schedule.
- custom
Schedule String - (Updatable) 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.
Import
Repositories can be imported using the id
, e.g.
$ pulumi import oci:DevOps/repository:Repository test_repository "id"
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oci
Terraform Provider.