HEX
Server: Apache/2.4.65 (Ubuntu)
System: Linux ielts-store-v2 6.8.0-1036-gcp #38~22.04.1-Ubuntu SMP Thu Aug 14 01:19:18 UTC 2025 x86_64
User: root (0)
PHP: 7.2.34-54+ubuntu20.04.1+deb.sury.org+1
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,
Upload Files
File: //snap/google-cloud-cli/396/help/man/man1/gcloud_billing_budgets_update.1
.TH "GCLOUD_BILLING_BUDGETS_UPDATE" 1



.SH "NAME"
.HP
gcloud billing budgets update \- update a budget



.SH "SYNOPSIS"
.HP
\f5gcloud billing budgets update\fR (\fIBUDGET\fR\ :\ \fB\-\-billing\-account\fR=\fIBILLING_ACCOUNT\fR) [\fB\-\-credit\-types\-treatment\fR=\fICREDIT_TYPES_TREATMENT\fR] [\fB\-\-disable\-default\-iam\-recipients\fR] [\fB\-\-display\-name\fR=\fIDISPLAY_NAME\fR] [\fB\-\-filter\-credit\-types\fR=[\fIFILTER_CREDIT_TYPES\fR,...]] [\fB\-\-filter\-labels\fR=[\fIKEY\fR=\fIVALUE\fR,...]] [\fB\-\-filter\-projects\fR=[\fIFILTER_PROJECTS\fR,...]] [\fB\-\-filter\-resource\-ancestors\fR=[\fIFILTER_RESOURCE_ANCESTORS\fR,...]] [\fB\-\-filter\-services\fR=[\fIFILTER_SERVICES\fR,...]] [\fB\-\-filter\-subaccounts\fR=[\fIFILTER_SUBACCOUNTS\fR,...]] [\fB\-\-notifications\-rule\-monitoring\-notification\-channels\fR=[\fINOTIFICATIONS_RULE_MONITORING_NOTIFICATION_CHANNELS\fR,...]] [\fB\-\-notifications\-rule\-pubsub\-topic\fR=\fINOTIFICATIONS_RULE_PUBSUB_TOPIC\fR] [\fB\-\-ownership\-scope\fR=\fIOWNERSHIP_SCOPE\fR] [\fB\-\-budget\-amount\fR=\fIBUDGET_AMOUNT\fR\ |\ \fB\-\-last\-period\-amount\fR] [\fB\-\-calendar\-period\fR=\fICALENDAR_PERIOD\fR\ |\ [\fB\-\-start\-date\fR=\fISTART_DATE\fR\ :\ \fB\-\-end\-date\fR=\fIEND_DATE\fR]] [\fB\-\-threshold\-rules\-from\-file\fR=\fIPATH_TO_FILE\fR\ |\ \fB\-\-add\-threshold\-rule\fR=[\fIbasis\fR=\fIBASIS\fR],[\fIpercent\fR=\fIPERCENT\fR]\ \fB\-\-clear\-threshold\-rules\fR] [\fIGCLOUD_WIDE_FLAG\ ...\fR]



.SH "DESCRIPTION"

Update a budget.



.SH "EXAMPLES"

To update the amount in the budget called 'abc' in account '123' to '987.65',
run:

.RS 2m
$ gcloud billing budgets update billingAccounts/123/budgets/abc \e
    \-\-budget\-amount=987.65
.RE

Alternatively, you can run:

.RS 2m
$ gcloud billing budgets update abc \-\-billing\-account=123 \e
    \-\-budget\-amount=987.65
.RE



.SH "POSITIONAL ARGUMENTS"

.RS 2m
.TP 2m

Budget resource \- Billing budget to update. The arguments in this group can be
used to specify the attributes of this resource.

This must be specified.


.RS 2m
.TP 2m
\fIBUDGET\fR

ID of the budget or fully qualified identifier for the budget.

To set the \f5budget\fR attribute:
.RS 2m
.IP "\(bu" 2m
provide the argument \f5budget\fR on the command line.
.RE
.sp

This positional argument must be specified if any of the other arguments in this
group are specified.

.TP 2m
\fB\-\-billing\-account\fR=\fIBILLING_ACCOUNT\fR

The billing account.


To set the \f5billing\-account\fR attribute:
.RS 2m
.IP "\(bu" 2m
provide the argument \f5budget\fR on the command line with a fully specified
name;
.IP "\(bu" 2m
provide the argument \f5\-\-billing\-account\fR on the command line.
.RE
.sp


