Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi
oci.AiDocument.getProject
Explore with Pulumi AI
Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi
This data source provides details about a specific Project resource in Oracle Cloud Infrastructure Ai Document service.
Get a project by identifier.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testProject = oci.AiDocument.getProject({
projectId: testProjectOciAiDocumentProject.id,
});
import pulumi
import pulumi_oci as oci
test_project = oci.AiDocument.get_project(project_id=test_project_oci_ai_document_project["id"])
package main
import (
"github.com/pulumi/pulumi-oci/sdk/go/oci/AiDocument"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := AiDocument.GetProject(ctx, &aidocument.GetProjectArgs{
ProjectId: testProjectOciAiDocumentProject.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 testProject = Oci.AiDocument.GetProject.Invoke(new()
{
ProjectId = testProjectOciAiDocumentProject.Id,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.AiDocument.AiDocumentFunctions;
import com.pulumi.oci.AiDocument.inputs.GetProjectArgs;
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 testProject = AiDocumentFunctions.getProject(GetProjectArgs.builder()
.projectId(testProjectOciAiDocumentProject.id())
.build());
}
}
variables:
testProject:
fn::invoke:
Function: oci:AiDocument:getProject
Arguments:
projectId: ${testProjectOciAiDocumentProject.id}
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:AiDocument/getProject:getProject
arguments:
# arguments dictionary
The following arguments are supported:
- Project
Id string - A unique project identifier.
- Project
Id string - A unique project identifier.
- project
Id String - A unique project identifier.
- project
Id string - A unique project identifier.
- project_
id str - A unique project identifier.
- project
Id String - A unique project identifier.
getProject Result
The following output properties are available:
- Compartment
Id string - The compartment identifier.
- Dictionary<string, object>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For example:
{"foo-namespace": {"bar-key": "value"}}
- Description string
- An optional description of the project.
- Display
Name string - A human-friendly name for the project, which can be changed.
- Dictionary<string, object>
- A simple key-value pair that is applied without any predefined name, type, or scope. It exists for cross-compatibility only. For example:
{"bar-key": "value"}
- Id string
- A unique identifier that is immutable after creation.
- Lifecycle
Details string - A message describing the current state in more detail, that can provide actionable information if creation failed.
- Project
Id string - State string
- The current state of the project.
- Dictionary<string, object>
- Usage of system tag keys. These predefined keys are scoped to namespaces. For example:
{"orcl-cloud": {"free-tier-retained": "true"}}
- Time
Created string - When the project was created, as an RFC3339 datetime string.
- Time
Updated string - When the project was updated, as an RFC3339 datetime string.
- Compartment
Id string - The compartment identifier.
- map[string]interface{}
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For example:
{"foo-namespace": {"bar-key": "value"}}
- Description string
- An optional description of the project.
- Display
Name string - A human-friendly name for the project, which can be changed.
- map[string]interface{}
- A simple key-value pair that is applied without any predefined name, type, or scope. It exists for cross-compatibility only. For example:
{"bar-key": "value"}
- Id string
- A unique identifier that is immutable after creation.
- Lifecycle
Details string - A message describing the current state in more detail, that can provide actionable information if creation failed.
- Project
Id string - State string
- The current state of the project.
- map[string]interface{}
- Usage of system tag keys. These predefined keys are scoped to namespaces. For example:
{"orcl-cloud": {"free-tier-retained": "true"}}
- Time
Created string - When the project was created, as an RFC3339 datetime string.
- Time
Updated string - When the project was updated, as an RFC3339 datetime string.
- compartment
Id String - The compartment identifier.
- Map<String,Object>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For example:
{"foo-namespace": {"bar-key": "value"}}
- description String
- An optional description of the project.
- display
Name String - A human-friendly name for the project, which can be changed.
- Map<String,Object>
- A simple key-value pair that is applied without any predefined name, type, or scope. It exists for cross-compatibility only. For example:
{"bar-key": "value"}
- id String
- A unique identifier that is immutable after creation.
- lifecycle
Details String - A message describing the current state in more detail, that can provide actionable information if creation failed.
- project
Id String - state String
- The current state of the project.
- Map<String,Object>
- Usage of system tag keys. These predefined keys are scoped to namespaces. For example:
{"orcl-cloud": {"free-tier-retained": "true"}}
- time
Created String - When the project was created, as an RFC3339 datetime string.
- time
Updated String - When the project was updated, as an RFC3339 datetime string.
- compartment
Id string - The compartment identifier.
- {[key: string]: any}
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For example:
{"foo-namespace": {"bar-key": "value"}}
- description string
- An optional description of the project.
- display
Name string - A human-friendly name for the project, which can be changed.
- {[key: string]: any}
- A simple key-value pair that is applied without any predefined name, type, or scope. It exists for cross-compatibility only. For example:
{"bar-key": "value"}
- id string
- A unique identifier that is immutable after creation.
- lifecycle
Details string - A message describing the current state in more detail, that can provide actionable information if creation failed.
- project
Id string - state string
- The current state of the project.
- {[key: string]: any}
- Usage of system tag keys. These predefined keys are scoped to namespaces. For example:
{"orcl-cloud": {"free-tier-retained": "true"}}
- time
Created string - When the project was created, as an RFC3339 datetime string.
- time
Updated string - When the project was updated, as an RFC3339 datetime string.
- compartment_
id str - The compartment identifier.
- Mapping[str, Any]
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For example:
{"foo-namespace": {"bar-key": "value"}}
- description str
- An optional description of the project.
- display_
name str - A human-friendly name for the project, which can be changed.
- Mapping[str, Any]
- A simple key-value pair that is applied without any predefined name, type, or scope. It exists for cross-compatibility only. For example:
{"bar-key": "value"}
- id str
- A unique identifier that is immutable after creation.
- lifecycle_
details str - A message describing the current state in more detail, that can provide actionable information if creation failed.
- project_
id str - state str
- The current state of the project.
- Mapping[str, Any]
- Usage of system tag keys. These predefined keys are scoped to namespaces. For example:
{"orcl-cloud": {"free-tier-retained": "true"}}
- time_
created str - When the project was created, as an RFC3339 datetime string.
- time_
updated str - When the project was updated, as an RFC3339 datetime string.
- compartment
Id String - The compartment identifier.
- Map<Any>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For example:
{"foo-namespace": {"bar-key": "value"}}
- description String
- An optional description of the project.
- display
Name String - A human-friendly name for the project, which can be changed.
- Map<Any>
- A simple key-value pair that is applied without any predefined name, type, or scope. It exists for cross-compatibility only. For example:
{"bar-key": "value"}
- id String
- A unique identifier that is immutable after creation.
- lifecycle
Details String - A message describing the current state in more detail, that can provide actionable information if creation failed.
- project
Id String - state String
- The current state of the project.
- Map<Any>
- Usage of system tag keys. These predefined keys are scoped to namespaces. For example:
{"orcl-cloud": {"free-tier-retained": "true"}}
- time
Created String - When the project was created, as an RFC3339 datetime string.
- time
Updated String - When the project was updated, as an RFC3339 datetime string.
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oci
Terraform Provider.
Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi