Cloud Billing API: billingAccounts. Allows developers to manage billing for their Google Cloud Platform projects programmatically. See: https://cloud.google.com/billing/api/reference/rest/v1/billingAccounts
Cloud Billing API: billingAccounts. Allows developers to manage billing for their Google Cloud Platform projects programmatically. See: https://cloud.google.com/billing/api/reference/rest/v1/billingAccounts
(create$ auth args body)
https://cloud.google.com/billing/api/reference/rest/v1/billingAccounts/create
Required parameters: none
Optional parameters: none
Body:
{:name string, :open boolean, :displayName string, :masterBillingAccount string}
Creates a billing account.
This method can only be used to create
billing subaccounts
by GCP resellers.
When creating a subaccount, the current authenticated user must have the
billing.accounts.update
IAM permission on the master account, which is
typically given to billing account
administrators.
This method will return an error if the master account has not been
provisioned as a reseller account.
https://cloud.google.com/billing/api/reference/rest/v1/billingAccounts/create Required parameters: none Optional parameters: none Body: {:name string, :open boolean, :displayName string, :masterBillingAccount string} Creates a billing account. This method can only be used to create [billing subaccounts](https://cloud.google.com/billing/docs/concepts) by GCP resellers. When creating a subaccount, the current authenticated user must have the `billing.accounts.update` IAM permission on the master account, which is typically given to billing account [administrators](https://cloud.google.com/billing/docs/how-to/billing-access). This method will return an error if the master account has not been provisioned as a reseller account.
(get$ auth args)
https://cloud.google.com/billing/api/reference/rest/v1/billingAccounts/get
Required parameters: name
Optional parameters: none Gets information about a billing account. The current authenticated user must be a viewer of the billing account.
https://cloud.google.com/billing/api/reference/rest/v1/billingAccounts/get Required parameters: name Optional parameters: none Gets information about a billing account. The current authenticated user must be a [viewer of the billing account](https://cloud.google.com/billing/docs/how-to/billing-access).
(getIamPolicy$ auth args)
https://cloud.google.com/billing/api/reference/rest/v1/billingAccounts/getIamPolicy
Required parameters: resource
Optional parameters: options.requestedPolicyVersion
Gets the access control policy for a billing account.
The caller must have the billing.accounts.getIamPolicy
permission on the
account, which is often given to billing account
viewers.
https://cloud.google.com/billing/api/reference/rest/v1/billingAccounts/getIamPolicy Required parameters: resource Optional parameters: options.requestedPolicyVersion Gets the access control policy for a billing account. The caller must have the `billing.accounts.getIamPolicy` permission on the account, which is often given to billing account [viewers](https://cloud.google.com/billing/docs/how-to/billing-access).
(list$ auth args)
https://cloud.google.com/billing/api/reference/rest/v1/billingAccounts/list
Required parameters: none
Optional parameters: pageToken, pageSize, filter Lists the billing accounts that the current authenticated user has permission to view.
https://cloud.google.com/billing/api/reference/rest/v1/billingAccounts/list Required parameters: none Optional parameters: pageToken, pageSize, filter Lists the billing accounts that the current authenticated user has permission to [view](https://cloud.google.com/billing/docs/how-to/billing-access).
(patch$ auth args body)
https://cloud.google.com/billing/api/reference/rest/v1/billingAccounts/patch
Required parameters: name
Optional parameters: updateMask
Body:
{:name string, :open boolean, :displayName string, :masterBillingAccount string}
Updates a billing account's fields.
Currently the only field that can be edited is display_name
.
The current authenticated user must have the billing.accounts.update
IAM permission, which is typically given to the
administrator
of the billing account.
https://cloud.google.com/billing/api/reference/rest/v1/billingAccounts/patch Required parameters: name Optional parameters: updateMask Body: {:name string, :open boolean, :displayName string, :masterBillingAccount string} Updates a billing account's fields. Currently the only field that can be edited is `display_name`. The current authenticated user must have the `billing.accounts.update` IAM permission, which is typically given to the [administrator](https://cloud.google.com/billing/docs/how-to/billing-access) of the billing account.
(projects-list$ auth args)
https://cloud.google.com/billing/api/reference/rest/v1/billingAccounts/projects/list
Required parameters: name
Optional parameters: pageToken, pageSize
Lists the projects associated with a billing account. The current
authenticated user must have the billing.resourceAssociations.list
IAM
permission, which is often given to billing account
viewers.
https://cloud.google.com/billing/api/reference/rest/v1/billingAccounts/projects/list Required parameters: name Optional parameters: pageToken, pageSize Lists the projects associated with a billing account. The current authenticated user must have the `billing.resourceAssociations.list` IAM permission, which is often given to billing account [viewers](https://cloud.google.com/billing/docs/how-to/billing-access).
(setIamPolicy$ auth args body)
https://cloud.google.com/billing/api/reference/rest/v1/billingAccounts/setIamPolicy
Required parameters: resource
Optional parameters: none
Body:
{:updateMask string, :policy {:auditConfigs [AuditConfig], :bindings [Binding], :etag string, :version integer}}
Sets the access control policy for a billing account. Replaces any existing
policy.
The caller must have the billing.accounts.setIamPolicy
permission on the
account, which is often given to billing account
administrators.
https://cloud.google.com/billing/api/reference/rest/v1/billingAccounts/setIamPolicy Required parameters: resource Optional parameters: none Body: {:updateMask string, :policy {:auditConfigs [AuditConfig], :bindings [Binding], :etag string, :version integer}} Sets the access control policy for a billing account. Replaces any existing policy. The caller must have the `billing.accounts.setIamPolicy` permission on the account, which is often given to billing account [administrators](https://cloud.google.com/billing/docs/how-to/billing-access).
(testIamPermissions$ auth args body)
https://cloud.google.com/billing/api/reference/rest/v1/billingAccounts/testIamPermissions
Required parameters: resource
Optional parameters: none
Body:
{:permissions [string]}
Tests the access control policy for a billing account. This method takes the resource and a set of permissions as input and returns the subset of the input permissions that the caller is allowed for that resource.
https://cloud.google.com/billing/api/reference/rest/v1/billingAccounts/testIamPermissions Required parameters: resource Optional parameters: none Body: {:permissions [string]} Tests the access control policy for a billing account. This method takes the resource and a set of permissions as input and returns the subset of the input permissions that the caller is allowed for that resource.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close