.RE
.RE
.sp

.SH "FLAGS"

.RS 2m
.TP 2m
\fB\-\-credit\-types\-treatment\fR=\fICREDIT_TYPES_TREATMENT\fR

Whether to include all credit types when calculating the actual spend against
the budget. If this is not specified, then all credit types are used in the
calculation. If this is set to include\-specified\-credits, then
\-\-filter\-credit\-types must be specified with a nonempty list of credits.
\fICREDIT_TYPES_TREATMENT\fR must be one of:
\fBcredit\-types\-treatment\-unspecified\fR, \fBexclude\-all\-credits\fR,
\fBinclude\-all\-credits\fR, \fBinclude\-specified\-credits\fR.

.TP 2m
\fB\-\-disable\-default\-iam\-recipients\fR

When set to true, disables default notifications sent when a threshold is
exceeded. Default notifications are sent to those with Billing Account
Administrator and Billing Account User IAM roles for the target account.

.TP 2m
\fB\-\-display\-name\fR=\fIDISPLAY_NAME\fR

User data for display name in UI. Must be less than or equal to 60 characters.

.TP 2m
\fB\-\-filter\-credit\-types\fR=[\fIFILTER_CREDIT_TYPES\fR,...]

Set of credit types, specifying that usage from only this set of credits should
be included in the budget. If a nonempty list is specified, then
\-\-credit\-types\-treatment must be include\-specified\-credits.

.TP 2m
\fB\-\-filter\-labels\fR=[\fIKEY\fR=\fIVALUE\fR,...]

Single label and value pair specifying that usage from only this set of labeled
resources should be included in the budget. Currently, multiple entries or
multiple values per entry are not allowed. If omitted, the report will include
all labeled and unlabeled usage.

.TP 2m
\fB\-\-filter\-projects\fR=[\fIFILTER_PROJECTS\fR,...]

Set of projects in the form \f5projects/{project_id}\fR, specifying that usage
from only this set of projects should be included in the budget. If omitted, all
projects will be included.

.TP 2m
\fB\-\-filter\-resource\-ancestors\fR=[\fIFILTER_RESOURCE_ANCESTORS\fR,...]

A set of folder and organization names of the form \f5folders/{folderId}\fR or
\f5organizations/{organizationId}\fR, specifying that usage from only this set
of folders and organizations should be included in the budget. If omitted, the
budget includes all usage that the billing account pays for. If the folder or
organization contains projects that are paid for by a different Cloud Billing
account, the budget doesn't apply to those projects.

.TP 2m
\fB\-\-filter\-services\fR=[\fIFILTER_SERVICES\fR,...]

Set of services of the form \f5services/{service_id}\fR, specifying that usage
from only this set of services should be included in the budget. If omitted, the
report will include usage for all services. The service names are available
through the Catalog API:
https://cloud.google.com/billing/v1/how\-tos/catalog\-api.

.TP 2m
\fB\-\-filter\-subaccounts\fR=[\fIFILTER_SUBACCOUNTS\fR,...]

Set of subaccounts of the form \f5billingAccounts/{account_id}\fR, specifying
that usage from only this set of subaccounts should be included in the budget.
If a subaccount is set to the name of the parent account, usage from the parent
account will be included. If omitted, the report will include usage from the
parent account and all subaccounts, if they exist.

.TP 2m
\fB\-\-notifications\-rule\-monitoring\-notification\-channels\fR=[\fINOTIFICATIONS_RULE_MONITORING_NOTIFICATION_CHANNELS\fR,...]

Targets to send notifications to when a threshold is exceeded. This is in
addition to default recipients who have billing account roles. The value is the
full REST resource name of a monitoring notification channel in the form
\f5projects/{project_id}/notificationChannels/{channel_id}\fR. A maximum of 5
channels is allowed. See
https://cloud.google.com/billing/docs/how\-to/budgets\-notification\-recipients
for more details.

.TP 2m
\fB\-\-notifications\-rule\-pubsub\-topic\fR=\fINOTIFICATIONS_RULE_PUBSUB_TOPIC\fR

Name of the Cloud Pub/Sub topic where budget related messages will be published,
in the form \f5projects/{project_id}/topics/{topic_id}\fR.

