1
0
Fork 0
mirror of https://github.com/imjasonh/gcloud-help synced 2026-07-08 10:35:03 +00:00

gcloud: Wed Aug 23 10:30:46 UTC 2023

This commit is contained in:
Automated 2023-08-23 10:30:46 +00:00
parent 5f3d6bc974
commit f9edf67fe5
677 changed files with 22815 additions and 975 deletions

View file

@ -0,0 +1,43 @@
NAME
gcloud billing projects describe - show detailed billing information for a
project
SYNOPSIS
gcloud billing projects describe PROJECT_ID [GCLOUD_WIDE_FLAG ...]
DESCRIPTION
This command shows billing info for a project, given its ID.
This call can fail for the following reasons:
▪ The project specified does not exist.
▪ The active user does not have permission to access the given project.
EXAMPLES
To see detailed billing information for a project my-project, run:
$ gcloud billing projects describe my-project
POSITIONAL ARGUMENTS
PROJECT_ID
Specify a project id.
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 $ gcloud help for details.
API REFERENCE
This command uses the cloudbilling/v1 API. The full documentation for this
API can be found at: https://cloud.google.com/billing/v1/getting-started
NOTES
These variants are also available:
$ gcloud alpha billing projects describe
$ gcloud beta billing projects describe

View file

@ -0,0 +1,37 @@
NAME
gcloud billing projects - manage the billing account configuration of your
projects
SYNOPSIS
gcloud billing projects COMMAND [GCLOUD_WIDE_FLAG ...]
DESCRIPTION
Manage the billing account configuration of your projects.
GCLOUD WIDE FLAGS
These flags are available to all commands: --help.
Run $ gcloud help for details.
COMMANDS
COMMAND is one of the following:
describe
Show detailed billing information for a project.
link
Link a project with a billing account.
list
List all active projects associated with the specified billing account.
unlink
Unlink the account (if any) linked with a project.
NOTES
These variants are also available:
$ gcloud alpha billing projects
$ gcloud beta billing projects

View file

@ -0,0 +1,61 @@
NAME
gcloud billing projects link - link a project with a billing account
SYNOPSIS
gcloud billing projects link PROJECT_ID --billing-account=ACCOUNT_ID
[GCLOUD_WIDE_FLAG ...]
DESCRIPTION
This command sets or updates the billing account associated with a project.
Billing is enabled on a project when the project is linked to a valid,
active Cloud Billing account. The billing account accrues charges for the
usage of resources in all of the linked projects. If the project is already
linked to a billing account, this command moves the project to the billing
account you specify, updating the billing account that is linked to the
project.
Note that associating a project with a closed billing account has the same
effect as disabling billing on the project: any paid resources in use by
the project are shut down, and your application stops functioning. Unless
you want to disable billing, you should always specify a valid, active
Cloud Billing account when you run this command. Learn how to confirm the
status of a Cloud Billing account at
https://cloud.google.com/billing/docs/how-to/verify-billing-enabled#billing_account_status
EXAMPLES
To link a billing account 0X0X0X-0X0X0X-0X0X0X with a project my-project,
run:
$ gcloud billing projects link my-project \
--billing-account=0X0X0X-0X0X0X-0X0X0X
POSITIONAL ARGUMENTS
PROJECT_ID
Specify a project id.
REQUIRED FLAGS
--billing-account=ACCOUNT_ID
Specify a billing account ID. Billing account IDs are of the form
0X0X0X-0X0X0X-0X0X0X. To see available IDs, run $ gcloud billing
accounts list.
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 $ gcloud help for details.
API REFERENCE
This command uses the cloudbilling/v1 API. The full documentation for this
API can be found at: https://cloud.google.com/billing/v1/getting-started
NOTES
These variants are also available:
$ gcloud alpha billing projects link
$ gcloud beta billing projects link

View file

@ -0,0 +1,65 @@
NAME
gcloud billing projects list - list all active projects associated with the
specified billing account
SYNOPSIS
gcloud billing projects list --billing-account=ACCOUNT_ID
[--filter=EXPRESSION] [--limit=LIMIT] [--page-size=PAGE_SIZE]
[--sort-by=[FIELD,...]] [GCLOUD_WIDE_FLAG ...]
DESCRIPTION
gcloud billing projects list ACCOUNT_ID -- lists all active projects, for
the specified billing account id.
EXAMPLES
To list projects linked to billing account 0X0X0X-0X0X0X-0X0X0X, run:
$ gcloud billing projects list --billing-account=0X0X0X-0X0X0X-0X0X0X
REQUIRED FLAGS
--billing-account=ACCOUNT_ID
Specify a billing account ID. Billing account IDs are of the form
0X0X0X-0X0X0X-0X0X0X. To see available IDs, run $ gcloud billing
accounts list.
LIST COMMAND FLAGS
--filter=EXPRESSION
Apply a Boolean filter EXPRESSION to each resource item to be listed.
If the expression evaluates True, then that item is listed. For more
details and examples of filter expressions, run $ gcloud topic filters.
This flag interacts with other flags that are applied in this order:
--flatten, --sort-by, --filter, --limit.
--limit=LIMIT
Maximum number of resources to list. The default is unlimited. This
flag interacts with other flags that are applied in this order:
--flatten, --sort-by, --filter, --limit.
--page-size=PAGE_SIZE
Some services group resource list output into pages. This flag
specifies the maximum number of resources per page. The default is
determined by the service if it supports paging, otherwise it is
unlimited (no paging). Paging may be applied before or after --filter
and --limit depending on the service.
--sort-by=[FIELD,...]
Comma-separated list of resource field key names to sort by. The
default order is ascending. Prefix a field with ``~'' for descending
order on that field. This flag interacts with other flags that are
applied in this order: --flatten, --sort-by, --filter, --limit.
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 $ gcloud help for details.
NOTES
These variants are also available:
$ gcloud alpha billing projects list
$ gcloud beta billing projects list

View file

@ -0,0 +1,45 @@
NAME
gcloud billing projects unlink - unlink the account (if any) linked with a
project
SYNOPSIS
gcloud billing projects unlink PROJECT_ID [GCLOUD_WIDE_FLAG ...]
DESCRIPTION
This command unlinks a project from its associated billing account. This
action disables billing on the project. Any billable resources and services
in use in your project are stopped, and your application stops functioning.
Any costs accrued prior to disabling billing on the project are charged to
the previously associated billing account.
Note: To link a project to a different billing account, use the billing
projects link command. You do not need to unlink the project first.
EXAMPLES
To unlink the project my-project from its linked billing account, run:
$ gcloud billing projects unlink my-project
POSITIONAL ARGUMENTS
PROJECT_ID
Specify a project id.
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 $ gcloud help for details.
API REFERENCE
This command uses the cloudbilling/v1 API. The full documentation for this
API can be found at: https://cloud.google.com/billing/v1/getting-started
NOTES
These variants are also available:
$ gcloud alpha billing projects unlink
$ gcloud beta billing projects unlink