Skip to content

Latest commit

 

History

History
78 lines (56 loc) · 1.75 KB

File metadata and controls

78 lines (56 loc) · 1.75 KB

nic_update

PUT users/{uid}/appliances/{aid}/installProfile/{ipid}/nics/{nid}

Summary

  • Method: PUT
  • Response Code: 200
  • Response Formats: application/xml application/json
  • Since: UForge 3.7

Updates the meta-data information of a network interface card.

Please refer to nic-object for a complete list of all the nic attributes.

Security Summary

  • Requires Authentication: true
  • Entitlements Required: appliance_create

URI Parameters

  • uid (required): the user name (login name) of the user-object
  • ipid (required): the id of the installprofile-object
  • nid (required): the id of the nic-object to delete
  • aid (required): the id of the appliance-object

HTTP Request Body Parameters

A nic-object object

Example Request

curl "https://uforge.example.com/apiusers/{uid}/appliances/{aid}/installProfile/{ipid}/nics/{nid}" -X PUT \
-u USER_LOGIN:PASSWORD -H "Accept: application/xml" --data-binary "@representation.xml"

Example of representation.xml content (the request body):

<ns0:nics xmlns:ns0="http://www.usharesoft.com/uforge">
    <nics>
        <nic>
            <dbId>1</dbId>
            <type>ETHERNET</type>
            <order>1</order>
        </nic>
        <nic>
            <dbId>12</dbId>
            <type>ETHERNET</type>
            <order>0</order>
        </nic>
    </nics>
</ns0:nics>
  • appliance-object
  • installprofile-object
  • nic-object
  • nic-create
  • nic-delete
  • nic-get
  • nic-getAll
  • nic-updateList
  • user-object