.TP 2m
\fB\-\-ownership\-scope\fR=\fIOWNERSHIP_SCOPE\fR

Sets the ownership scope of the budget. The ownership scope and users' IAM
permissions determine who has full access to the budget's data.

Must be one of: 'ALL_USERS' or 'BILLING_ACCOUNT'. Use 'ALL_USERS' to allow
billing account\- level users and project\-level users to have full access to
the budget (if the users have the required IAM permissions). Use
\'BILLING_ACCOUNT' to allow only billing account\-level users to have full
access to the budget. Project\-level users will have read\-only access, even if
they have the required IAM permissions.

\fIOWNERSHIP_SCOPE\fR must be one of: \fBall\-users\fR, \fBbilling\-account\fR,
\fBownership\-scope\-unspecified\fR.

.TP 2m

At most one of these can be specified:


.RS 2m
.TP 2m
\fB\-\-budget\-amount\fR=\fIBUDGET_AMOUNT\fR

Specify the amount of the budget. If a currency type is included, it must be the
existing currency associated with the budget.

.TP 2m
\fB\-\-last\-period\-amount\fR

Use the amount of last period's budget.

.RE
.sp
.TP 2m

Specify either the calendar\-period or custom\-period, not both.


At most one of these can be specified:


.RS 2m
.TP 2m

Calendar Period



.RS 2m
.TP 2m
\fB\-\-calendar\-period\fR=\fICALENDAR_PERIOD\fR

Specified to track usage over recurring calendar period. If you're creating a
budget with a custom time period, omit this flag. \fICALENDAR_PERIOD\fR must be
one of: \fBcalendar\-period\-unspecified\fR, \fBmonth\fR, \fBquarter\fR,
\fByear\fR.

.RE
.sp
.TP 2m

Custom Period



.RS 2m
.TP 2m
\fB\-\-start\-date\fR=\fISTART_DATE\fR

Specified to track usage after any start date. This time period is static, it
does not recur.

This flag argument must be specified if any of the other arguments in this group
are specified.

.TP 2m
\fB\-\-end\-date\fR=\fIEND_DATE\fR

Specified to track usage before any end date. This time period is static, it
does not recur. If specified, \-\-start\-date must also be specified.

.RE
.RE
.sp
.TP 2m

At most one of these can be specified:


.RS 2m
.TP 2m
\fB\-\-threshold\-rules\-from\-file\fR=\fIPATH_TO_FILE\fR

Import a file with the updated threshold rules. The threshold rules in the file
will replace the rules in the budget. This can be used to add or remove specific
threshold rules. Use a full or relative path to a local file containing the
value of threshold_rules.

.TP 2m
\fB\-\-add\-threshold\-rule\fR=[\fIbasis\fR=\fIBASIS\fR],[\fIpercent\fR=\fIPERCENT\fR]

Rule that triggers alerts (notifications of thresholds being crossed) when spend
exceeds the specified percentages of the budget. This flag can be repeated to
provide multiple thresholds above which an alert is sent.

.RS 2m
.TP 2m
\fBpercent\fR
Integer between 0 and 100 above which an alert is sent.

.TP 2m
\fBbasis\fR
Type of basis used to determine if spend has passed the threshold. Must be one
of: 'current\-spend' or 'forecasted\-spend'. Behavior defaults to
\'current\-spend' if not set.

.RE
.sp
.TP 2m
\fB\-\-clear\-threshold\-rules\fR

Removes all threshold rules from the budget.


.RE
.RE
.sp

.SH "GCLOUD WIDE FLAGS"

These flags are available to all commands: \-\-access\-token\-file, \-\-account,
\-\-billing\-project, \-\-configuration, \-\-flags\-file, \-\-flatten,
\-\-format, \-\-help, \-\-impersonate\-service\-account, \-\-log\-http,
\-\-project, \-\-quiet, \-\-trace\-token, \-\-user\-output\-enabled,
\-\-verbosity.

Run \fB$ gcloud help\fR for details.



.SH "API REFERENCE"

This command uses the \fBbillingbudgets/v1\fR API. The full documentation for
this API can be found at:
https://cloud.google.com/billing/docs/how\-to/budget\-api\-overview



.SH "NOTES"

These variants are also available:

.RS 2m
$ gcloud alpha billing budgets update
.RE

.RS 2m
$ gcloud beta billing budgets update
.RE