Mantenha tudo organizado com as coleções
Salve e categorize o conteúdo com base nas suas preferências.
Antes de começar a codificar seu primeiro aplicativo cliente, há algumas coisas que você precisa fazer, se ainda não tiver feito.
Testar os recursos do Cloud Billing no Google Cloud console
Para seguir a documentação da API, é preciso que você já tenha usado o Google Cloude conheça os recursos e conceitos do Faturamento do Cloud no console Google Cloud .
Se você ainda não tiver familiaridade com conceitos como contas de faturamento do Cloud e projetos Google Cloud , teste a interface do usuário antes de começar a codificar.
Em um sistema RESTful, os recursos são mantidos em um armazenamento de dados. Um cliente envia uma solicitação para que uma ação específica seja executada no servidor, como a criação, recuperação, atualização ou exclusão de um recurso. Essa ação é executada e uma resposta é enviada, geralmente no formato de uma representação do recurso especificado.
Nas APIs RESTful do Google, uma ação é especificada no cliente usando um verbo HTTP como POST, GET, PUT ou DELETE. Um recurso é definido por meio de um URI global exclusivo no seguinte formato:
Como todos os recursos da API têm URIs exclusivos acessíveis por HTTP, a REST permite o armazenamento em cache dos dados e é otimizada para funcionar na infraestrutura distribuída da Web.
As definições de método (em inglês) encontradas na documentação dos padrões HTTP 1.1 podem ser úteis. Nelas estão incluídas as especificações GET, POST, PUT e DELETE.
REST na API Cloud Billing
As operações da API Cloud Billing são mapeadas diretamente para verbos HTTP REST.
Os formatos específicos para os URIs da API Cloud Billing são:
O conjunto completo dos URIs usados para cada operação permitida na API está resumido nos documentos de referência da API Cloud Billing Budget (REST, RPC).
Aprender os fundamentos do JSON
A API Cloud Billing retorna dados no formato JSON.
JSON (JavaScript Object Notation) é um formato de dados comum e independente de linguagem que oferece uma representação de texto simples das estruturas de dados arbitrárias. Para mais informações, acesse json.org (em inglês).
[[["Fácil de entender","easyToUnderstand","thumb-up"],["Meu problema foi resolvido","solvedMyProblem","thumb-up"],["Outro","otherUp","thumb-up"]],[["Difícil de entender","hardToUnderstand","thumb-down"],["Informações incorretas ou exemplo de código","incorrectInformationOrSampleCode","thumb-down"],["Não contém as informações/amostras de que eu preciso","missingTheInformationSamplesINeed","thumb-down"],["Problema na tradução","translationIssue","thumb-down"],["Outro","otherDown","thumb-down"]],["Última atualização 2025-08-18 UTC."],[[["\u003cp\u003eBefore coding your client application, ensure you've familiarized yourself with the Cloud Billing features in the Google Cloud console.\u003c/p\u003e\n"],["\u003cp\u003eUnderstanding REST basics is essential if you're not using client libraries, as it provides a method for requesting and modifying data via HTTP requests.\u003c/p\u003e\n"],["\u003cp\u003eThe Cloud Billing API operations align with REST HTTP verbs like \u003ccode\u003ePOST\u003c/code\u003e, \u003ccode\u003eGET\u003c/code\u003e, \u003ccode\u003ePUT\u003c/code\u003e, or \u003ccode\u003eDELETE\u003c/code\u003e, with specific URI formats for each operation.\u003c/p\u003e\n"],["\u003cp\u003eThe Cloud Billing API returns data in JSON format, which is a common, language-independent data format for representing arbitrary data structures.\u003c/p\u003e\n"]]],[],null,["# Prerequisites\n\nBefore you can start coding your first client application, there are a few\nthings you need to do, if you haven't done them already.\n1. [Try out the billing features in the Google Cloud console](#familiarize)\n2. [Learn REST basics](#rest)\n3. [Learn JSON basics](#data-json)\n\nTry out the Cloud Billing features in the Google Cloud console\n--------------------------------------------------------------\n\nThis API documentation assumes that you've used Google Cloud, and that you're\nfamiliar with the Cloud Billing features and concepts in the Google Cloud console.\n\nIf you're not already familiar with concepts like Cloud Billing Accounts and\nGoogle Cloud projects then try out the [user interface](https://console.cloud.google.com/billing) before starting to code.\n\nLearn REST basics\n-----------------\n\nThere are two ways to invoke the Cloud Billing API:\n\n- Sending HTTP requests and parsing the responses.\n- Using [client libraries](/billing/v1/libraries).\n\nIf you decide not to use client libraries, you'll need to understand the basics of REST.\n\nREST is a style of software architecture that provides a convenient and consistent approach to requesting and modifying data.\n\nThe term REST is short for \"[Representational State Transfer](https://en.wikipedia.org/wiki/Representational_state_transfer).\" In the context of Google APIs, it refers to using HTTP verbs to retrieve and modify representations of data stored by Google.\n\nIn a RESTful system, resources are stored in a data store; a client sends a request that the server perform a particular action (such as creating, retrieving, updating, or deleting a resource), and the server performs the action and sends a response, often in the form of a representation of the specified resource.\n\nIn Google's RESTful APIs, the client specifies an action using an HTTP verb such as `POST`, `GET`, `PUT`, or `DELETE`. It specifies a resource by a globally-unique URI of the following form: \n\n```\nhttps://www.googleapis.com/apiName/apiVersion/resourcePath?parameters\n```\n\nBecause all API resources have unique HTTP-accessible URIs, REST enables data caching and is optimized to work with the web's distributed infrastructure.\n\nYou may find the [method definitions](https://tools.ietf.org/html/rfc7231#section-4.3) in the HTTP 1.1 standards documentation useful; they include specifications for `GET`, `POST`, `PUT`, and `DELETE`.\n\n### REST in the Cloud Billing API\n\nThe Cloud Billing API operations map directly to REST HTTP verbs.\n\nThe specific formats for Cloud Billing API URIs are: \n\n```\nhttps://www.googleapis.com/billing/v1/resourcePath?parameters\n```\n\nThe full set of URIs used for each supported operation in the API is summarized in the Cloud Billing API reference documents ([REST](/billing/reference/rest), [RPC](/billing/reference/rpc)).\n\nLearn JSON basics\n-----------------\n\nThe Cloud Billing API returns data in JSON format.\n\n\n[JSON](http://en.wikipedia.org/wiki/JSON) (JavaScript Object Notation) is a common, language-independent data format that provides a simple text representation of arbitrary data structures. For more information, see [json.org](http://www.json.org/).\n\n\u003cbr /\u003e"]]