Google Cloud Native is in preview. Google Cloud Classic is fully supported.
google-native.cloudresourcemanager/v1beta1.getProject
Explore with Pulumi AI
Google Cloud Native is in preview. Google Cloud Classic is fully supported.
Retrieves the Project identified by the specified project_id (for example, my-project-123). The caller must have read permissions for this Project.
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: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetProjectResult
def get_project_output(project: 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: google-native:cloudresourcemanager/v1beta1:getProject
arguments:
# arguments dictionaryThe following arguments are supported:
- Project string
- Project string
- project String
- project string
- project str
- project String
getProject Result
The following output properties are available:
- Create
Time string - Creation time. Read-only.
- Labels Dictionary<string, string>
- The labels associated with this Project. Label keys must be between 1 and 63 characters long and must conform to the following regular expression: a-z{0,62}. Label values must be between 0 and 63 characters long and must conform to the regular expression [a-z0-9_-]{0,63}. A label value can be empty. No more than 256 labels can be associated with a given resource. Clients should store labels in a representation such as JSON that does not depend on specific characters being disallowed. Example:
"environment" : "dev"Read-write. - Lifecycle
State string - The Project lifecycle state. Read-only.
- Name string
- The optional user-assigned display name of the Project. When present it must be between 4 to 30 characters. Allowed characters are: lowercase and uppercase letters, numbers, hyphen, single-quote, double-quote, space, and exclamation point. Example:
My ProjectRead-write. - Parent
Pulumi.
Google Native. Cloud Resource Manager. V1Beta1. Outputs. Resource Id Response - An optional reference to a parent Resource. Supported parent types include "organization" and "folder". Once set, the parent cannot be cleared. The
parentcan be set on creation or using theUpdateProjectmethod; the end user must have theresourcemanager.projects.createpermission on the parent. Read-write. - Project
Id string - The unique, user-assigned ID of the Project. It must be 6 to 30 lowercase letters, digits, or hyphens. It must start with a letter. Trailing hyphens are prohibited. Example:
tokyo-rain-123Read-only after creation. - Project
Number string - The number uniquely identifying the project. Example:
415104041262Read-only.
- Create
Time string - Creation time. Read-only.
- Labels map[string]string
- The labels associated with this Project. Label keys must be between 1 and 63 characters long and must conform to the following regular expression: a-z{0,62}. Label values must be between 0 and 63 characters long and must conform to the regular expression [a-z0-9_-]{0,63}. A label value can be empty. No more than 256 labels can be associated with a given resource. Clients should store labels in a representation such as JSON that does not depend on specific characters being disallowed. Example:
"environment" : "dev"Read-write. - Lifecycle
State string - The Project lifecycle state. Read-only.
- Name string
- The optional user-assigned display name of the Project. When present it must be between 4 to 30 characters. Allowed characters are: lowercase and uppercase letters, numbers, hyphen, single-quote, double-quote, space, and exclamation point. Example:
My ProjectRead-write. - Parent
Resource
Id Response - An optional reference to a parent Resource. Supported parent types include "organization" and "folder". Once set, the parent cannot be cleared. The
parentcan be set on creation or using theUpdateProjectmethod; the end user must have theresourcemanager.projects.createpermission on the parent. Read-write. - Project
Id string - The unique, user-assigned ID of the Project. It must be 6 to 30 lowercase letters, digits, or hyphens. It must start with a letter. Trailing hyphens are prohibited. Example:
tokyo-rain-123Read-only after creation. - Project
Number string - The number uniquely identifying the project. Example:
415104041262Read-only.
- create
Time String - Creation time. Read-only.
- labels Map<String,String>
- The labels associated with this Project. Label keys must be between 1 and 63 characters long and must conform to the following regular expression: a-z{0,62}. Label values must be between 0 and 63 characters long and must conform to the regular expression [a-z0-9_-]{0,63}. A label value can be empty. No more than 256 labels can be associated with a given resource. Clients should store labels in a representation such as JSON that does not depend on specific characters being disallowed. Example:
"environment" : "dev"Read-write. - lifecycle
State String - The Project lifecycle state. Read-only.
- name String
- The optional user-assigned display name of the Project. When present it must be between 4 to 30 characters. Allowed characters are: lowercase and uppercase letters, numbers, hyphen, single-quote, double-quote, space, and exclamation point. Example:
My ProjectRead-write. - parent
Resource
Id Response - An optional reference to a parent Resource. Supported parent types include "organization" and "folder". Once set, the parent cannot be cleared. The
parentcan be set on creation or using theUpdateProjectmethod; the end user must have theresourcemanager.projects.createpermission on the parent. Read-write. - project
Id String - The unique, user-assigned ID of the Project. It must be 6 to 30 lowercase letters, digits, or hyphens. It must start with a letter. Trailing hyphens are prohibited. Example:
tokyo-rain-123Read-only after creation. - project
Number String - The number uniquely identifying the project. Example:
415104041262Read-only.
- create
Time string - Creation time. Read-only.
- labels {[key: string]: string}
- The labels associated with this Project. Label keys must be between 1 and 63 characters long and must conform to the following regular expression: a-z{0,62}. Label values must be between 0 and 63 characters long and must conform to the regular expression [a-z0-9_-]{0,63}. A label value can be empty. No more than 256 labels can be associated with a given resource. Clients should store labels in a representation such as JSON that does not depend on specific characters being disallowed. Example:
"environment" : "dev"Read-write. - lifecycle
State string - The Project lifecycle state. Read-only.
- name string
- The optional user-assigned display name of the Project. When present it must be between 4 to 30 characters. Allowed characters are: lowercase and uppercase letters, numbers, hyphen, single-quote, double-quote, space, and exclamation point. Example:
My ProjectRead-write. - parent
Resource
Id Response - An optional reference to a parent Resource. Supported parent types include "organization" and "folder". Once set, the parent cannot be cleared. The
parentcan be set on creation or using theUpdateProjectmethod; the end user must have theresourcemanager.projects.createpermission on the parent. Read-write. - project
Id string - The unique, user-assigned ID of the Project. It must be 6 to 30 lowercase letters, digits, or hyphens. It must start with a letter. Trailing hyphens are prohibited. Example:
tokyo-rain-123Read-only after creation. - project
Number string - The number uniquely identifying the project. Example:
415104041262Read-only.
- create_
time str - Creation time. Read-only.
- labels Mapping[str, str]
- The labels associated with this Project. Label keys must be between 1 and 63 characters long and must conform to the following regular expression: a-z{0,62}. Label values must be between 0 and 63 characters long and must conform to the regular expression [a-z0-9_-]{0,63}. A label value can be empty. No more than 256 labels can be associated with a given resource. Clients should store labels in a representation such as JSON that does not depend on specific characters being disallowed. Example:
"environment" : "dev"Read-write. - lifecycle_
state str - The Project lifecycle state. Read-only.
- name str
- The optional user-assigned display name of the Project. When present it must be between 4 to 30 characters. Allowed characters are: lowercase and uppercase letters, numbers, hyphen, single-quote, double-quote, space, and exclamation point. Example:
My ProjectRead-write. - parent
Resource
Id Response - An optional reference to a parent Resource. Supported parent types include "organization" and "folder". Once set, the parent cannot be cleared. The
parentcan be set on creation or using theUpdateProjectmethod; the end user must have theresourcemanager.projects.createpermission on the parent. Read-write. - project_
id str - The unique, user-assigned ID of the Project. It must be 6 to 30 lowercase letters, digits, or hyphens. It must start with a letter. Trailing hyphens are prohibited. Example:
tokyo-rain-123Read-only after creation. - project_
number str - The number uniquely identifying the project. Example:
415104041262Read-only.
- create
Time String - Creation time. Read-only.
- labels Map<String>
- The labels associated with this Project. Label keys must be between 1 and 63 characters long and must conform to the following regular expression: a-z{0,62}. Label values must be between 0 and 63 characters long and must conform to the regular expression [a-z0-9_-]{0,63}. A label value can be empty. No more than 256 labels can be associated with a given resource. Clients should store labels in a representation such as JSON that does not depend on specific characters being disallowed. Example:
"environment" : "dev"Read-write. - lifecycle
State String - The Project lifecycle state. Read-only.
- name String
- The optional user-assigned display name of the Project. When present it must be between 4 to 30 characters. Allowed characters are: lowercase and uppercase letters, numbers, hyphen, single-quote, double-quote, space, and exclamation point. Example:
My ProjectRead-write. - parent Property Map
- An optional reference to a parent Resource. Supported parent types include "organization" and "folder". Once set, the parent cannot be cleared. The
parentcan be set on creation or using theUpdateProjectmethod; the end user must have theresourcemanager.projects.createpermission on the parent. Read-write. - project
Id String - The unique, user-assigned ID of the Project. It must be 6 to 30 lowercase letters, digits, or hyphens. It must start with a letter. Trailing hyphens are prohibited. Example:
tokyo-rain-123Read-only after creation. - project
Number String - The number uniquely identifying the project. Example:
415104041262Read-only.
Supporting Types
ResourceIdResponse
- Type string
- Required field representing the resource type this id is for. At present, the valid types are "project", "folder", and "organization".
- Type string
- Required field representing the resource type this id is for. At present, the valid types are "project", "folder", and "organization".
- type String
- Required field representing the resource type this id is for. At present, the valid types are "project", "folder", and "organization".
- type string
- Required field representing the resource type this id is for. At present, the valid types are "project", "folder", and "organization".
- type str
- Required field representing the resource type this id is for. At present, the valid types are "project", "folder", and "organization".
- type String
- Required field representing the resource type this id is for. At present, the valid types are "project", "folder", and "organization".
Package Details
- Repository
- Google Cloud Native pulumi/pulumi-google-native
- License
- Apache-2.0
Google Cloud Native is in preview. Google Cloud Classic is fully supported.