VMware Cloud Director API - GET-NetworkCardsItemsList-vApp

VMware Cloud Director API - GET-NetworkCardsItemsList-vApp

GET /vApp/{id}/virtualHardwareSection/networkCards

Operation:
GET /vApp/{id}/virtualHardwareSection/networkCards
Description:
Retrieve all RASD items that specify network card properties of a VM.
Since:
0.9
Input parameters
Consume media type(s):
None
Input type:
None
Output parameters
RasdItemsListType

Produce media type(s):
application/vnd.vmware.vcloud.rasdItemsList+xml
application/vnd.vmware.vcloud.rasdItemsList+json
Output type:
RasdItemsListType
Examples
Request
HTTP 1.1
GET /api/vApp/vm-89c84bd6-c6f2-4e4c-8a7d-c44a3489e2e4/virtualHardwareSection/networkCards

Headers:
x-vcloud-authorization: uJ13vBx80VGzZ0KcClBqxHNDJr3QI0K5KaQ0YKn2YZ0=

Body:
Response
HTTP/1.1 200 OK

Headers:
Content-Length: 1587
Content-Type: application/vnd.vmware.vcloud.rasditemslist+xml;version=5.5
Vary: Accept-Encoding

Body:
<?xml version="1.0" encoding="UTF-8"?><RasdItemsList
    xmlns="http://www.vmware.com/vcloud/v1.5"
    xmlns:rasd="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_ResourceAllocationSettingData"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    href="https://vcloud.example.com/api/vApp/vm-89c84bd6-c6f2-4e4c-8a7d-c44a3489e2e4/virtualHardwareSection/networkCards"
    type="application/vnd.vmware.vcloud.rasdItemsList+xml"
    xsi:schemaLocation="http://www.vmware.com/vcloud/v1.5 http://https://vcloud.example.com/api/v1.5/schema/master.xsd http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_ResourceAllocationSettingData http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2.22.0/CIM_ResourceAllocationSettingData.xsd">
    <Link
        href="https://vcloud.example.com/api/vApp/vm-89c84bd6-c6f2-4e4c-8a7d-c44a3489e2e4/virtualHardwareSection/networkCards"
        rel="edit"
        type="application/vnd.vmware.vcloud.rasdItemsList+xml"/>
    <Item>
        <rasd:Address>00:50:56:8d:7f:21</rasd:Address>
        <rasd:AddressOnParent>0</rasd:AddressOnParent>
        <rasd:AutomaticAllocation>false</rasd:AutomaticAllocation>
        <rasd:Connection
            xmlns:vcloud="http://www.vmware.com/vcloud/v1.5"
            vcloud:ipAddressingMode="DHCP"
            vcloud:primaryNetworkConnection="true">VM Network</rasd:Connection>
        <rasd:Description>E1000 ethernet adapter on "VM Network"</rasd:Description>
        <rasd:ElementName>Network adapter 0</rasd:ElementName>
        <rasd:InstanceID>1</rasd:InstanceID>
        <rasd:ResourceSubType>E1000</rasd:ResourceSubType>
        <rasd:ResourceType>10</rasd:ResourceType>
    </Item>
</RasdItemsList>