Google Cloud Native is in preview. Google Cloud Classic is fully supported.
google-native.cloudresourcemanager/v3.getProject
Explore with Pulumi AI
Google Cloud Native is in preview. Google Cloud Classic is fully supported.
Retrieves the project identified by the specified name
(for example, projects/415104041262
). The caller must have resourcemanager.projects.get
permission 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)
// Output-based functions aren't available in Java yet
fn::invoke:
function: google-native:cloudresourcemanager/v3:getProject
arguments:
# arguments dictionary
The 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.
- Delete
Time string - The time at which this resource was requested for deletion.
- Display
Name string - Optional. A 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 Project
- Etag string
- A checksum computed by the server based on the current value of the Project resource. This may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.
- Labels Dictionary<string, string>
- Optional. 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]([-a-z0-9][a-z0-9])?. Label values must be between 0 and 63 characters long and must conform to the regular expression ([a-z]([-a-z0-9][a-z0-9])?)?. No more than 64 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:
"myBusinessDimension" : "businessValue"
- Name string
- The unique resource name of the project. It is an int64 generated number prefixed by "projects/". Example:
projects/415104041262
- Parent string
- Optional. A reference to a parent Resource. eg.,
organizations/123
orfolders/876
. - Project
Id string - Immutable. The unique, user-assigned id of the project. It must be 6 to 30 lowercase ASCII letters, digits, or hyphens. It must start with a letter. Trailing hyphens are prohibited. Example:
tokyo-rain-123
- State string
- The project lifecycle state.
- Update
Time string - The most recent time this resource was modified.
- Create
Time string - Creation time.
- Delete
Time string - The time at which this resource was requested for deletion.
- Display
Name string - Optional. A 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 Project
- Etag string
- A checksum computed by the server based on the current value of the Project resource. This may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.
- Labels map[string]string
- Optional. 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]([-a-z0-9][a-z0-9])?. Label values must be between 0 and 63 characters long and must conform to the regular expression ([a-z]([-a-z0-9][a-z0-9])?)?. No more than 64 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:
"myBusinessDimension" : "businessValue"
- Name string
- The unique resource name of the project. It is an int64 generated number prefixed by "projects/". Example:
projects/415104041262
- Parent string
- Optional. A reference to a parent Resource. eg.,
organizations/123
orfolders/876
. - Project
Id string - Immutable. The unique, user-assigned id of the project. It must be 6 to 30 lowercase ASCII letters, digits, or hyphens. It must start with a letter. Trailing hyphens are prohibited. Example:
tokyo-rain-123
- State string
- The project lifecycle state.
- Update
Time string - The most recent time this resource was modified.
- create
Time String - Creation time.
- delete
Time String - The time at which this resource was requested for deletion.
- display
Name String - Optional. A 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 Project
- etag String
- A checksum computed by the server based on the current value of the Project resource. This may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.
- labels Map<String,String>
- Optional. 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]([-a-z0-9][a-z0-9])?. Label values must be between 0 and 63 characters long and must conform to the regular expression ([a-z]([-a-z0-9][a-z0-9])?)?. No more than 64 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:
"myBusinessDimension" : "businessValue"
- name String
- The unique resource name of the project. It is an int64 generated number prefixed by "projects/". Example:
projects/415104041262
- parent String
- Optional. A reference to a parent Resource. eg.,
organizations/123
orfolders/876
. - project
Id String - Immutable. The unique, user-assigned id of the project. It must be 6 to 30 lowercase ASCII letters, digits, or hyphens. It must start with a letter. Trailing hyphens are prohibited. Example:
tokyo-rain-123
- state String
- The project lifecycle state.
- update
Time String - The most recent time this resource was modified.
- create
Time string - Creation time.
- delete
Time string - The time at which this resource was requested for deletion.
- display
Name string - Optional. A 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 Project
- etag string
- A checksum computed by the server based on the current value of the Project resource. This may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.
- labels {[key: string]: string}
- Optional. 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]([-a-z0-9][a-z0-9])?. Label values must be between 0 and 63 characters long and must conform to the regular expression ([a-z]([-a-z0-9][a-z0-9])?)?. No more than 64 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:
"myBusinessDimension" : "businessValue"
- name string
- The unique resource name of the project. It is an int64 generated number prefixed by "projects/". Example:
projects/415104041262
- parent string
- Optional. A reference to a parent Resource. eg.,
organizations/123
orfolders/876
. - project
Id string - Immutable. The unique, user-assigned id of the project. It must be 6 to 30 lowercase ASCII letters, digits, or hyphens. It must start with a letter. Trailing hyphens are prohibited. Example:
tokyo-rain-123
- state string
- The project lifecycle state.
- update
Time string - The most recent time this resource was modified.
- create_
time str - Creation time.
- delete_
time str - The time at which this resource was requested for deletion.
- display_
name str - Optional. A 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 Project
- etag str
- A checksum computed by the server based on the current value of the Project resource. This may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.
- labels Mapping[str, str]
- Optional. 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]([-a-z0-9][a-z0-9])?. Label values must be between 0 and 63 characters long and must conform to the regular expression ([a-z]([-a-z0-9][a-z0-9])?)?. No more than 64 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:
"myBusinessDimension" : "businessValue"
- name str
- The unique resource name of the project. It is an int64 generated number prefixed by "projects/". Example:
projects/415104041262
- parent str
- Optional. A reference to a parent Resource. eg.,
organizations/123
orfolders/876
. - project_
id str - Immutable. The unique, user-assigned id of the project. It must be 6 to 30 lowercase ASCII letters, digits, or hyphens. It must start with a letter. Trailing hyphens are prohibited. Example:
tokyo-rain-123
- state str
- The project lifecycle state.
- update_
time str - The most recent time this resource was modified.
- create
Time String - Creation time.
- delete
Time String - The time at which this resource was requested for deletion.
- display
Name String - Optional. A 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 Project
- etag String
- A checksum computed by the server based on the current value of the Project resource. This may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.
- labels Map<String>
- Optional. 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]([-a-z0-9][a-z0-9])?. Label values must be between 0 and 63 characters long and must conform to the regular expression ([a-z]([-a-z0-9][a-z0-9])?)?. No more than 64 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:
"myBusinessDimension" : "businessValue"
- name String
- The unique resource name of the project. It is an int64 generated number prefixed by "projects/". Example:
projects/415104041262
- parent String
- Optional. A reference to a parent Resource. eg.,
organizations/123
orfolders/876
. - project
Id String - Immutable. The unique, user-assigned id of the project. It must be 6 to 30 lowercase ASCII letters, digits, or hyphens. It must start with a letter. Trailing hyphens are prohibited. Example:
tokyo-rain-123
- state String
- The project lifecycle state.
- update
Time String - The most recent time this resource was modified.
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.