Google Cloud Native is in preview. Google Cloud Classic is fully supported.
google-native.cloudbilling/v1.getBillingAccount
Explore with Pulumi AI
Google Cloud Native is in preview. Google Cloud Classic is fully supported.
Gets information about a billing account. The current authenticated user must be a viewer of the billing account.
Using getBillingAccount
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 getBillingAccount(args: GetBillingAccountArgs, opts?: InvokeOptions): Promise<GetBillingAccountResult>
function getBillingAccountOutput(args: GetBillingAccountOutputArgs, opts?: InvokeOptions): Output<GetBillingAccountResult>
def get_billing_account(billing_account_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetBillingAccountResult
def get_billing_account_output(billing_account_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetBillingAccountResult]
func LookupBillingAccount(ctx *Context, args *LookupBillingAccountArgs, opts ...InvokeOption) (*LookupBillingAccountResult, error)
func LookupBillingAccountOutput(ctx *Context, args *LookupBillingAccountOutputArgs, opts ...InvokeOption) LookupBillingAccountResultOutput
> Note: This function is named LookupBillingAccount
in the Go SDK.
public static class GetBillingAccount
{
public static Task<GetBillingAccountResult> InvokeAsync(GetBillingAccountArgs args, InvokeOptions? opts = null)
public static Output<GetBillingAccountResult> Invoke(GetBillingAccountInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetBillingAccountResult> getBillingAccount(GetBillingAccountArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: google-native:cloudbilling/v1:getBillingAccount
arguments:
# arguments dictionary
The following arguments are supported:
- Billing
Account stringId
- Billing
Account stringId
- billing
Account StringId
- billing
Account stringId
- billing
Account StringId
getBillingAccount Result
The following output properties are available:
- Display
Name string - The display name given to the billing account, such as
My Billing Account
. This name is displayed in the Google Cloud Console. - Master
Billing stringAccount - If this account is a subaccount, then this will be the resource name of the parent billing account that it is being resold through. Otherwise this will be empty.
- Name string
- The resource name of the billing account. The resource name has the form
billingAccounts/{billing_account_id}
. For example,billingAccounts/012345-567890-ABCDEF
would be the resource name for billing account012345-567890-ABCDEF
. - Open bool
- True if the billing account is open, and will therefore be charged for any usage on associated projects. False if the billing account is closed, and therefore projects associated with it will be unable to use paid services.
- Parent string
- The billing account's parent resource identifier. Use the
MoveBillingAccount
method to update the account's parent resource if it is a organization. Format: - organizations/{organization_id}, for example: organizations/12345678 - billingAccounts/{billing_account_id}, for example:billingAccounts/012345-567890-ABCDEF
- Display
Name string - The display name given to the billing account, such as
My Billing Account
. This name is displayed in the Google Cloud Console. - Master
Billing stringAccount - If this account is a subaccount, then this will be the resource name of the parent billing account that it is being resold through. Otherwise this will be empty.
- Name string
- The resource name of the billing account. The resource name has the form
billingAccounts/{billing_account_id}
. For example,billingAccounts/012345-567890-ABCDEF
would be the resource name for billing account012345-567890-ABCDEF
. - Open bool
- True if the billing account is open, and will therefore be charged for any usage on associated projects. False if the billing account is closed, and therefore projects associated with it will be unable to use paid services.
- Parent string
- The billing account's parent resource identifier. Use the
MoveBillingAccount
method to update the account's parent resource if it is a organization. Format: - organizations/{organization_id}, for example: organizations/12345678 - billingAccounts/{billing_account_id}, for example:billingAccounts/012345-567890-ABCDEF
- display
Name String - The display name given to the billing account, such as
My Billing Account
. This name is displayed in the Google Cloud Console. - master
Billing StringAccount - If this account is a subaccount, then this will be the resource name of the parent billing account that it is being resold through. Otherwise this will be empty.
- name String
- The resource name of the billing account. The resource name has the form
billingAccounts/{billing_account_id}
. For example,billingAccounts/012345-567890-ABCDEF
would be the resource name for billing account012345-567890-ABCDEF
. - open Boolean
- True if the billing account is open, and will therefore be charged for any usage on associated projects. False if the billing account is closed, and therefore projects associated with it will be unable to use paid services.
- parent String
- The billing account's parent resource identifier. Use the
MoveBillingAccount
method to update the account's parent resource if it is a organization. Format: - organizations/{organization_id}, for example: organizations/12345678 - billingAccounts/{billing_account_id}, for example:billingAccounts/012345-567890-ABCDEF
- display
Name string - The display name given to the billing account, such as
My Billing Account
. This name is displayed in the Google Cloud Console. - master
Billing stringAccount - If this account is a subaccount, then this will be the resource name of the parent billing account that it is being resold through. Otherwise this will be empty.
- name string
- The resource name of the billing account. The resource name has the form
billingAccounts/{billing_account_id}
. For example,billingAccounts/012345-567890-ABCDEF
would be the resource name for billing account012345-567890-ABCDEF
. - open boolean
- True if the billing account is open, and will therefore be charged for any usage on associated projects. False if the billing account is closed, and therefore projects associated with it will be unable to use paid services.
- parent string
- The billing account's parent resource identifier. Use the
MoveBillingAccount
method to update the account's parent resource if it is a organization. Format: - organizations/{organization_id}, for example: organizations/12345678 - billingAccounts/{billing_account_id}, for example:billingAccounts/012345-567890-ABCDEF
- display_
name str - The display name given to the billing account, such as
My Billing Account
. This name is displayed in the Google Cloud Console. - master_
billing_ straccount - If this account is a subaccount, then this will be the resource name of the parent billing account that it is being resold through. Otherwise this will be empty.
- name str
- The resource name of the billing account. The resource name has the form
billingAccounts/{billing_account_id}
. For example,billingAccounts/012345-567890-ABCDEF
would be the resource name for billing account012345-567890-ABCDEF
. - open bool
- True if the billing account is open, and will therefore be charged for any usage on associated projects. False if the billing account is closed, and therefore projects associated with it will be unable to use paid services.
- parent str
- The billing account's parent resource identifier. Use the
MoveBillingAccount
method to update the account's parent resource if it is a organization. Format: - organizations/{organization_id}, for example: organizations/12345678 - billingAccounts/{billing_account_id}, for example:billingAccounts/012345-567890-ABCDEF
- display
Name String - The display name given to the billing account, such as
My Billing Account
. This name is displayed in the Google Cloud Console. - master
Billing StringAccount - If this account is a subaccount, then this will be the resource name of the parent billing account that it is being resold through. Otherwise this will be empty.
- name String
- The resource name of the billing account. The resource name has the form
billingAccounts/{billing_account_id}
. For example,billingAccounts/012345-567890-ABCDEF
would be the resource name for billing account012345-567890-ABCDEF
. - open Boolean
- True if the billing account is open, and will therefore be charged for any usage on associated projects. False if the billing account is closed, and therefore projects associated with it will be unable to use paid services.
- parent String
- The billing account's parent resource identifier. Use the
MoveBillingAccount
method to update the account's parent resource if it is a organization. Format: - organizations/{organization_id}, for example: organizations/12345678 - billingAccounts/{billing_account_id}, for example:billingAccounts/012345-567890-ABCDEF
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.