zitadel v0.2.0 published on Monday, Mar 24, 2025 by pulumiverse
zitadel.getProject
Explore with Pulumi AI
Datasource representing the project, which can then be granted to different organizations or users directly, containing different applications.
Example Usage
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Zitadel = Pulumi.Zitadel;
return await Deployment.RunAsync(() => 
{
    var @default = Zitadel.GetProject.Invoke(new()
    {
        OrgId = defaultZitadelOrg.Id,
        ProjectId = "123456789012345678",
    });
});
package main
import (
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
	"github.com/pulumiverse/pulumi-zitadel/sdk/go/zitadel"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := zitadel.LookupProject(ctx, &zitadel.LookupProjectArgs{
			OrgId:     pulumi.StringRef(defaultZitadelOrg.Id),
			ProjectId: "123456789012345678",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.zitadel.ZitadelFunctions;
import com.pulumi.zitadel.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 default = ZitadelFunctions.getProject(GetProjectArgs.builder()
            .orgId(defaultZitadelOrg.id())
            .projectId("123456789012345678")
            .build());
    }
}
import * as pulumi from "@pulumi/pulumi";
import * as zitadel from "@pulumi/zitadel";
const default = zitadel.getProject({
    orgId: defaultZitadelOrg.id,
    projectId: "123456789012345678",
});
import pulumi
import pulumi_zitadel as zitadel
default = zitadel.get_project(org_id=default_zitadel_org["id"],
    project_id="123456789012345678")
variables:
  default:
    fn::invoke:
      Function: zitadel:getProject
      Arguments:
        orgId: ${defaultZitadelOrg.id}
        projectId: '123456789012345678'
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(org_id: Optional[str] = None,
                project_id: Optional[str] = None,
                opts: Optional[InvokeOptions] = None) -> GetProjectResult
def get_project_output(org_id: Optional[pulumi.Input[str]] = None,
                project_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: zitadel:index/getProject:getProject
  arguments:
    # arguments dictionaryThe following arguments are supported:
- project_id str
- The ID of this resource.
- org_id str
- ID of the organization
getProject Result
The following output properties are available:
- HasProject boolCheck 
- ZITADEL checks if the org of the user has permission to this project
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- Name of the project
- PrivateLabeling stringSetting 
- Defines from where the private labeling should be triggered
- ProjectId string
- The ID of this resource.
- ProjectRole boolAssertion 
- describes if roles of user should be added in token
- ProjectRole boolCheck 
- ZITADEL checks if the user has at least one on this project
- State string
- State of the project
- OrgId string
- ID of the organization
- HasProject boolCheck 
- ZITADEL checks if the org of the user has permission to this project
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- Name of the project
- PrivateLabeling stringSetting 
- Defines from where the private labeling should be triggered
- ProjectId string
- The ID of this resource.
- ProjectRole boolAssertion 
- describes if roles of user should be added in token
- ProjectRole boolCheck 
- ZITADEL checks if the user has at least one on this project
- State string
- State of the project
- OrgId string
- ID of the organization
- hasProject BooleanCheck 
- ZITADEL checks if the org of the user has permission to this project
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- Name of the project
- privateLabeling StringSetting 
- Defines from where the private labeling should be triggered
- projectId String
- The ID of this resource.
- projectRole BooleanAssertion 
- describes if roles of user should be added in token
- projectRole BooleanCheck 
- ZITADEL checks if the user has at least one on this project
- state String
- State of the project
- orgId String
- ID of the organization
- hasProject booleanCheck 
- ZITADEL checks if the org of the user has permission to this project
- id string
- The provider-assigned unique ID for this managed resource.
- name string
- Name of the project
- privateLabeling stringSetting 
- Defines from where the private labeling should be triggered
- projectId string
- The ID of this resource.
- projectRole booleanAssertion 
- describes if roles of user should be added in token
- projectRole booleanCheck 
- ZITADEL checks if the user has at least one on this project
- state string
- State of the project
- orgId string
- ID of the organization
- has_project_ boolcheck 
- ZITADEL checks if the org of the user has permission to this project
- id str
- The provider-assigned unique ID for this managed resource.
- name str
- Name of the project
- private_labeling_ strsetting 
- Defines from where the private labeling should be triggered
- project_id str
- The ID of this resource.
- project_role_ boolassertion 
- describes if roles of user should be added in token
- project_role_ boolcheck 
- ZITADEL checks if the user has at least one on this project
- state str
- State of the project
- org_id str
- ID of the organization
- hasProject BooleanCheck 
- ZITADEL checks if the org of the user has permission to this project
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- Name of the project
- privateLabeling StringSetting 
- Defines from where the private labeling should be triggered
- projectId String
- The ID of this resource.
- projectRole BooleanAssertion 
- describes if roles of user should be added in token
- projectRole BooleanCheck 
- ZITADEL checks if the user has at least one on this project
- state String
- State of the project
- orgId String
- ID of the organization
Package Details
- Repository
- zitadel pulumiverse/pulumi-zitadel
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the zitadelTerraform Provider.