Google Cloud Classic v7.29.0 published on Wednesday, Jun 26, 2024 by Pulumi
gcp.organizations.getActiveFolder
Explore with Pulumi AI
Get an active folder within GCP by display_name and parent.
Example Usage
data "google_active_folder" "department1" {
display_name = "Department 1"
parent = "organizations/1234567"
}
Using getActiveFolder
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 getActiveFolder(args: GetActiveFolderArgs, opts?: InvokeOptions): Promise<GetActiveFolderResult>
function getActiveFolderOutput(args: GetActiveFolderOutputArgs, opts?: InvokeOptions): Output<GetActiveFolderResult>def get_active_folder(api_method: Optional[str] = None,
display_name: Optional[str] = None,
parent: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetActiveFolderResult
def get_active_folder_output(api_method: Optional[pulumi.Input[str]] = None,
display_name: Optional[pulumi.Input[str]] = None,
parent: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetActiveFolderResult]func GetActiveFolder(ctx *Context, args *GetActiveFolderArgs, opts ...InvokeOption) (*GetActiveFolderResult, error)
func GetActiveFolderOutput(ctx *Context, args *GetActiveFolderOutputArgs, opts ...InvokeOption) GetActiveFolderResultOutput> Note: This function is named GetActiveFolder in the Go SDK.
public static class GetActiveFolder
{
public static Task<GetActiveFolderResult> InvokeAsync(GetActiveFolderArgs args, InvokeOptions? opts = null)
public static Output<GetActiveFolderResult> Invoke(GetActiveFolderInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetActiveFolderResult> getActiveFolder(GetActiveFolderArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: gcp:organizations/getActiveFolder:getActiveFolder
arguments:
# arguments dictionaryThe following arguments are supported:
- Display
Name string - The folder's display name.
- Parent string
- The resource name of the parent Folder or Organization.
- Api
Method string - The API method to use to search for the folder. Valid values are
LISTandSEARCH. Default Value isLIST.LISTis strongly consistent and requiresresourcemanager.folders.liston the parent folder, whileSEARCHis eventually consistent and only returns folders that the user hasresourcemanager.folders.getpermission on.
- Display
Name string - The folder's display name.
- Parent string
- The resource name of the parent Folder or Organization.
- Api
Method string - The API method to use to search for the folder. Valid values are
LISTandSEARCH. Default Value isLIST.LISTis strongly consistent and requiresresourcemanager.folders.liston the parent folder, whileSEARCHis eventually consistent and only returns folders that the user hasresourcemanager.folders.getpermission on.
- display
Name String - The folder's display name.
- parent String
- The resource name of the parent Folder or Organization.
- api
Method String - The API method to use to search for the folder. Valid values are
LISTandSEARCH. Default Value isLIST.LISTis strongly consistent and requiresresourcemanager.folders.liston the parent folder, whileSEARCHis eventually consistent and only returns folders that the user hasresourcemanager.folders.getpermission on.
- display
Name string - The folder's display name.
- parent string
- The resource name of the parent Folder or Organization.
- api
Method string - The API method to use to search for the folder. Valid values are
LISTandSEARCH. Default Value isLIST.LISTis strongly consistent and requiresresourcemanager.folders.liston the parent folder, whileSEARCHis eventually consistent and only returns folders that the user hasresourcemanager.folders.getpermission on.
- display_
name str - The folder's display name.
- parent str
- The resource name of the parent Folder or Organization.
- api_
method str - The API method to use to search for the folder. Valid values are
LISTandSEARCH. Default Value isLIST.LISTis strongly consistent and requiresresourcemanager.folders.liston the parent folder, whileSEARCHis eventually consistent and only returns folders that the user hasresourcemanager.folders.getpermission on.
- display
Name String - The folder's display name.
- parent String
- The resource name of the parent Folder or Organization.
- api
Method String - The API method to use to search for the folder. Valid values are
LISTandSEARCH. Default Value isLIST.LISTis strongly consistent and requiresresourcemanager.folders.liston the parent folder, whileSEARCHis eventually consistent and only returns folders that the user hasresourcemanager.folders.getpermission on.
getActiveFolder Result
The following output properties are available:
- Display
Name string - Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- The resource name of the Folder. This uniquely identifies the folder.
- Parent string
- Api
Method string
- Display
Name string - Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- The resource name of the Folder. This uniquely identifies the folder.
- Parent string
- Api
Method string
- display
Name String - id String
- The provider-assigned unique ID for this managed resource.
- name String
- The resource name of the Folder. This uniquely identifies the folder.
- parent String
- api
Method String
- display
Name string - id string
- The provider-assigned unique ID for this managed resource.
- name string
- The resource name of the Folder. This uniquely identifies the folder.
- parent string
- api
Method string
- display_
name str - id str
- The provider-assigned unique ID for this managed resource.
- name str
- The resource name of the Folder. This uniquely identifies the folder.
- parent str
- api_
method str
- display
Name String - id String
- The provider-assigned unique ID for this managed resource.
- name String
- The resource name of the Folder. This uniquely identifies the folder.
- parent String
- api
Method String
Package Details
- Repository
- Google Cloud (GCP) Classic pulumi/pulumi-gcp
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
google-betaTerraform Provider.