bitwarden 0.16.0 published on Thursday, Aug 28, 2025 by maxlaverse
bitwarden.getProject
Start a Neo task
Explain and create a bitwarden.getProject resource
bitwarden 0.16.0 published on Thursday, Aug 28, 2025 by maxlaverse
Use this data source to get information on an existing project.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as bitwarden from "@pulumi/bitwarden";
const exampleProject = bitwarden.getProject({
id: "37a66d6a-96c1-4f04-9a3c-b1fc0135669e",
});
const exampleSecret = new bitwarden.Secret("exampleSecret", {
projectId: exampleProject.then(exampleProject => exampleProject.id),
key: "ACCESS_KEY",
value: "THIS-VALUE",
});
import pulumi
import pulumi_bitwarden as bitwarden
example_project = bitwarden.get_project(id="37a66d6a-96c1-4f04-9a3c-b1fc0135669e")
example_secret = bitwarden.Secret("exampleSecret",
project_id=example_project.id,
key="ACCESS_KEY",
value="THIS-VALUE")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/bitwarden/bitwarden"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
exampleProject, err := bitwarden.LookupProject(ctx, &bitwarden.LookupProjectArgs{
Id: pulumi.StringRef("37a66d6a-96c1-4f04-9a3c-b1fc0135669e"),
}, nil)
if err != nil {
return err
}
_, err = bitwarden.NewSecret(ctx, "exampleSecret", &bitwarden.SecretArgs{
ProjectId: pulumi.String(exampleProject.Id),
Key: pulumi.String("ACCESS_KEY"),
Value: pulumi.String("THIS-VALUE"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Bitwarden = Pulumi.Bitwarden;
return await Deployment.RunAsync(() =>
{
var exampleProject = Bitwarden.GetProject.Invoke(new()
{
Id = "37a66d6a-96c1-4f04-9a3c-b1fc0135669e",
});
var exampleSecret = new Bitwarden.Secret("exampleSecret", new()
{
ProjectId = exampleProject.Apply(getProjectResult => getProjectResult.Id),
Key = "ACCESS_KEY",
Value = "THIS-VALUE",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.bitwarden.BitwardenFunctions;
import com.pulumi.bitwarden.inputs.GetProjectArgs;
import com.pulumi.bitwarden.Secret;
import com.pulumi.bitwarden.SecretArgs;
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 exampleProject = BitwardenFunctions.getProject(GetProjectArgs.builder()
.id("37a66d6a-96c1-4f04-9a3c-b1fc0135669e")
.build());
var exampleSecret = new Secret("exampleSecret", SecretArgs.builder()
.projectId(exampleProject.applyValue(getProjectResult -> getProjectResult.id()))
.key("ACCESS_KEY")
.value("THIS-VALUE")
.build());
}
}
resources:
exampleSecret:
type: bitwarden:Secret
properties:
projectId: ${exampleProject.id}
key: ACCESS_KEY
value: THIS-VALUE
variables:
exampleProject:
fn::invoke:
function: bitwarden:getProject
arguments:
id: 37a66d6a-96c1-4f04-9a3c-b1fc0135669e
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(id: Optional[str] = None,
organization_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetProjectResult
def get_project_output(id: Optional[pulumi.Input[str]] = None,
organization_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetProjectResult]func LookupProject(ctx *Context, args *LookupProjectArgs, opts ...InvokeOption) (*LookupProjectResult, error)
func LookupProjectOutput(ctx *Context, args *LookupProjectOutputArgs, opts ...InvokeOption) LookupProjectResultOutput> Note: This function is named LookupProject 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)
public static Output<GetProjectResult> getProject(GetProjectArgs args, InvokeOptions options)
fn::invoke:
function: bitwarden:index/getProject:getProject
arguments:
# arguments dictionaryThe following arguments are supported:
- Id string
- Identifier.
- Organization
Id string - Identifier of the organization.
- Id string
- Identifier.
- Organization
Id string - Identifier of the organization.
- id String
- Identifier.
- organization
Id String - Identifier of the organization.
- id string
- Identifier.
- organization
Id string - Identifier of the organization.
- id str
- Identifier.
- organization_
id str - Identifier of the organization.
- id String
- Identifier.
- organization
Id String - Identifier of the organization.
getProject Result
The following output properties are available:
- Name string
- Name.
- Organization
Id string - Identifier of the organization.
- Id string
- Identifier.
- Name string
- Name.
- Organization
Id string - Identifier of the organization.
- Id string
- Identifier.
- name String
- Name.
- organization
Id String - Identifier of the organization.
- id String
- Identifier.
- name string
- Name.
- organization
Id string - Identifier of the organization.
- id string
- Identifier.
- name str
- Name.
- organization_
id str - Identifier of the organization.
- id str
- Identifier.
- name String
- Name.
- organization
Id String - Identifier of the organization.
- id String
- Identifier.
Package Details
- Repository
- bitwarden maxlaverse/terraform-provider-bitwarden
- License
- Notes
- This Pulumi package is based on the
bitwardenTerraform Provider.
bitwarden 0.16.0 published on Thursday, Aug 28, 2025 by maxlaverse
