Skip to content

Update network offering usage record (inline with the response)#505

Merged
DaanHoogland merged 1 commit into
apache:4.19from
shapeblue:update-network-offering-usage-record
May 14, 2025
Merged

Update network offering usage record (inline with the response)#505
DaanHoogland merged 1 commit into
apache:4.19from
shapeblue:update-network-offering-usage-record

Conversation

@sureshanaparti

@sureshanaparti sureshanaparti commented May 13, 2025

Copy link
Copy Markdown
Contributor

Update network offering usage record (inline with the response).

(usageenv) 🐱 > list usagerecords startdate=2025-05-11 enddate=2025-05-13 type=13 usageid=bfcb52bf-cb33-4c7d-bd9d-9b4b57d65a77
{
  "count": 110,
  "usagerecord": [
    {
      "account": "admin",
      "accountid": "a5f9d055-1ea1-11f0-8a38-1e00b50002f5",
      "description": "Network offering DefaultIsolatedNetworkOfferingWithSourceNatService (bfcb52bf-cb33-4c7d-bd9d-9b4b57d65a77) usage for VM testvm01 (0c74f18a-2f1b-4bbe-b17e-bd16f4e55d86) ",
      "domain": "ROOT",
      "domainid": "676c3952-1ea1-11f0-8a38-1e00b50002f5",
      "domainpath": "/",
      "enddate": "2025-05-11'T'00:59:59+00:00",
      "isdefault": true,
      "offeringid": "bfcb52bf-cb33-4c7d-bd9d-9b4b57d65a77",
      "rawusage": "1",
      "startdate": "2025-05-11'T'00:00:00+00:00",
      "tags": [],
      "usage": "1 Hrs",
      "usagetype": 13,
      "virtualmachineid": "0c74f18a-2f1b-4bbe-b17e-bd16f4e55d86",
      "zoneid": "cd989e1a-0024-439d-8164-7db39e046c6f"
    },
    {
      "account": "admin",
      "accountid": "a5f9d055-1ea1-11f0-8a38-1e00b50002f5",
      "description": "Network offering DefaultIsolatedNetworkOfferingWithSourceNatService (bfcb52bf-cb33-4c7d-bd9d-9b4b57d65a77) usage for VM testvm02 (617f7798-7a5f-4eb7-9d13-40a3eab641df) ",
      "domain": "ROOT",
      "domainid": "676c3952-1ea1-11f0-8a38-1e00b50002f5",
      "domainpath": "/",
      "enddate": "2025-05-11'T'00:59:59+00:00",
      "isdefault": true,
      "offeringid": "bfcb52bf-cb33-4c7d-bd9d-9b4b57d65a77",
      "rawusage": "1",
      "startdate": "2025-05-11'T'00:00:00+00:00",
      "tags": [],
      "usage": "1 Hrs",
      "usagetype": 13,
      "virtualmachineid": "617f7798-7a5f-4eb7-9d13-40a3eab641df",
      "zoneid": "cd989e1a-0024-439d-8164-7db39e046c6f"
    },
    {
      "account": "admin",
      "accountid": "a5f9d055-1ea1-11f0-8a38-1e00b50002f5",
      "description": "Network offering DefaultIsolatedNetworkOfferingWithSourceNatService (bfcb52bf-cb33-4c7d-bd9d-9b4b57d65a77) usage for VM testvm01 (0c74f18a-2f1b-4bbe-b17e-bd16f4e55d86) ",
      "domain": "ROOT",
      "domainid": "676c3952-1ea1-11f0-8a38-1e00b50002f5",
      "domainpath": "/",
      "enddate": "2025-05-11'T'01:59:59+00:00",
      "isdefault": true,
      "offeringid": "bfcb52bf-cb33-4c7d-bd9d-9b4b57d65a77",
      "rawusage": "1",
      "startdate": "2025-05-11'T'01:00:00+00:00",
      "tags": [],
      "usage": "1 Hrs",
      "usagetype": 13,
      "virtualmachineid": "0c74f18a-2f1b-4bbe-b17e-bd16f4e55d86",
      "zoneid": "cd989e1a-0024-439d-8164-7db39e046c6f"
    },
    ...

📚 Documentation preview 📚: https://cloudstack-documentation--505.org.readthedocs.build/en/505/

@sureshanaparti

Copy link
Copy Markdown
Contributor Author

@blueorangutan docbuild

@blueorangutan

Copy link
Copy Markdown

@sureshanaparti a Jenkins job has been kicked to build the document. I'll keep you posted as I make progress.

@blueorangutan

Copy link
Copy Markdown

QA-Doc build preview: https://qa.cloudstack.cloud/builds/docs-build/pr/505. (QA-JID 340)

@sureshanaparti sureshanaparti force-pushed the update-network-offering-usage-record branch from 9189094 to 3bb3615 Compare May 13, 2025 09:10
@sureshanaparti

Copy link
Copy Markdown
Contributor Author

@blueorangutan docbuild

@sureshanaparti

Copy link
Copy Markdown
Contributor Author

@blueorangutan docbuild

@blueorangutan

Copy link
Copy Markdown

@sureshanaparti a Jenkins job has been kicked to build the document. I'll keep you posted as I make progress.

@blueorangutan

Copy link
Copy Markdown

QA-Doc build preview: https://qa.cloudstack.cloud/builds/docs-build/pr/505. (QA-JID 341)

@rajujith rajujith left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

I am able to list usage records for type 13 with the usage id i.e the network offering id.


(usage) 🐱 > list usagerecords startdate=2025-05-14 enddate=2025-05-14 type=13 usageid=0604e20e-2636-462e-bdf9-95edc9befed5
{
  "count": 1,
  "usagerecord": [
    {
      "account": "admin",
      "accountid": "47a9dacf-308a-11f0-829c-1e0066000471",
      "description": "Network offering DefaultIsolatedNetworkOfferingWithSourceNatService (0604e20e-2636-462e-bdf9-95edc9befed5) usage for VM VM1 (b300586b-5f59-46d3-986e-aa074e2d0444) ",
      "domain": "ROOT",
      "domainid": "012fe828-308a-11f0-829c-1e0066000471",
      "domainpath": "/",
      "enddate": "2025-05-14'T'06:59:59+00:00",
      "isdefault": true,
      "offeringid": "0604e20e-2636-462e-bdf9-95edc9befed5",
      "rawusage": "0.449722",
      "startdate": "2025-05-14'T'06:00:00+00:00",
      "tags": [],
      "usage": "0.449722 Hrs",
      "usagetype": 13,
      "virtualmachineid": "b300586b-5f59-46d3-986e-aa074e2d0444",
      "zoneid": "f9a26223-216b-4ed1-be1b-2fc1b0dc0f8a"
    }
  ]
}

@DaanHoogland

Copy link
Copy Markdown
Contributor

refers apache/cloudstack#10852

@DaanHoogland DaanHoogland merged commit 820455d into apache:4.19 May 14, 2025
1 check passed
@DaanHoogland DaanHoogland deleted the update-network-offering-usage-record branch May 14, 2025 08:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants