Google Cloud Native is in preview. Google Cloud Classic is fully supported.
google-native.cloudresourcemanager/v2.getFolder
Explore with Pulumi AI
Google Cloud Native is in preview. Google Cloud Classic is fully supported.
Retrieves a Folder identified by the supplied resource name. Valid Folder resource names have the format folders/{folder_id}
(for example, folders/1234
). The caller must have resourcemanager.folders.get
permission on the identified folder.
Using getFolder
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 getFolder(args: GetFolderArgs, opts?: InvokeOptions): Promise<GetFolderResult>
function getFolderOutput(args: GetFolderOutputArgs, opts?: InvokeOptions): Output<GetFolderResult>
def get_folder(folder_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetFolderResult
def get_folder_output(folder_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetFolderResult]
func LookupFolder(ctx *Context, args *LookupFolderArgs, opts ...InvokeOption) (*LookupFolderResult, error)
func LookupFolderOutput(ctx *Context, args *LookupFolderOutputArgs, opts ...InvokeOption) LookupFolderResultOutput
> Note: This function is named LookupFolder
in the Go SDK.
public static class GetFolder
{
public static Task<GetFolderResult> InvokeAsync(GetFolderArgs args, InvokeOptions? opts = null)
public static Output<GetFolderResult> Invoke(GetFolderInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetFolderResult> getFolder(GetFolderArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: google-native:cloudresourcemanager/v2:getFolder
arguments:
# arguments dictionary
The following arguments are supported:
- Folder
Id string
- Folder
Id string
- folder
Id String
- folder
Id string
- folder_
id str
- folder
Id String
getFolder Result
The following output properties are available:
- Create
Time string - Timestamp when the Folder was created. Assigned by the server.
- Display
Name string - The folder's display name. A folder's display name must be unique amongst its siblings, e.g. no two folders with the same parent can share the same display name. The display name must start and end with a letter or digit, may contain letters, digits, spaces, hyphens and underscores and can be no longer than 30 characters. This is captured by the regular expression:
[\p{L}\p{N}]([\p{L}\p{N}_- ]{0,28}[\p{L}\p{N}])?
. - Lifecycle
State string - The lifecycle state of the folder. Updates to the lifecycle_state must be performed via DeleteFolder and UndeleteFolder.
- Name string
- The resource name of the Folder. Its format is
folders/{folder_id}
, for example: "folders/1234". - Parent string
- The Folder's parent's resource name. Updates to the folder's parent must be performed via MoveFolder.
- Create
Time string - Timestamp when the Folder was created. Assigned by the server.
- Display
Name string - The folder's display name. A folder's display name must be unique amongst its siblings, e.g. no two folders with the same parent can share the same display name. The display name must start and end with a letter or digit, may contain letters, digits, spaces, hyphens and underscores and can be no longer than 30 characters. This is captured by the regular expression:
[\p{L}\p{N}]([\p{L}\p{N}_- ]{0,28}[\p{L}\p{N}])?
. - Lifecycle
State string - The lifecycle state of the folder. Updates to the lifecycle_state must be performed via DeleteFolder and UndeleteFolder.
- Name string
- The resource name of the Folder. Its format is
folders/{folder_id}
, for example: "folders/1234". - Parent string
- The Folder's parent's resource name. Updates to the folder's parent must be performed via MoveFolder.
- create
Time String - Timestamp when the Folder was created. Assigned by the server.
- display
Name String - The folder's display name. A folder's display name must be unique amongst its siblings, e.g. no two folders with the same parent can share the same display name. The display name must start and end with a letter or digit, may contain letters, digits, spaces, hyphens and underscores and can be no longer than 30 characters. This is captured by the regular expression:
[\p{L}\p{N}]([\p{L}\p{N}_- ]{0,28}[\p{L}\p{N}])?
. - lifecycle
State String - The lifecycle state of the folder. Updates to the lifecycle_state must be performed via DeleteFolder and UndeleteFolder.
- name String
- The resource name of the Folder. Its format is
folders/{folder_id}
, for example: "folders/1234". - parent String
- The Folder's parent's resource name. Updates to the folder's parent must be performed via MoveFolder.
- create
Time string - Timestamp when the Folder was created. Assigned by the server.
- display
Name string - The folder's display name. A folder's display name must be unique amongst its siblings, e.g. no two folders with the same parent can share the same display name. The display name must start and end with a letter or digit, may contain letters, digits, spaces, hyphens and underscores and can be no longer than 30 characters. This is captured by the regular expression:
[\p{L}\p{N}]([\p{L}\p{N}_- ]{0,28}[\p{L}\p{N}])?
. - lifecycle
State string - The lifecycle state of the folder. Updates to the lifecycle_state must be performed via DeleteFolder and UndeleteFolder.
- name string
- The resource name of the Folder. Its format is
folders/{folder_id}
, for example: "folders/1234". - parent string
- The Folder's parent's resource name. Updates to the folder's parent must be performed via MoveFolder.
- create_
time str - Timestamp when the Folder was created. Assigned by the server.
- display_
name str - The folder's display name. A folder's display name must be unique amongst its siblings, e.g. no two folders with the same parent can share the same display name. The display name must start and end with a letter or digit, may contain letters, digits, spaces, hyphens and underscores and can be no longer than 30 characters. This is captured by the regular expression:
[\p{L}\p{N}]([\p{L}\p{N}_- ]{0,28}[\p{L}\p{N}])?
. - lifecycle_
state str - The lifecycle state of the folder. Updates to the lifecycle_state must be performed via DeleteFolder and UndeleteFolder.
- name str
- The resource name of the Folder. Its format is
folders/{folder_id}
, for example: "folders/1234". - parent str
- The Folder's parent's resource name. Updates to the folder's parent must be performed via MoveFolder.
- create
Time String - Timestamp when the Folder was created. Assigned by the server.
- display
Name String - The folder's display name. A folder's display name must be unique amongst its siblings, e.g. no two folders with the same parent can share the same display name. The display name must start and end with a letter or digit, may contain letters, digits, spaces, hyphens and underscores and can be no longer than 30 characters. This is captured by the regular expression:
[\p{L}\p{N}]([\p{L}\p{N}_- ]{0,28}[\p{L}\p{N}])?
. - lifecycle
State String - The lifecycle state of the folder. Updates to the lifecycle_state must be performed via DeleteFolder and UndeleteFolder.
- name String
- The resource name of the Folder. Its format is
folders/{folder_id}
, for example: "folders/1234". - parent String
- The Folder's parent's resource name. Updates to the folder's parent must be performed via MoveFolder.
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.