OrganizationsFunctions

Functions

Link copied to clipboard

Get an active folder within GCP by display_name and parent.

suspend fun getActiveFolder(apiMethod: String? = null, displayName: String, parent: String): GetActiveFolderResult
Link copied to clipboard

Use this data source to get information about a Google Billing Account.

suspend fun getBillingAccount(billingAccount: String? = null, displayName: String? = null, lookupProjects: Boolean? = null, open: Boolean? = null): GetBillingAccountResult
Link copied to clipboard
Link copied to clipboard

Get OpenID userinfo about the credentials used with the Google provider, specifically the email. This datasource enables you to export the email of the account you've authenticated the provider with; this can be used alongside data.google_client_config's access_token to perform OpenID Connect authentication with GKE and configure an RBAC role for the email used.

Link copied to clipboard

Use this data source to get information about a Google Cloud Folder.

suspend fun getFolder(argument: suspend GetFolderPlainArgsBuilder.() -> Unit): GetFolderResult
suspend fun getFolder(folder: String, lookupOrganization: Boolean? = null): GetFolderResult
Link copied to clipboard

Retrieve information about a set of folders based on a parent ID. See the REST API for more details.

suspend fun getFolders(parentId: String): GetFoldersResult
suspend fun getFolders(argument: suspend GetFoldersPlainArgsBuilder.() -> Unit): GetFoldersResult
Link copied to clipboard

Generates an IAM policy document that may be referenced by and applied to other Google Cloud Platform IAM resources, such as the gcp.projects.IAMPolicy resource. Note: Please review the documentation of the resource that you will be using the datasource with. Some resources such as gcp.projects.IAMPolicy and others have limitations in their API methods which are noted on their respective page.

suspend fun getIAMPolicy(auditConfigs: List<GetIAMPolicyAuditConfig>? = null, bindings: List<GetIAMPolicyBinding>? = null): GetIAMPolicyResult
Link copied to clipboard

Get information about a Google Cloud Organization. Note that you must have the roles/resourcemanager.organizationViewer role (or equivalent permissions) at the organization level to use this datasource.

suspend fun getOrganization(domain: String? = null, organization: String? = null): GetOrganizationResult
Link copied to clipboard

Use this data source to get project details. For more information see API

suspend fun getProject(projectId: String? = null): GetProjectResult
suspend fun getProject(argument: suspend GetProjectPlainArgsBuilder.() -> Unit): GetProjectResult