{us}如何通过“ usageid”找到“ IP地址ID”?

时间:2018-12-06 11:00:18

标签: apache-cloudstack

IP Address Usage Record Format说:

  

usageid-IP地址ID

但是当我查询ACS cloud-stack-version="4.9.0"时:

  <usagerecord>
    <account>admin</account>
    <accountid>a0cdf7c5-1564-4234-8d19-dd09d594adaa</accountid>
    <domainid>545fbe7c-00b5-41d7-b985-549e584876b8</domainid>
    <zoneid>c8d773fa-76ca-4637-8ecf-88656444fc86</zoneid>
    <description>IPAddress: XX.XX.XX.161</description>
    <usage>10,68111 Hrs</usage>
    <usagetype>3</usagetype>
    <rawusage>10.68111</rawusage>
    <usageid>9942b811-f74e-471d-8f9e-3bae70a12e4f</usageid>
    <startdate>2018-12-03'T'00:00:00+00:00</startdate>
    <enddate>2018-12-03'T'23:59:59+00:00</enddate>
    <issourcenat>false</issourcenat>
    <issystem>false</issystem>
  </usagerecord>
  <usagerecord>
    <account>admin</account>
    <accountid>8ac7bbb0-395f-49c3-be45-114d54e5ab14</accountid>
    <domainid>311bbd29-3fa0-4d45-8a1e-e8019d7760d5</domainid>
    <zoneid>c8d773fa-76ca-4637-8ecf-88656444fc86</zoneid>
    <description>IPAddress: XX.XX.XX.141</description>
    <usage>24 Hrs</usage>
    <usagetype>3</usagetype>
    <rawusage>24</rawusage>
    <usageid>331bc19a-02bf-4522-a0c4-dd746b9823ba</usageid>
    <startdate>2018-12-03'T'00:00:00+00:00</startdate>
    <enddate>2018-12-03'T'23:59:59+00:00</enddate>
    <issourcenat>false</issourcenat>
    <issystem>false</issystem>
  </usagerecord>

我得到了usageid:9942b811-f74e-471d-8f9e-3bae70a12e4f

但是当我查询VirtualMachine的网卡时,我得到了:

<nic>
  <id>a8f4a902-bd26-4876-aa71-23a0637152b2</id>
  <networkid>1093f687-0581-4c63-9077-1471a8bfe7fd</networkid>
  <networkname>NET-PUB-XX.XX.XX.0-24</networkname>
  <netmask>255.255.255.0</netmask>
  <gateway>XX.XX.XX.254</gateway>
  <ipaddress>XX.XX.XX.161</ipaddress>
  <isolationuri>vlan://100</isolationuri>
  <broadcasturi>vlan://100</broadcasturi>
  <traffictype>Guest</traffictype>
  <type>Shared</type>
  <isdefault>true</isdefault>
  <macaddress>00:ee:ee:ff:0a:17</macaddress>
  <secondaryip>
    <id>77541565-d92b-465f-bf90-96c35e9b73bb</id>
    <ipaddress>XX.XX.XX.148</ipaddress>
  </secondaryip>
</nic>

如您所见,usageid不属于DOC状态的IP address ID

这是怎么回事,如何usageid找到IP address ID

0 个答案:

没有答案