{"id":4107,"date":"2019-06-03T16:12:12","date_gmt":"2019-06-03T19:12:12","guid":{"rendered":"https:\/\/www.dbarj.com.br\/?p=4107"},"modified":"2019-06-03T16:12:12","modified_gmt":"2019-06-03T19:12:12","slug":"creating-read-only-account-for-rest-billing-access-on-oracle-cloud","status":"publish","type":"post","link":"https:\/\/www.dbarj.com.br\/en\/2019\/06\/creating-read-only-account-for-rest-billing-access-on-oracle-cloud\/","title":{"rendered":"Creating read-only account for REST billing access on Oracle Cloud"},"content":{"rendered":"<p>In this article I will describe the steps you need to take if you want to create an account in your Oracle Cloud with <strong>read-only access to your oracle cloud billing information<\/strong>. Please note this article was written on June-2019, and as Oracle is introducing new-features and changing the look n&#8217; feel of the pages constantly, some options may have changed.<\/p>\n<p>First, let&#8217;s give a brief introduction about IDCS. There are basically 2 ways you can connect to your Oracle Cloud: using a user account or an application account. In IDCS, if you choose to create a <strong>user account<\/strong> to get the billing information, you will need to use roles to restrict the scope access of the account, and there is where the first problem comes up: the roles are not very specific.<\/p>\n<p>For now, the only role that give privileges to access the billing is the &#8220;<strong>Cloud Account Administrator<\/strong>&#8220;, which is like <strong>root<\/strong> for Oracle Cloud:<\/p>\n<p id=\"eqhoRKL\"><img loading=\"lazy\" decoding=\"async\" width=\"1528\" height=\"1232\" class=\"alignnone size-full wp-image-4108 \" src=\"https:\/\/www.dbarj.com.br\/wp-content\/uploads\/2019\/06\/img_5cf51800b637a.png\" alt=\"\" srcset=\"https:\/\/www.dbarj.com.br\/wp-content\/uploads\/2019\/06\/img_5cf51800b637a.png 1528w, https:\/\/www.dbarj.com.br\/wp-content\/uploads\/2019\/06\/img_5cf51800b637a-300x242.png 300w, https:\/\/www.dbarj.com.br\/wp-content\/uploads\/2019\/06\/img_5cf51800b637a-768x619.png 768w, https:\/\/www.dbarj.com.br\/wp-content\/uploads\/2019\/06\/img_5cf51800b637a-1024x826.png 1024w\" sizes=\"auto, (max-width: 1528px) 100vw, 1528px\" \/><\/p>\n<p>So this approach is not valid for a read-only access. We need to use an application account instead if we want to be more restrictive.<\/p>\n<p>So, in summary, why to use an application and not a user account?<\/p>\n<ul>\n<li>You can&#8217;t be restrictive with user account privileges. As said above, the account will need to have &#8220;<strong>Cloud Account Administrator<\/strong>&#8221; role (which is the most powerful Cloud privilege) to have access to the billing.<\/li>\n<li>User accounts can be protected by multi-factor authentication and will not work on your REST calls.<\/li>\n<\/ul>\n<h3>How to create a restricted application account<\/h3>\n<h4>1 . Connect to your Oracle Identity Cloud Service<\/h4>\n<p>Usually the link to open it is &#8220;https:\/\/idcs-xxxxx.identity.oraclecloud.com\/ui\/v1\/adminconsole\/&#8221;, where xxxxx is your account ID. If you don&#8217;t know it, you can connect to your cloud via <a href=\"https:\/\/cloud.oracle.com\/en_US\/sign-in\" target=\"_blank\" rel=\"noopener noreferrer\">https:\/\/cloud.oracle.com\/en_US\/sign-in<\/a>, go to oracle cloud homepage dashboard, click on Users button in the top right and then in the &#8220;Identity Console&#8221; option that will appear, also in top right. If you still can&#8217;t see it, maybe your account has no permissions to access the IDCS Service.<\/p>\n<h4>2. Open Application Page and add a new one<\/h4>\n<p>Once in IDCS Portal, click on the hamburger button (three lines on top left), go the Application page. Click &#8220;Add&#8221;.<\/p>\n<p id=\"SCyQNUC\"><img loading=\"lazy\" decoding=\"async\" width=\"2718\" height=\"1200\" class=\"alignnone size-full wp-image-4110 \" src=\"https:\/\/www.dbarj.com.br\/wp-content\/uploads\/2019\/06\/img_5cf51b7b84008.png\" alt=\"\" srcset=\"https:\/\/www.dbarj.com.br\/wp-content\/uploads\/2019\/06\/img_5cf51b7b84008.png 2718w, https:\/\/www.dbarj.com.br\/wp-content\/uploads\/2019\/06\/img_5cf51b7b84008-300x132.png 300w, https:\/\/www.dbarj.com.br\/wp-content\/uploads\/2019\/06\/img_5cf51b7b84008-768x339.png 768w, https:\/\/www.dbarj.com.br\/wp-content\/uploads\/2019\/06\/img_5cf51b7b84008-1024x452.png 1024w\" sizes=\"auto, (max-width: 2718px) 100vw, 2718px\" \/><\/p>\n<h4>3. Create the application and give the right permissions<\/h4>\n<p>After you click on the &#8220;Add&#8221;, several application types will be displayed. Choose &#8220;<strong>Confidential Application<\/strong>&#8220;:<\/p>\n<p id=\"vDLGCVH\"><img loading=\"lazy\" decoding=\"async\" width=\"1898\" height=\"924\" class=\"alignnone size-full wp-image-4115 \" src=\"https:\/\/www.dbarj.com.br\/wp-content\/uploads\/2019\/06\/img_5cf51e295eebc.png\" alt=\"\" srcset=\"https:\/\/www.dbarj.com.br\/wp-content\/uploads\/2019\/06\/img_5cf51e295eebc.png 1898w, https:\/\/www.dbarj.com.br\/wp-content\/uploads\/2019\/06\/img_5cf51e295eebc-300x146.png 300w, https:\/\/www.dbarj.com.br\/wp-content\/uploads\/2019\/06\/img_5cf51e295eebc-768x374.png 768w, https:\/\/www.dbarj.com.br\/wp-content\/uploads\/2019\/06\/img_5cf51e295eebc-1024x499.png 1024w\" sizes=\"auto, (max-width: 1898px) 100vw, 1898px\" \/><\/p>\n<p>Give the application a &#8220;<strong>Name<\/strong>&#8221; and a &#8220;<strong>Description<\/strong>&#8220;. All other fields can be left empty. In this example, as this app will be for retrieving billing info, I&#8217;ve named it &#8220;Cloud Billing Extractor&#8221;:<\/p>\n<p id=\"xLqNQXx\"><img loading=\"lazy\" decoding=\"async\" width=\"2724\" height=\"1380\" class=\"alignnone size-full wp-image-4117 \" src=\"https:\/\/www.dbarj.com.br\/wp-content\/uploads\/2019\/06\/img_5cf51ed29a750.png\" alt=\"\" srcset=\"https:\/\/www.dbarj.com.br\/wp-content\/uploads\/2019\/06\/img_5cf51ed29a750.png 2724w, https:\/\/www.dbarj.com.br\/wp-content\/uploads\/2019\/06\/img_5cf51ed29a750-300x152.png 300w, https:\/\/www.dbarj.com.br\/wp-content\/uploads\/2019\/06\/img_5cf51ed29a750-768x389.png 768w, https:\/\/www.dbarj.com.br\/wp-content\/uploads\/2019\/06\/img_5cf51ed29a750-1024x519.png 1024w\" sizes=\"auto, (max-width: 2724px) 100vw, 2724px\" \/><\/p>\n<p>Now it&#8217;s time to set up our new application. Select &#8220;Configure this application as a client now&#8221;. Check the &#8220;Allowed Grant Types&#8221; options:<\/p>\n<ul>\n<li><strong>Client Credentials<\/strong><\/li>\n<li><strong>JWT Assertion<\/strong><\/li>\n<li><strong>Refresh Token<\/strong><\/li>\n<\/ul>\n<p><span style=\"color: #800000;\"><em>Don&#8217;t click Next yet, roll down as there are more things to set on this page.<\/em><\/span><\/p>\n<p id=\"qwHIZEd\"><img loading=\"lazy\" decoding=\"async\" width=\"1798\" height=\"1242\" class=\"alignnone size-full wp-image-4133 \" src=\"https:\/\/www.dbarj.com.br\/wp-content\/uploads\/2019\/06\/img_5cf53a34db233.png\" alt=\"\" srcset=\"https:\/\/www.dbarj.com.br\/wp-content\/uploads\/2019\/06\/img_5cf53a34db233.png 1798w, https:\/\/www.dbarj.com.br\/wp-content\/uploads\/2019\/06\/img_5cf53a34db233-300x207.png 300w, https:\/\/www.dbarj.com.br\/wp-content\/uploads\/2019\/06\/img_5cf53a34db233-768x531.png 768w, https:\/\/www.dbarj.com.br\/wp-content\/uploads\/2019\/06\/img_5cf53a34db233-1024x707.png 1024w\" sizes=\"auto, (max-width: 1798px) 100vw, 1798px\" \/><\/p>\n<p>Now is the most important part: your application permissions. In the &#8220;<strong>Authorized Resources<\/strong>&#8220;, select &#8220;<strong>Specific<\/strong>&#8221; and click on &#8220;Add Scope&#8221;.<\/p>\n<p id=\"NUqVuTT\"><img loading=\"lazy\" decoding=\"async\" width=\"1396\" height=\"1246\" class=\"alignnone size-full wp-image-4123 \" src=\"https:\/\/www.dbarj.com.br\/wp-content\/uploads\/2019\/06\/img_5cf539b06ec9e.png\" alt=\"\" srcset=\"https:\/\/www.dbarj.com.br\/wp-content\/uploads\/2019\/06\/img_5cf539b06ec9e.png 1396w, https:\/\/www.dbarj.com.br\/wp-content\/uploads\/2019\/06\/img_5cf539b06ec9e-300x268.png 300w, https:\/\/www.dbarj.com.br\/wp-content\/uploads\/2019\/06\/img_5cf539b06ec9e-768x685.png 768w, https:\/\/www.dbarj.com.br\/wp-content\/uploads\/2019\/06\/img_5cf539b06ec9e-1024x914.png 1024w\" sizes=\"auto, (max-width: 1396px) 100vw, 1396px\" \/><\/p>\n<p>Now open &#8220;<strong>CloudPortalResourceApp<\/strong>&#8221; and select the only two following\u00a0 options:<\/p>\n<ul>\n<li><strong>urn:opc:resource:consumer:cp:itas:myservices::read<\/strong>\n<ul>\n<li>This will grant you permissions to list all services through the API url &#8220;\/myservices\/api\/&#8221;<\/li>\n<\/ul>\n<\/li>\n<li><strong>urn:opc:resource:consumer:cp:itas:metering::read<\/strong>\n<ul>\n<li>This will grant you permissions to retrieve all billing info through the API url &#8220;\/metering\/api\/&#8221;<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p id=\"wmkDQEs\"><img loading=\"lazy\" decoding=\"async\" width=\"1392\" height=\"680\" class=\"alignnone size-full wp-image-4121 \" src=\"https:\/\/www.dbarj.com.br\/wp-content\/uploads\/2019\/06\/img_5cf539a16e18a.png\" alt=\"\" srcset=\"https:\/\/www.dbarj.com.br\/wp-content\/uploads\/2019\/06\/img_5cf539a16e18a.png 1392w, https:\/\/www.dbarj.com.br\/wp-content\/uploads\/2019\/06\/img_5cf539a16e18a-300x147.png 300w, https:\/\/www.dbarj.com.br\/wp-content\/uploads\/2019\/06\/img_5cf539a16e18a-768x375.png 768w, https:\/\/www.dbarj.com.br\/wp-content\/uploads\/2019\/06\/img_5cf539a16e18a-1024x500.png 1024w\" sizes=\"auto, (max-width: 1392px) 100vw, 1392px\" \/><\/p>\n<p>This is how it should look after adding:<\/p>\n<p id=\"DdLeonS\"><img loading=\"lazy\" decoding=\"async\" width=\"1752\" height=\"1226\" class=\"alignnone size-full wp-image-4125 \" src=\"https:\/\/www.dbarj.com.br\/wp-content\/uploads\/2019\/06\/img_5cf539d39a8d6.png\" alt=\"\" srcset=\"https:\/\/www.dbarj.com.br\/wp-content\/uploads\/2019\/06\/img_5cf539d39a8d6.png 1752w, https:\/\/www.dbarj.com.br\/wp-content\/uploads\/2019\/06\/img_5cf539d39a8d6-300x210.png 300w, https:\/\/www.dbarj.com.br\/wp-content\/uploads\/2019\/06\/img_5cf539d39a8d6-768x537.png 768w, https:\/\/www.dbarj.com.br\/wp-content\/uploads\/2019\/06\/img_5cf539d39a8d6-1024x717.png 1024w\" sizes=\"auto, (max-width: 1752px) 100vw, 1752px\" \/><\/p>\n<p>Now click Next. In the &#8220;Resources&#8221; tab, keep the default &#8220;<strong>Skip for later<\/strong>&#8221; and on &#8220;Web Tier Policy&#8221;, select &#8220;<strong>No Web Tier Policy<\/strong>&#8220;:<\/p>\n<p id=\"FnYdGqU\"><img loading=\"lazy\" decoding=\"async\" width=\"1796\" height=\"830\" class=\"alignnone size-full wp-image-4127 \" src=\"https:\/\/www.dbarj.com.br\/wp-content\/uploads\/2019\/06\/img_5cf53a037004f.png\" alt=\"\" srcset=\"https:\/\/www.dbarj.com.br\/wp-content\/uploads\/2019\/06\/img_5cf53a037004f.png 1796w, https:\/\/www.dbarj.com.br\/wp-content\/uploads\/2019\/06\/img_5cf53a037004f-300x139.png 300w, https:\/\/www.dbarj.com.br\/wp-content\/uploads\/2019\/06\/img_5cf53a037004f-768x355.png 768w, https:\/\/www.dbarj.com.br\/wp-content\/uploads\/2019\/06\/img_5cf53a037004f-1024x473.png 1024w\" sizes=\"auto, (max-width: 1796px) 100vw, 1796px\" \/><\/p>\n<p>Finally, keep also unchecked the &#8220;<strong>Enforce Grants as Authorization<\/strong>&#8221; and press &#8220;<strong>Finish<\/strong>&#8220;:<\/p>\n<p id=\"kVSJvNm\"><img loading=\"lazy\" decoding=\"async\" width=\"1798\" height=\"694\" class=\"alignnone size-full wp-image-4131 \" src=\"https:\/\/www.dbarj.com.br\/wp-content\/uploads\/2019\/06\/img_5cf53a1a35789.png\" alt=\"\" srcset=\"https:\/\/www.dbarj.com.br\/wp-content\/uploads\/2019\/06\/img_5cf53a1a35789.png 1798w, https:\/\/www.dbarj.com.br\/wp-content\/uploads\/2019\/06\/img_5cf53a1a35789-300x116.png 300w, https:\/\/www.dbarj.com.br\/wp-content\/uploads\/2019\/06\/img_5cf53a1a35789-768x296.png 768w, https:\/\/www.dbarj.com.br\/wp-content\/uploads\/2019\/06\/img_5cf53a1a35789-1024x395.png 1024w\" sizes=\"auto, (max-width: 1798px) 100vw, 1798px\" \/><\/p>\n<p>The Application Client ID and Secret will be showed. Note them down because they are the credential to access your billing info:<\/p>\n<p id=\"asoMpgz\"><img loading=\"lazy\" decoding=\"async\" width=\"1794\" height=\"1042\" class=\"alignnone size-full wp-image-4135 \" src=\"https:\/\/www.dbarj.com.br\/wp-content\/uploads\/2019\/06\/img_5cf53a926834f.png\" alt=\"\" srcset=\"https:\/\/www.dbarj.com.br\/wp-content\/uploads\/2019\/06\/img_5cf53a926834f.png 1794w, https:\/\/www.dbarj.com.br\/wp-content\/uploads\/2019\/06\/img_5cf53a926834f-300x174.png 300w, https:\/\/www.dbarj.com.br\/wp-content\/uploads\/2019\/06\/img_5cf53a926834f-768x446.png 768w, https:\/\/www.dbarj.com.br\/wp-content\/uploads\/2019\/06\/img_5cf53a926834f-1024x595.png 1024w\" sizes=\"auto, (max-width: 1794px) 100vw, 1794px\" \/><\/p>\n<p>Finally, <span style=\"color: #008000;\"><strong>Activate<\/strong><\/span> your application:<\/p>\n<p id=\"GLiTqkP\"><img loading=\"lazy\" decoding=\"async\" width=\"1796\" height=\"410\" class=\"alignnone size-full wp-image-4137 \" src=\"https:\/\/www.dbarj.com.br\/wp-content\/uploads\/2019\/06\/img_5cf53ac3930cd.png\" alt=\"\" srcset=\"https:\/\/www.dbarj.com.br\/wp-content\/uploads\/2019\/06\/img_5cf53ac3930cd.png 1796w, https:\/\/www.dbarj.com.br\/wp-content\/uploads\/2019\/06\/img_5cf53ac3930cd-300x68.png 300w, https:\/\/www.dbarj.com.br\/wp-content\/uploads\/2019\/06\/img_5cf53ac3930cd-768x175.png 768w, https:\/\/www.dbarj.com.br\/wp-content\/uploads\/2019\/06\/img_5cf53ac3930cd-1024x234.png 1024w\" sizes=\"auto, (max-width: 1796px) 100vw, 1796px\" \/><\/p>\n<p>And we are done:<\/p>\n<p id=\"FOroQVP\"><img loading=\"lazy\" decoding=\"async\" width=\"1796\" height=\"392\" class=\"alignnone size-full wp-image-4139 \" src=\"https:\/\/www.dbarj.com.br\/wp-content\/uploads\/2019\/06\/img_5cf53adc75b6b.png\" alt=\"\" srcset=\"https:\/\/www.dbarj.com.br\/wp-content\/uploads\/2019\/06\/img_5cf53adc75b6b.png 1796w, https:\/\/www.dbarj.com.br\/wp-content\/uploads\/2019\/06\/img_5cf53adc75b6b-300x65.png 300w, https:\/\/www.dbarj.com.br\/wp-content\/uploads\/2019\/06\/img_5cf53adc75b6b-768x168.png 768w, https:\/\/www.dbarj.com.br\/wp-content\/uploads\/2019\/06\/img_5cf53adc75b6b-1024x224.png 1024w\" sizes=\"auto, (max-width: 1796px) 100vw, 1796px\" \/><\/p>\n<h2>Let&#8217;s test it<\/h2>\n<p>Now, you can use CURL to retrieve all your billing information as JSON output (you can later load JSON into Oracle tables to better analyse, but this is this for now out of the scope of this article).<\/p>\n<p>To connect an application though curl, first you need to authenticate and get a token to connect. To do so, we will use the <strong>&#8220;\/oauth2\/&#8221;<\/strong> API.<\/p>\n<p>To get a token, you need to pass your Client ID and Secret to your IDCS url, also giving the scope that you want to access. In the example below, I&#8217;ve used the <strong>urn:opc:resource:consumer:cp:itas:metering::read:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"shell\">$ CLIENT_ID=8d8f249108569685587cf53dd7033cca\r\n$ CLIENT_SECRET=8a47c450-8969-7a13-c441-34d819847c8e\r\n$ IDCS_URL=\"https:\/\/idcs-a941be48a1c2175e8951bda897c375aa.identity.oraclecloud.com\/\"\r\n$ curl -X POST -u \"${CLIENT_ID}:${CLIENT_SECRET}\" -d \"grant_type=client_credentials&amp;scope=urn:opc:resource:consumer:cp:itas:metering::read\" \"${IDCS_URL}\/oauth2\/v1\/token\"\r\n{\r\n  \"access_token\": \"qbKjv3cacoM97mwFy5j1hZOC5cBQFdfJUJX0nmEd6pa4aM9Y9HvrOlXQngZzHuv2zw1aPG4ytHaA7jQPiSFDUWZQqjLFOalqCDdLRFQlUuSamUcvGhDcUmI36FjbbvOE4WNvDhdxdBKDf3rQsa8rMUbXiVMyvIxJfiXCZt7XWWDT3nFaoDKVb11kQnqHRW08JLpZyNIB1BUbExcdA5wQD6qB61YMhyYK2yZyO3CIfBQnEMRJiuBy3icZvQcSVepKAUKMFh1gUbynDqF0cD7ej79Uc3aovVtp8sHL4xHy1DRAvH1W6N8QJhoUkAOdxUW3NbPxsrn3zPeD2TLnMl6h1Vta6ADEZTekkj4fMmAzajC1AJtk37bmj2i1htw6nteHkS8MUAU8bQnrtLELO008agHfHB0ady0UAvRi3SwnDKlg2J7TYPQ39dDyCKT34soT0cYszYiDSgNbaTpzDcvFOHEUsy4NAPlIQq3iRfDMJSNlLFDkxUVjG11FW9FFwQwo5u7uYwrQP9YoaZK4lc6wEzPF5dEPYffw0orxvhyVGsxmtp1Vg8SpJMAPSQdRSyagcW0JaKRWdLUJo9bCAhJO1FF6jlzSi2umMuHyZgXo95uROjezxaqXM1w0DbgNSjp5u4p5o1BPygq8xJDI5ZHgnkIHWl7vVijNl4Jr47Yqpn8rGOd6wbdAzv0U0kKy7Dlo5waIB5cB7stvtLzMSv84AuWEx2CzFvLXRWD4gfRZnK22RKe0tJRMBZ6zGKMDuh20sSkk5LMDqEHmA2cZxWqtEgNrMvJjZvwoaG3RCHFEIw21hRyrv2ItPfBeZfcElC3uzSPCthVosL4x8MZwPxkiAUJKYrNl6jE8fGjHFxoknqUlrij84WDoGXCXL7mliHdOb7sFaNrV6GvQq8lskAtEqoUDODdFr7t171KOuwVVrkIX8ymrhnuYSo8ARsDGXVVFXg7FYdN7SDft6IDRAfVN6NNcXvkB7xNBunfElEMvPeCAExv9rKdyKReoos6FP3X3fu1fblNWkADaoUJbybvv3v24N51UuzIk2Giou7IUjZgik7dxytTVfd1KtmXswHUq3L2WqSvQthSOROwz9iDCAeihojvMhwYCSDqYQWa8omJYTCP3EE46tuidOApGY0oEyQQ2ZcoqhIGTr6RyGqhNX2DAMAkQf1b4JLuUfkrswUglgWnzieoI1XXtEfLlLOXDYIYQZK1ir3RDT3x9foH5XvPtQZyqiM7G52Q0A8yXNoRkjdduI2fySWQIjdW00kBVRtmtkw80O8jPAOH3dg0yxmEAiXH1pKTHt7DNQcn56Q6RJMezp98iegcSpam3uTBxnqYeUxfXxkLIwOJsJgsxQBgfbj4NbwnUJHLCcfqv0mrTS6b9cjnM32aGmibpzqYBYzgQQWW7yHVyF9cUkuUws7p3KcFOM\",\r\n  \"token_type\": \"Bearer\",\r\n  \"expires_in\": 3600\r\n}<\/pre>\n<p><span style=\"color: #800000;\"><em><strong>Note that the variable values were faked here for security.<\/strong><\/em><\/span><\/p>\n<p>The returned value is a Bearer Token valid for 1 hour (3600 seconds), I will export it into another variable as I&#8217;m using it on later curl calls to get the billing info:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"shell\">$ IDCS_TOKEN=\"qbKjv3cacoM97mwFy5j1hZOC5cBQFdfJUJX0nmEd6pa4aM9Y9HvrOlXQngZzHuv2zw1aPG4ytHaA7jQPiSFDUWZQqjLFOalqCDdLRFQlUuSamUcvGhDcUmI36FjbbvOE4WNvDhdxdBKDf3rQsa8rMUbXiVMyvIxJfiXCZt7XWWDT3nFaoDKVb11kQnqHRW08JLpZyNIB1BUbExcdA5wQD6qB61YMhyYK2yZyO3CIfBQnEMRJiuBy3icZvQcSVepKAUKMFh1gUbynDqF0cD7ej79Uc3aovVtp8sHL4xHy1DRAvH1W6N8QJhoUkAOdxUW3NbPxsrn3zPeD2TLnMl6h1Vta6ADEZTekkj4fMmAzajC1AJtk37bmj2i1htw6nteHkS8MUAU8bQnrtLELO008agHfHB0ady0UAvRi3SwnDKlg2J7TYPQ39dDyCKT34soT0cYszYiDSgNbaTpzDcvFOHEUsy4NAPlIQq3iRfDMJSNlLFDkxUVjG11FW9FFwQwo5u7uYwrQP9YoaZK4lc6wEzPF5dEPYffw0orxvhyVGsxmtp1Vg8SpJMAPSQdRSyagcW0JaKRWdLUJo9bCAhJO1FF6jlzSi2umMuHyZgXo95uROjezxaqXM1w0DbgNSjp5u4p5o1BPygq8xJDI5ZHgnkIHWl7vVijNl4Jr47Yqpn8rGOd6wbdAzv0U0kKy7Dlo5waIB5cB7stvtLzMSv84AuWEx2CzFvLXRWD4gfRZnK22RKe0tJRMBZ6zGKMDuh20sSkk5LMDqEHmA2cZxWqtEgNrMvJjZvwoaG3RCHFEIw21hRyrv2ItPfBeZfcElC3uzSPCthVosL4x8MZwPxkiAUJKYrNl6jE8fGjHFxoknqUlrij84WDoGXCXL7mliHdOb7sFaNrV6GvQq8lskAtEqoUDODdFr7t171KOuwVVrkIX8ymrhnuYSo8ARsDGXVVFXg7FYdN7SDft6IDRAfVN6NNcXvkB7xNBunfElEMvPeCAExv9rKdyKReoos6FP3X3fu1fblNWkADaoUJbybvv3v24N51UuzIk2Giou7IUjZgik7dxytTVfd1KtmXswHUq3L2WqSvQthSOROwz9iDCAeihojvMhwYCSDqYQWa8omJYTCP3EE46tuidOApGY0oEyQQ2ZcoqhIGTr6RyGqhNX2DAMAkQf1b4JLuUfkrswUglgWnzieoI1XXtEfLlLOXDYIYQZK1ir3RDT3x9foH5XvPtQZyqiM7G52Q0A8yXNoRkjdduI2fySWQIjdW00kBVRtmtkw80O8jPAOH3dg0yxmEAiXH1pKTHt7DNQcn56Q6RJMezp98iegcSpam3uTBxnqYeUxfXxkLIwOJsJgsxQBgfbj4NbwnUJHLCcfqv0mrTS6b9cjnM32aGmibpzqYBYzgQQWW7yHVyF9cUkuUws7p3KcFOM\"<\/pre>\n<p>To get the billing info you need, you can use several endpoint that are listed here: <a href=\"https:\/\/docs.oracle.com\/en\/cloud\/get-started\/subscriptions-cloud\/meter\/rest-endpoints.html\" target=\"_blank\" rel=\"noopener noreferrer\">https:\/\/docs.oracle.com\/en\/cloud\/get-started\/subscriptions-cloud\/meter\/rest-endpoints.html<\/a><\/p>\n<p>For this example, I want to get usage cost information daily grouped for the first 5 months of the year (from 1st of January until 1st of June 2019).<\/p>\n<p>Please note that this endpoint also required your cloud account name, that can be retrieved also from your MyServices URL. It can start with &#8220;cacct-&#8221; followed by some chars and numbers. If you don&#8217;t know it, just put anything and the error message will give you back the correct value.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"shell\">$ CLOUD_ACCOUNT=xxxx\r\n\r\n$ curl -X GET -H \"Authorization: Bearer ${IDCS_TOKEN}\" \"https:\/\/itra.oraclecloud.com\/metering\/api\/v1\/usagecost\/${CLOUD_ACCOUNT}?startTime=2019-01-01T00:00:00.000Z&amp;endTime=2019-06-01T00:00:00.000Z&amp;usageType=DAILY&amp;timeZone=UTC&amp;dcAggEnabled=Y\"\r\n{\r\n  \"httpStatusCode\" : 400,\r\n  \"httpMessage\" : \"Bad Request\",\r\n  \"executionContextId\" : \"005YaovmbC91FgyN06V4EF0002Zo00002t,0:1:1\",\r\n  \"errorCode\" : \"urn:oracle:cloud:errorcode:tas:illegal-argument\",\r\n  \"errorMessage\" : \"Domain mismatch url=\/api\/v1\/usagecost\/xxxx?startTime=2019-01-01T00:00:00.000Z&amp;endTime=2019-06-01T00:00:00.000Z&amp;usageType=DAILY&amp;timeZone=UTC&amp;dcAggEnabled=Y, domain=null:cacct-eca5d8e87eab38eea3afedb6fdcc1842\"\r\n}<\/pre>\n<p>Note that in the end of &#8220;<strong>errorMessage<\/strong>&#8220;, we have &#8220;<strong><em>domain=null:cacct-eca5d8e87eab38eea3afedb6fdcc1842<\/em><\/strong>&#8220;, meaning that my cloud account is actually &#8220;<span style=\"color: #339966;\"><strong>cacct-eca5d8e87eab38eea3afedb6fdcc1842<\/strong><\/span>&#8220;. I will export it and try again:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"shell\">$ CLOUD_ACCOUNT=cacct-eca5d8e87eab38eea3afedb6fdcc1842\r\n\r\n$ curl -X GET -H \"Authorization: Bearer ${IDCS_TOKEN}\" \"https:\/\/itra.oraclecloud.com\/metering\/api\/v1\/usagecost\/${CLOUD_ACCOUNT}?startTime=2019-01-01T00:00:00.000Z&amp;endTime2019-06-01T00:00:00.000Z&amp;usageType=DAILY&amp;timeZone=UTC&amp;dcAggEnabled=Y\"<\/pre>\n<p>(after 2 minutes)<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">{\r\n  \"accountId\": \"cacct-eca5d8e87eab38eea3afedb6fdcc1842\",\r\n  \"items\": [\r\n    {\r\n      \"subscriptionId\": \"1320391\",\r\n      \"subscriptionType\": \"PRODUCTION\",\r\n      \"serviceName\": \"COMPUTEBAREMETAL\",\r\n      \"resourceName\": \"PIC_BLOCK_STORAGE_STANDARD\",\r\n      \"currency\": \"BRL\",\r\n      \"gsiProductId\": \"B88322\",\r\n...<\/pre>\n<p>And that&#8217;s it. Now we could create a secure and restricted application account with access to the Oracle Cloud billing metering data.<\/p>\n<b>Have you enjoyed? Please leave a comment or give a \ud83d\udc4d!<\/b>\n<div class='watch-action'><div class='watch-position align-left'><div class='action-like'><a class='lbg-style2 like-4107 jlk' href='javascript:void(0)' data-task='like' data-post_id='4107' data-nonce='7596861fb6' rel='nofollow'><img class='wti-pixel' src='https:\/\/www.dbarj.com.br\/wp-content\/plugins\/wti-like-post\/images\/pixel.gif' title='Like' \/><span class='lc-4107 lc'>+8<\/span><\/a><\/div><\/div> <div class='status-4107 status align-left'><\/div><\/div><div class='wti-clear'><\/div>","protected":false},"excerpt":{"rendered":"<p>In this article I will describe the steps you need to take if you want to create an account in your Oracle Cloud with read-only access to your oracle cloud billing information. Please note this article was written on June-2019, and as Oracle is introducing new-features and changing the look n&#8217; feel of the pages &hellip; <\/p>\n<p><a class=\"more-link btn\" href=\"https:\/\/www.dbarj.com.br\/en\/2019\/06\/creating-read-only-account-for-rest-billing-access-on-oracle-cloud\/\">Continue reading<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[43],"tags":[],"class_list":["post-4107","post","type-post","status-publish","format-standard","hentry","category-oracle-cloud-en","item-wrap"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.7 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Creating read-only account for REST billing access on Oracle Cloud - DBA - Rodrigo Jorge - Oracle Tips and Guides<\/title>\n<meta name=\"description\" content=\"In this article I will describe the steps you need to take if you want to create an account in your Oracle Cloud with read-only access to your oracle cloud billing information.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.dbarj.com.br\/en\/2019\/06\/creating-read-only-account-for-rest-billing-access-on-oracle-cloud\/\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"DBA RJ\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"8 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.dbarj.com.br\\\/en\\\/2019\\\/06\\\/creating-read-only-account-for-rest-billing-access-on-oracle-cloud\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.dbarj.com.br\\\/en\\\/2019\\\/06\\\/creating-read-only-account-for-rest-billing-access-on-oracle-cloud\\\/\"},\"author\":{\"name\":\"DBA RJ\",\"@id\":\"https:\\\/\\\/www.dbarj.com.br\\\/en\\\/#\\\/schema\\\/person\\\/28a44ca3a6633fe4156ad1ea209d40a9\"},\"headline\":\"Creating read-only account for REST billing access on Oracle Cloud\",\"datePublished\":\"2019-06-03T19:12:12+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.dbarj.com.br\\\/en\\\/2019\\\/06\\\/creating-read-only-account-for-rest-billing-access-on-oracle-cloud\\\/\"},\"wordCount\":964,\"commentCount\":3,\"publisher\":{\"@id\":\"https:\\\/\\\/www.dbarj.com.br\\\/en\\\/#\\\/schema\\\/person\\\/28a44ca3a6633fe4156ad1ea209d40a9\"},\"image\":{\"@id\":\"https:\\\/\\\/www.dbarj.com.br\\\/en\\\/2019\\\/06\\\/creating-read-only-account-for-rest-billing-access-on-oracle-cloud\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.dbarj.com.br\\\/wp-content\\\/uploads\\\/2019\\\/06\\\/img_5cf51800b637a.png\",\"articleSection\":[\"Oracle Cloud\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.dbarj.com.br\\\/en\\\/2019\\\/06\\\/creating-read-only-account-for-rest-billing-access-on-oracle-cloud\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.dbarj.com.br\\\/en\\\/2019\\\/06\\\/creating-read-only-account-for-rest-billing-access-on-oracle-cloud\\\/\",\"url\":\"https:\\\/\\\/www.dbarj.com.br\\\/en\\\/2019\\\/06\\\/creating-read-only-account-for-rest-billing-access-on-oracle-cloud\\\/\",\"name\":\"Creating read-only account for REST billing access on Oracle Cloud - DBA - Rodrigo Jorge - Oracle Tips and Guides\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.dbarj.com.br\\\/en\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.dbarj.com.br\\\/en\\\/2019\\\/06\\\/creating-read-only-account-for-rest-billing-access-on-oracle-cloud\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.dbarj.com.br\\\/en\\\/2019\\\/06\\\/creating-read-only-account-for-rest-billing-access-on-oracle-cloud\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.dbarj.com.br\\\/wp-content\\\/uploads\\\/2019\\\/06\\\/img_5cf51800b637a.png\",\"datePublished\":\"2019-06-03T19:12:12+00:00\",\"description\":\"In this article I will describe the steps you need to take if you want to create an account in your Oracle Cloud with read-only access to your oracle cloud billing information.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.dbarj.com.br\\\/en\\\/2019\\\/06\\\/creating-read-only-account-for-rest-billing-access-on-oracle-cloud\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.dbarj.com.br\\\/en\\\/2019\\\/06\\\/creating-read-only-account-for-rest-billing-access-on-oracle-cloud\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.dbarj.com.br\\\/en\\\/2019\\\/06\\\/creating-read-only-account-for-rest-billing-access-on-oracle-cloud\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.dbarj.com.br\\\/wp-content\\\/uploads\\\/2019\\\/06\\\/img_5cf51800b637a.png\",\"contentUrl\":\"https:\\\/\\\/www.dbarj.com.br\\\/wp-content\\\/uploads\\\/2019\\\/06\\\/img_5cf51800b637a.png\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.dbarj.com.br\\\/en\\\/2019\\\/06\\\/creating-read-only-account-for-rest-billing-access-on-oracle-cloud\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.dbarj.com.br\\\/en\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Creating read-only account for REST billing access on Oracle Cloud\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.dbarj.com.br\\\/en\\\/#website\",\"url\":\"https:\\\/\\\/www.dbarj.com.br\\\/en\\\/\",\"name\":\"DBA - Rodrigo Jorge - Oracle Tips and Guides\",\"description\":\"Blog about Databases, Security and High Availability\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.dbarj.com.br\\\/en\\\/#\\\/schema\\\/person\\\/28a44ca3a6633fe4156ad1ea209d40a9\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.dbarj.com.br\\\/en\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\\\/\\\/www.dbarj.com.br\\\/en\\\/#\\\/schema\\\/person\\\/28a44ca3a6633fe4156ad1ea209d40a9\",\"name\":\"DBA RJ\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.dbarj.com.br\\\/wp-content\\\/uploads\\\/2019\\\/09\\\/RodrigoJorgePOUG19.png\",\"url\":\"https:\\\/\\\/www.dbarj.com.br\\\/wp-content\\\/uploads\\\/2019\\\/09\\\/RodrigoJorgePOUG19.png\",\"contentUrl\":\"https:\\\/\\\/www.dbarj.com.br\\\/wp-content\\\/uploads\\\/2019\\\/09\\\/RodrigoJorgePOUG19.png\",\"width\":712,\"height\":712,\"caption\":\"DBA RJ\"},\"logo\":{\"@id\":\"https:\\\/\\\/www.dbarj.com.br\\\/wp-content\\\/uploads\\\/2019\\\/09\\\/RodrigoJorgePOUG19.png\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Creating read-only account for REST billing access on Oracle Cloud - DBA - Rodrigo Jorge - Oracle Tips and Guides","description":"In this article I will describe the steps you need to take if you want to create an account in your Oracle Cloud with read-only access to your oracle cloud billing information.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.dbarj.com.br\/en\/2019\/06\/creating-read-only-account-for-rest-billing-access-on-oracle-cloud\/","twitter_misc":{"Written by":"DBA RJ","Est. reading time":"8 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.dbarj.com.br\/en\/2019\/06\/creating-read-only-account-for-rest-billing-access-on-oracle-cloud\/#article","isPartOf":{"@id":"https:\/\/www.dbarj.com.br\/en\/2019\/06\/creating-read-only-account-for-rest-billing-access-on-oracle-cloud\/"},"author":{"name":"DBA RJ","@id":"https:\/\/www.dbarj.com.br\/en\/#\/schema\/person\/28a44ca3a6633fe4156ad1ea209d40a9"},"headline":"Creating read-only account for REST billing access on Oracle Cloud","datePublished":"2019-06-03T19:12:12+00:00","mainEntityOfPage":{"@id":"https:\/\/www.dbarj.com.br\/en\/2019\/06\/creating-read-only-account-for-rest-billing-access-on-oracle-cloud\/"},"wordCount":964,"commentCount":3,"publisher":{"@id":"https:\/\/www.dbarj.com.br\/en\/#\/schema\/person\/28a44ca3a6633fe4156ad1ea209d40a9"},"image":{"@id":"https:\/\/www.dbarj.com.br\/en\/2019\/06\/creating-read-only-account-for-rest-billing-access-on-oracle-cloud\/#primaryimage"},"thumbnailUrl":"https:\/\/www.dbarj.com.br\/wp-content\/uploads\/2019\/06\/img_5cf51800b637a.png","articleSection":["Oracle Cloud"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.dbarj.com.br\/en\/2019\/06\/creating-read-only-account-for-rest-billing-access-on-oracle-cloud\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.dbarj.com.br\/en\/2019\/06\/creating-read-only-account-for-rest-billing-access-on-oracle-cloud\/","url":"https:\/\/www.dbarj.com.br\/en\/2019\/06\/creating-read-only-account-for-rest-billing-access-on-oracle-cloud\/","name":"Creating read-only account for REST billing access on Oracle Cloud - DBA - Rodrigo Jorge - Oracle Tips and Guides","isPartOf":{"@id":"https:\/\/www.dbarj.com.br\/en\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.dbarj.com.br\/en\/2019\/06\/creating-read-only-account-for-rest-billing-access-on-oracle-cloud\/#primaryimage"},"image":{"@id":"https:\/\/www.dbarj.com.br\/en\/2019\/06\/creating-read-only-account-for-rest-billing-access-on-oracle-cloud\/#primaryimage"},"thumbnailUrl":"https:\/\/www.dbarj.com.br\/wp-content\/uploads\/2019\/06\/img_5cf51800b637a.png","datePublished":"2019-06-03T19:12:12+00:00","description":"In this article I will describe the steps you need to take if you want to create an account in your Oracle Cloud with read-only access to your oracle cloud billing information.","breadcrumb":{"@id":"https:\/\/www.dbarj.com.br\/en\/2019\/06\/creating-read-only-account-for-rest-billing-access-on-oracle-cloud\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.dbarj.com.br\/en\/2019\/06\/creating-read-only-account-for-rest-billing-access-on-oracle-cloud\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.dbarj.com.br\/en\/2019\/06\/creating-read-only-account-for-rest-billing-access-on-oracle-cloud\/#primaryimage","url":"https:\/\/www.dbarj.com.br\/wp-content\/uploads\/2019\/06\/img_5cf51800b637a.png","contentUrl":"https:\/\/www.dbarj.com.br\/wp-content\/uploads\/2019\/06\/img_5cf51800b637a.png"},{"@type":"BreadcrumbList","@id":"https:\/\/www.dbarj.com.br\/en\/2019\/06\/creating-read-only-account-for-rest-billing-access-on-oracle-cloud\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.dbarj.com.br\/en\/"},{"@type":"ListItem","position":2,"name":"Creating read-only account for REST billing access on Oracle Cloud"}]},{"@type":"WebSite","@id":"https:\/\/www.dbarj.com.br\/en\/#website","url":"https:\/\/www.dbarj.com.br\/en\/","name":"DBA - Rodrigo Jorge - Oracle Tips and Guides","description":"Blog about Databases, Security and High Availability","publisher":{"@id":"https:\/\/www.dbarj.com.br\/en\/#\/schema\/person\/28a44ca3a6633fe4156ad1ea209d40a9"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.dbarj.com.br\/en\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/www.dbarj.com.br\/en\/#\/schema\/person\/28a44ca3a6633fe4156ad1ea209d40a9","name":"DBA RJ","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.dbarj.com.br\/wp-content\/uploads\/2019\/09\/RodrigoJorgePOUG19.png","url":"https:\/\/www.dbarj.com.br\/wp-content\/uploads\/2019\/09\/RodrigoJorgePOUG19.png","contentUrl":"https:\/\/www.dbarj.com.br\/wp-content\/uploads\/2019\/09\/RodrigoJorgePOUG19.png","width":712,"height":712,"caption":"DBA RJ"},"logo":{"@id":"https:\/\/www.dbarj.com.br\/wp-content\/uploads\/2019\/09\/RodrigoJorgePOUG19.png"}}]}},"_links":{"self":[{"href":"https:\/\/www.dbarj.com.br\/en\/wp-json\/wp\/v2\/posts\/4107","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.dbarj.com.br\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.dbarj.com.br\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.dbarj.com.br\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.dbarj.com.br\/en\/wp-json\/wp\/v2\/comments?post=4107"}],"version-history":[{"count":6,"href":"https:\/\/www.dbarj.com.br\/en\/wp-json\/wp\/v2\/posts\/4107\/revisions"}],"predecessor-version":[{"id":4148,"href":"https:\/\/www.dbarj.com.br\/en\/wp-json\/wp\/v2\/posts\/4107\/revisions\/4148"}],"wp:attachment":[{"href":"https:\/\/www.dbarj.com.br\/en\/wp-json\/wp\/v2\/media?parent=4107"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.dbarj.com.br\/en\/wp-json\/wp\/v2\/categories?post=4107"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.dbarj.com.br\/en\/wp-json\/wp\/v2\/tags?post=4107"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}