Oracle Cloud Infrastructure

Pulumi Official
Package maintained by Pulumi
v0.1.1 published on Tuesday, May 3, 2022 by Pulumi

getProject

This data source provides details about a specific Project resource in Oracle Cloud Infrastructure Devops service.

Retrieves a project by identifier.

Example Usage

using Pulumi;
using Oci = Pulumi.Oci;

class MyStack : Stack
{
    public MyStack()
    {
        var testProject = Output.Create(Oci.DevOps.GetProject.InvokeAsync(new Oci.DevOps.GetProjectArgs
        {
            ProjectId = oci_devops_project.Test_project.Id,
        }));
    }

}
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.GetProject(ctx, &devops.GetProjectArgs{
			ProjectId: oci_devops_project.Test_project.Id,
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

Coming soon!

import pulumi
import pulumi_oci as oci

test_project = oci.DevOps.get_project(project_id=oci_devops_project["test_project"]["id"])
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";

const testProject = oci.DevOps.getProject({
    projectId: oci_devops_project.test_project.id,
});

Coming soon!

Using getProject

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 getProject(args: GetProjectArgs, opts?: InvokeOptions): Promise<GetProjectResult>
function getProjectOutput(args: GetProjectOutputArgs, opts?: InvokeOptions): Output<GetProjectResult>
def get_project(project_id: Optional[str] = None,
                opts: Optional[InvokeOptions] = None) -> GetProjectResult
def get_project_output(project_id: Optional[pulumi.Input[str]] = None,
                opts: Optional[InvokeOptions] = None) -> Output[GetProjectResult]
func GetProject(ctx *Context, args *GetProjectArgs, opts ...InvokeOption) (*GetProjectResult, error)
func GetProjectOutput(ctx *Context, args *GetProjectOutputArgs, opts ...InvokeOption) GetProjectResultOutput

> Note: This function is named GetProject in the Go SDK.

public static class GetProject 
{
    public static Task<GetProjectResult> InvokeAsync(GetProjectArgs args, InvokeOptions? opts = null)
    public static Output<GetProjectResult> Invoke(GetProjectInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetProjectResult> getProject(GetProjectArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
Fn::Invoke:
  Function: oci:DevOps/getProject:getProject
  Arguments:
    # Arguments dictionary

The following arguments are supported:

ProjectId string

Unique project identifier.

ProjectId string

Unique project identifier.

projectId String

Unique project identifier.

projectId string

Unique project identifier.

project_id str

Unique project identifier.

projectId String

Unique project identifier.

getProject Result

The following output properties are available:

CompartmentId string

The OCID of the compartment where the project is created.

DefinedTags Dictionary<string, object>

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

Project description.

FreeformTags Dictionary<string, object>

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"}

Id string

Unique identifier that is immutable on creation.

LifecycleDetails 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.

Name string

Project name (case-sensitive).

Namespace string

Namespace associated with the project.

NotificationConfigs List<GetProjectNotificationConfig>

Notification configuration for the project.

ProjectId string
State string

The current state of the project.

SystemTags 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"}

TimeCreated string

Time the project was created. Format defined by RFC3339.

TimeUpdated string

Time the project was updated. Format defined by RFC3339.

CompartmentId string

The OCID of the compartment where the project is created.

DefinedTags map[string]interface{}

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

Project description.

FreeformTags map[string]interface{}

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"}

Id string

Unique identifier that is immutable on creation.

LifecycleDetails 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.

Name string

Project name (case-sensitive).

Namespace string

Namespace associated with the project.

NotificationConfigs []GetProjectNotificationConfig

Notification configuration for the project.

ProjectId string
State string

The current state of the project.

SystemTags 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"}

TimeCreated string

Time the project was created. Format defined by RFC3339.

TimeUpdated string

Time the project was updated. Format defined by RFC3339.

compartmentId String

The OCID of the compartment where the project is created.

definedTags Map<String,Object>

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

Project description.

freeformTags Map<String,Object>

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"}

id String

Unique identifier that is immutable on creation.

lifecycleDetails 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.

name String

Project name (case-sensitive).

namespace String

Namespace associated with the project.

notificationConfigs List<GetProjectNotificationConfig>

Notification configuration for the project.

projectId String
state String

The current state of the project.

systemTags 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"}

timeCreated String

Time the project was created. Format defined by RFC3339.

timeUpdated String

Time the project was updated. Format defined by RFC3339.

compartmentId string

The OCID of the compartment where the project is created.

definedTags {[key: string]: any}

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

Project description.

freeformTags {[key: string]: any}

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"}

id string

Unique identifier that is immutable on creation.

lifecycleDetails 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.

name string

Project name (case-sensitive).

namespace string

Namespace associated with the project.

notificationConfigs GetProjectNotificationConfig[]

Notification configuration for the project.

projectId string
state string

The current state of the project.

systemTags {[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"}

timeCreated string

Time the project was created. Format defined by RFC3339.

timeUpdated string

Time the project was updated. Format defined by RFC3339.

compartment_id str

The OCID of the compartment where the project is created.

defined_tags Mapping[str, Any]

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

Project description.

freeform_tags Mapping[str, Any]

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"}

id str

Unique identifier that is immutable on creation.

lifecycle_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.

name str

Project name (case-sensitive).

namespace str

Namespace associated with the project.

notification_configs GetProjectNotificationConfig]

Notification configuration for the project.

project_id str
state str

The current state of the project.

system_tags 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

Time the project was created. Format defined by RFC3339.

time_updated str

Time the project was updated. Format defined by RFC3339.

compartmentId String

The OCID of the compartment where the project is created.

definedTags Map<Any>

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

Project description.

freeformTags Map<Any>

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"}

id String

Unique identifier that is immutable on creation.

lifecycleDetails 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.

name String

Project name (case-sensitive).

namespace String

Namespace associated with the project.

notificationConfigs List<Property Map>

Notification configuration for the project.

projectId String
state String

The current state of the project.

systemTags Map<Any>

Usage of system tag keys. These predefined keys are scoped to namespaces. See Resource Tags. Example: {"orcl-cloud.free-tier-retained": "true"}

timeCreated String

Time the project was created. Format defined by RFC3339.

timeUpdated String

Time the project was updated. Format defined by RFC3339.

Supporting Types

GetProjectNotificationConfig

TopicId string

The topic ID for notifications.

TopicId string

The topic ID for notifications.

topicId String

The topic ID for notifications.

topicId string

The topic ID for notifications.

topic_id str

The topic ID for notifications.

topicId String

The topic ID for notifications.

Package Details

Repository
https://github.com/pulumi/pulumi-oci
License
Apache-2.0
Notes

This Pulumi package is based on the oci Terraform Provider.